@pulumiverse/scaleway 1.36.0-alpha.1761749266 → 1.36.0-alpha.1761895416
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/databaseInstance.d.ts +30 -9
- package/databaseInstance.js +21 -0
- package/databaseInstance.js.map +1 -1
- package/databaseUser.d.ts +1 -1
- package/databaseUser.js +1 -1
- package/databases/getInstance.d.ts +1 -0
- package/databases/getInstance.js.map +1 -1
- package/databases/instance.d.ts +30 -9
- package/databases/instance.js +21 -0
- package/databases/instance.js.map +1 -1
- package/databases/user.d.ts +1 -1
- package/databases/user.js +1 -1
- package/elasticmetal/getOffer.d.ts +6 -0
- package/elasticmetal/getOffer.js.map +1 -1
- package/fileFilesystem.d.ts +4 -4
- package/fileFilesystem.js +5 -5
- package/fileFilesystem.js.map +1 -1
- package/getBaremetalOffer.d.ts +6 -0
- package/getBaremetalOffer.js.map +1 -1
- package/getDatabaseInstance.d.ts +1 -0
- package/getDatabaseInstance.js.map +1 -1
- package/getInstanceServer.d.ts +2 -22
- package/getInstanceServer.js.map +1 -1
- package/getKubernetesCluster.d.ts +3 -0
- package/getKubernetesCluster.js.map +1 -1
- package/iam/getPolicy.d.ts +129 -0
- package/iam/getPolicy.js +66 -0
- package/iam/getPolicy.js.map +1 -0
- package/iam/index.d.ts +3 -0
- package/iam/index.js +4 -1
- package/iam/index.js.map +1 -1
- package/instance/getServer.d.ts +2 -22
- package/instance/getServer.js.map +1 -1
- package/instance/server.d.ts +40 -83
- package/instance/server.js +34 -12
- package/instance/server.js.map +1 -1
- package/instanceServer.d.ts +40 -83
- package/instanceServer.js +34 -12
- package/instanceServer.js.map +1 -1
- package/iot/device.d.ts +0 -23
- package/iot/device.js +0 -23
- package/iot/device.js.map +1 -1
- package/iot/route.d.ts +10 -10
- package/iot/route.js +10 -10
- package/iotDevice.d.ts +0 -23
- package/iotDevice.js +0 -23
- package/iotDevice.js.map +1 -1
- package/iotRoute.d.ts +10 -10
- package/iotRoute.js +10 -10
- package/kubernetes/cluster.d.ts +65 -2
- package/kubernetes/cluster.js +8 -2
- package/kubernetes/cluster.js.map +1 -1
- package/kubernetes/getCluster.d.ts +3 -0
- package/kubernetes/getCluster.js.map +1 -1
- package/kubernetesCluster.d.ts +65 -2
- package/kubernetesCluster.js +8 -2
- package/kubernetesCluster.js.map +1 -1
- package/object/bucketPolicy.d.ts +0 -36
- package/object/bucketPolicy.js +0 -36
- package/object/bucketPolicy.js.map +1 -1
- package/objectBucketPolicy.d.ts +0 -36
- package/objectBucketPolicy.js +0 -36
- package/objectBucketPolicy.js.map +1 -1
- package/package.json +2 -2
- package/types/input.d.ts +58 -2
- package/types/output.d.ts +140 -62
package/instanceServer.d.ts
CHANGED
|
@@ -46,6 +46,38 @@ import * as outputs from "./types/output";
|
|
|
46
46
|
* });
|
|
47
47
|
* ```
|
|
48
48
|
*
|
|
49
|
+
* ### With filesystem
|
|
50
|
+
*
|
|
51
|
+
* ```typescript
|
|
52
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
53
|
+
* import * as scaleway from "@pulumiverse/scaleway";
|
|
54
|
+
*
|
|
55
|
+
* const volume = new scaleway.block.Volume("volume", {
|
|
56
|
+
* iops: 15000,
|
|
57
|
+
* sizeInGb: 15,
|
|
58
|
+
* });
|
|
59
|
+
* const terraformInstanceFilesystem = new scaleway.FileFilesystem("terraform_instance_filesystem", {
|
|
60
|
+
* name: "filesystem-instance-terraform",
|
|
61
|
+
* sizeInGb: 100,
|
|
62
|
+
* });
|
|
63
|
+
* const base = new scaleway.instance.Server("base", {
|
|
64
|
+
* type: "POP2-HM-2C-16G",
|
|
65
|
+
* state: "started",
|
|
66
|
+
* tags: [
|
|
67
|
+
* "terraform-test",
|
|
68
|
+
* "scaleway_instance_server",
|
|
69
|
+
* "state",
|
|
70
|
+
* ],
|
|
71
|
+
* rootVolume: {
|
|
72
|
+
* volumeType: "sbs_volume",
|
|
73
|
+
* volumeId: volume.id,
|
|
74
|
+
* },
|
|
75
|
+
* filesystems: [{
|
|
76
|
+
* filesystemId: terraformInstanceFilesystem.id,
|
|
77
|
+
* }],
|
|
78
|
+
* });
|
|
79
|
+
* ```
|
|
80
|
+
*
|
|
49
81
|
* ### With a reserved IP
|
|
50
82
|
*
|
|
51
83
|
* ```typescript
|
|
@@ -246,12 +278,9 @@ export declare class InstanceServer extends pulumi.CustomResource {
|
|
|
246
278
|
*/
|
|
247
279
|
readonly enableDynamicIp: pulumi.Output<boolean | undefined>;
|
|
248
280
|
/**
|
|
249
|
-
*
|
|
250
|
-
* Deprecated: Please use a scaleway.instance.Ip with a `routedIpv6` type.
|
|
251
|
-
*
|
|
252
|
-
* @deprecated Please use a scaleway.instance.Ip with a `routedIpv6` type
|
|
281
|
+
* List of filesystems attached to the server.
|
|
253
282
|
*/
|
|
254
|
-
readonly
|
|
283
|
+
readonly filesystems: pulumi.Output<outputs.InstanceServerFilesystem[]>;
|
|
255
284
|
/**
|
|
256
285
|
* The UUID or the label of the base image used by the server. You can use [this endpoint](https://www.scaleway.com/en/developers/api/marketplace/#path-marketplace-images-list-marketplace-images)
|
|
257
286
|
* to find either the right `label` or the right local image `ID` for a given `type`. Optional when creating an instance with an existing root volume.
|
|
@@ -271,27 +300,6 @@ export declare class InstanceServer extends pulumi.CustomResource {
|
|
|
271
300
|
* > `ipId` to `ipIds` migration: if moving the ip from the old `ipId` field to the new `ipIds`, it should not detach the ip.
|
|
272
301
|
*/
|
|
273
302
|
readonly ipIds: pulumi.Output<string[] | undefined>;
|
|
274
|
-
/**
|
|
275
|
-
* The default ipv6 address routed to the server. ( Only set when enableIpv6 is set to true )
|
|
276
|
-
* Deprecated: Please use a scaleway.instance.Ip with a `routedIpv6` type.
|
|
277
|
-
*
|
|
278
|
-
* @deprecated Please use a scaleway.instance.Ip with a `routedIpv6` type
|
|
279
|
-
*/
|
|
280
|
-
readonly ipv6Address: pulumi.Output<string>;
|
|
281
|
-
/**
|
|
282
|
-
* The ipv6 gateway address. ( Only set when enableIpv6 is set to true )
|
|
283
|
-
* Deprecated: Please use a scaleway.instance.Ip with a `routedIpv6` type.
|
|
284
|
-
*
|
|
285
|
-
* @deprecated Please use a scaleway.instance.Ip with a `routedIpv6` type
|
|
286
|
-
*/
|
|
287
|
-
readonly ipv6Gateway: pulumi.Output<string>;
|
|
288
|
-
/**
|
|
289
|
-
* The prefix length of the ipv6 subnet routed to the server. ( Only set when enableIpv6 is set to true )
|
|
290
|
-
* Deprecated: Please use a scaleway.instance.Ip with a `routedIpv6` type.
|
|
291
|
-
*
|
|
292
|
-
* @deprecated Please use a scaleway.instance.Ip with a `routedIpv6` type
|
|
293
|
-
*/
|
|
294
|
-
readonly ipv6PrefixLength: pulumi.Output<number>;
|
|
295
303
|
/**
|
|
296
304
|
* The name of the server.
|
|
297
305
|
*/
|
|
@@ -308,15 +316,9 @@ export declare class InstanceServer extends pulumi.CustomResource {
|
|
|
308
316
|
*/
|
|
309
317
|
readonly placementGroupId: pulumi.Output<string | undefined>;
|
|
310
318
|
/**
|
|
311
|
-
* (Deprecated) Always false, use instancePlacementGroup
|
|
319
|
+
* (Deprecated) Always false, use instancePlacementGroup resource to known when the placement group policy is respected.
|
|
312
320
|
*/
|
|
313
321
|
readonly placementGroupPolicyRespected: pulumi.Output<boolean>;
|
|
314
|
-
/**
|
|
315
|
-
* The Scaleway internal IP address of the server (Deprecated use ipamIp datasource instead).
|
|
316
|
-
*
|
|
317
|
-
* @deprecated Use ipamIp datasource instead to fetch your server's IP in your private network.
|
|
318
|
-
*/
|
|
319
|
-
readonly privateIp: pulumi.Output<string>;
|
|
320
322
|
/**
|
|
321
323
|
* The list of private IPv4 and IPv6 addresses associated with the resource.
|
|
322
324
|
*/
|
|
@@ -334,12 +336,6 @@ export declare class InstanceServer extends pulumi.CustomResource {
|
|
|
334
336
|
* Set to true to activate server protection option.
|
|
335
337
|
*/
|
|
336
338
|
readonly protected: pulumi.Output<boolean | undefined>;
|
|
337
|
-
/**
|
|
338
|
-
* The public IP address of the server (Deprecated use `publicIps` instead).
|
|
339
|
-
*
|
|
340
|
-
* @deprecated Use publicIps instead
|
|
341
|
-
*/
|
|
342
|
-
readonly publicIp: pulumi.Output<string>;
|
|
343
339
|
/**
|
|
344
340
|
* The list of public IPs of the server.
|
|
345
341
|
*/
|
|
@@ -436,12 +432,9 @@ export interface InstanceServerState {
|
|
|
436
432
|
*/
|
|
437
433
|
enableDynamicIp?: pulumi.Input<boolean>;
|
|
438
434
|
/**
|
|
439
|
-
*
|
|
440
|
-
* Deprecated: Please use a scaleway.instance.Ip with a `routedIpv6` type.
|
|
441
|
-
*
|
|
442
|
-
* @deprecated Please use a scaleway.instance.Ip with a `routedIpv6` type
|
|
435
|
+
* List of filesystems attached to the server.
|
|
443
436
|
*/
|
|
444
|
-
|
|
437
|
+
filesystems?: pulumi.Input<pulumi.Input<inputs.InstanceServerFilesystem>[]>;
|
|
445
438
|
/**
|
|
446
439
|
* The UUID or the label of the base image used by the server. You can use [this endpoint](https://www.scaleway.com/en/developers/api/marketplace/#path-marketplace-images-list-marketplace-images)
|
|
447
440
|
* to find either the right `label` or the right local image `ID` for a given `type`. Optional when creating an instance with an existing root volume.
|
|
@@ -461,27 +454,6 @@ export interface InstanceServerState {
|
|
|
461
454
|
* > `ipId` to `ipIds` migration: if moving the ip from the old `ipId` field to the new `ipIds`, it should not detach the ip.
|
|
462
455
|
*/
|
|
463
456
|
ipIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
464
|
-
/**
|
|
465
|
-
* The default ipv6 address routed to the server. ( Only set when enableIpv6 is set to true )
|
|
466
|
-
* Deprecated: Please use a scaleway.instance.Ip with a `routedIpv6` type.
|
|
467
|
-
*
|
|
468
|
-
* @deprecated Please use a scaleway.instance.Ip with a `routedIpv6` type
|
|
469
|
-
*/
|
|
470
|
-
ipv6Address?: pulumi.Input<string>;
|
|
471
|
-
/**
|
|
472
|
-
* The ipv6 gateway address. ( Only set when enableIpv6 is set to true )
|
|
473
|
-
* Deprecated: Please use a scaleway.instance.Ip with a `routedIpv6` type.
|
|
474
|
-
*
|
|
475
|
-
* @deprecated Please use a scaleway.instance.Ip with a `routedIpv6` type
|
|
476
|
-
*/
|
|
477
|
-
ipv6Gateway?: pulumi.Input<string>;
|
|
478
|
-
/**
|
|
479
|
-
* The prefix length of the ipv6 subnet routed to the server. ( Only set when enableIpv6 is set to true )
|
|
480
|
-
* Deprecated: Please use a scaleway.instance.Ip with a `routedIpv6` type.
|
|
481
|
-
*
|
|
482
|
-
* @deprecated Please use a scaleway.instance.Ip with a `routedIpv6` type
|
|
483
|
-
*/
|
|
484
|
-
ipv6PrefixLength?: pulumi.Input<number>;
|
|
485
457
|
/**
|
|
486
458
|
* The name of the server.
|
|
487
459
|
*/
|
|
@@ -498,15 +470,9 @@ export interface InstanceServerState {
|
|
|
498
470
|
*/
|
|
499
471
|
placementGroupId?: pulumi.Input<string>;
|
|
500
472
|
/**
|
|
501
|
-
* (Deprecated) Always false, use instancePlacementGroup
|
|
473
|
+
* (Deprecated) Always false, use instancePlacementGroup resource to known when the placement group policy is respected.
|
|
502
474
|
*/
|
|
503
475
|
placementGroupPolicyRespected?: pulumi.Input<boolean>;
|
|
504
|
-
/**
|
|
505
|
-
* The Scaleway internal IP address of the server (Deprecated use ipamIp datasource instead).
|
|
506
|
-
*
|
|
507
|
-
* @deprecated Use ipamIp datasource instead to fetch your server's IP in your private network.
|
|
508
|
-
*/
|
|
509
|
-
privateIp?: pulumi.Input<string>;
|
|
510
476
|
/**
|
|
511
477
|
* The list of private IPv4 and IPv6 addresses associated with the resource.
|
|
512
478
|
*/
|
|
@@ -524,12 +490,6 @@ export interface InstanceServerState {
|
|
|
524
490
|
* Set to true to activate server protection option.
|
|
525
491
|
*/
|
|
526
492
|
protected?: pulumi.Input<boolean>;
|
|
527
|
-
/**
|
|
528
|
-
* The public IP address of the server (Deprecated use `publicIps` instead).
|
|
529
|
-
*
|
|
530
|
-
* @deprecated Use publicIps instead
|
|
531
|
-
*/
|
|
532
|
-
publicIp?: pulumi.Input<string>;
|
|
533
493
|
/**
|
|
534
494
|
* The list of public IPs of the server.
|
|
535
495
|
*/
|
|
@@ -617,12 +577,9 @@ export interface InstanceServerArgs {
|
|
|
617
577
|
*/
|
|
618
578
|
enableDynamicIp?: pulumi.Input<boolean>;
|
|
619
579
|
/**
|
|
620
|
-
*
|
|
621
|
-
* Deprecated: Please use a scaleway.instance.Ip with a `routedIpv6` type.
|
|
622
|
-
*
|
|
623
|
-
* @deprecated Please use a scaleway.instance.Ip with a `routedIpv6` type
|
|
580
|
+
* List of filesystems attached to the server.
|
|
624
581
|
*/
|
|
625
|
-
|
|
582
|
+
filesystems?: pulumi.Input<pulumi.Input<inputs.InstanceServerFilesystem>[]>;
|
|
626
583
|
/**
|
|
627
584
|
* The UUID or the label of the base image used by the server. You can use [this endpoint](https://www.scaleway.com/en/developers/api/marketplace/#path-marketplace-images-list-marketplace-images)
|
|
628
585
|
* to find either the right `label` or the right local image `ID` for a given `type`. Optional when creating an instance with an existing root volume.
|
package/instanceServer.js
CHANGED
|
@@ -50,6 +50,38 @@ const utilities = require("./utilities");
|
|
|
50
50
|
* });
|
|
51
51
|
* ```
|
|
52
52
|
*
|
|
53
|
+
* ### With filesystem
|
|
54
|
+
*
|
|
55
|
+
* ```typescript
|
|
56
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
57
|
+
* import * as scaleway from "@pulumiverse/scaleway";
|
|
58
|
+
*
|
|
59
|
+
* const volume = new scaleway.block.Volume("volume", {
|
|
60
|
+
* iops: 15000,
|
|
61
|
+
* sizeInGb: 15,
|
|
62
|
+
* });
|
|
63
|
+
* const terraformInstanceFilesystem = new scaleway.FileFilesystem("terraform_instance_filesystem", {
|
|
64
|
+
* name: "filesystem-instance-terraform",
|
|
65
|
+
* sizeInGb: 100,
|
|
66
|
+
* });
|
|
67
|
+
* const base = new scaleway.instance.Server("base", {
|
|
68
|
+
* type: "POP2-HM-2C-16G",
|
|
69
|
+
* state: "started",
|
|
70
|
+
* tags: [
|
|
71
|
+
* "terraform-test",
|
|
72
|
+
* "scaleway_instance_server",
|
|
73
|
+
* "state",
|
|
74
|
+
* ],
|
|
75
|
+
* rootVolume: {
|
|
76
|
+
* volumeType: "sbs_volume",
|
|
77
|
+
* volumeId: volume.id,
|
|
78
|
+
* },
|
|
79
|
+
* filesystems: [{
|
|
80
|
+
* filesystemId: terraformInstanceFilesystem.id,
|
|
81
|
+
* }],
|
|
82
|
+
* });
|
|
83
|
+
* ```
|
|
84
|
+
*
|
|
53
85
|
* ### With a reserved IP
|
|
54
86
|
*
|
|
55
87
|
* ```typescript
|
|
@@ -237,23 +269,18 @@ class InstanceServer extends pulumi.CustomResource {
|
|
|
237
269
|
resourceInputs["bootscriptId"] = state?.bootscriptId;
|
|
238
270
|
resourceInputs["cloudInit"] = state?.cloudInit;
|
|
239
271
|
resourceInputs["enableDynamicIp"] = state?.enableDynamicIp;
|
|
240
|
-
resourceInputs["
|
|
272
|
+
resourceInputs["filesystems"] = state?.filesystems;
|
|
241
273
|
resourceInputs["image"] = state?.image;
|
|
242
274
|
resourceInputs["ipId"] = state?.ipId;
|
|
243
275
|
resourceInputs["ipIds"] = state?.ipIds;
|
|
244
|
-
resourceInputs["ipv6Address"] = state?.ipv6Address;
|
|
245
|
-
resourceInputs["ipv6Gateway"] = state?.ipv6Gateway;
|
|
246
|
-
resourceInputs["ipv6PrefixLength"] = state?.ipv6PrefixLength;
|
|
247
276
|
resourceInputs["name"] = state?.name;
|
|
248
277
|
resourceInputs["organizationId"] = state?.organizationId;
|
|
249
278
|
resourceInputs["placementGroupId"] = state?.placementGroupId;
|
|
250
279
|
resourceInputs["placementGroupPolicyRespected"] = state?.placementGroupPolicyRespected;
|
|
251
|
-
resourceInputs["privateIp"] = state?.privateIp;
|
|
252
280
|
resourceInputs["privateIps"] = state?.privateIps;
|
|
253
281
|
resourceInputs["privateNetworks"] = state?.privateNetworks;
|
|
254
282
|
resourceInputs["projectId"] = state?.projectId;
|
|
255
283
|
resourceInputs["protected"] = state?.protected;
|
|
256
|
-
resourceInputs["publicIp"] = state?.publicIp;
|
|
257
284
|
resourceInputs["publicIps"] = state?.publicIps;
|
|
258
285
|
resourceInputs["replaceOnTypeChange"] = state?.replaceOnTypeChange;
|
|
259
286
|
resourceInputs["rootVolume"] = state?.rootVolume;
|
|
@@ -275,7 +302,7 @@ class InstanceServer extends pulumi.CustomResource {
|
|
|
275
302
|
resourceInputs["bootscriptId"] = args?.bootscriptId;
|
|
276
303
|
resourceInputs["cloudInit"] = args?.cloudInit;
|
|
277
304
|
resourceInputs["enableDynamicIp"] = args?.enableDynamicIp;
|
|
278
|
-
resourceInputs["
|
|
305
|
+
resourceInputs["filesystems"] = args?.filesystems;
|
|
279
306
|
resourceInputs["image"] = args?.image;
|
|
280
307
|
resourceInputs["ipId"] = args?.ipId;
|
|
281
308
|
resourceInputs["ipIds"] = args?.ipIds;
|
|
@@ -294,13 +321,8 @@ class InstanceServer extends pulumi.CustomResource {
|
|
|
294
321
|
resourceInputs["type"] = args?.type;
|
|
295
322
|
resourceInputs["userData"] = args?.userData;
|
|
296
323
|
resourceInputs["zone"] = args?.zone;
|
|
297
|
-
resourceInputs["ipv6Address"] = undefined /*out*/;
|
|
298
|
-
resourceInputs["ipv6Gateway"] = undefined /*out*/;
|
|
299
|
-
resourceInputs["ipv6PrefixLength"] = undefined /*out*/;
|
|
300
324
|
resourceInputs["organizationId"] = undefined /*out*/;
|
|
301
325
|
resourceInputs["placementGroupPolicyRespected"] = undefined /*out*/;
|
|
302
|
-
resourceInputs["privateIp"] = undefined /*out*/;
|
|
303
|
-
resourceInputs["publicIp"] = undefined /*out*/;
|
|
304
326
|
}
|
|
305
327
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
306
328
|
super(InstanceServer.__pulumiType, name, resourceInputs, opts);
|
package/instanceServer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instanceServer.js","sourceRoot":"","sources":["../instance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oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AAtPL,wCAuPC;AAxOG,gBAAgB;AACO,2BAAY,GAAG,8CAA8C,CAAC"}
|
package/iot/device.d.ts
CHANGED
|
@@ -20,29 +20,6 @@ import * as outputs from "../types/output";
|
|
|
20
20
|
* });
|
|
21
21
|
* ```
|
|
22
22
|
*
|
|
23
|
-
* ### With custom certificate
|
|
24
|
-
*
|
|
25
|
-
* ```typescript
|
|
26
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
27
|
-
* import * as local from "@pulumi/local";
|
|
28
|
-
* import * as scaleway from "@pulumiverse/scaleway";
|
|
29
|
-
*
|
|
30
|
-
* const main = new scaleway.iot.Hub("main", {
|
|
31
|
-
* name: "test-iot",
|
|
32
|
-
* productPlan: "plan_shared",
|
|
33
|
-
* });
|
|
34
|
-
* const deviceCert = local.getFile({
|
|
35
|
-
* filename: "device-certificate.pem",
|
|
36
|
-
* });
|
|
37
|
-
* const mainDevice = new scaleway.iot.Device("main", {
|
|
38
|
-
* hubId: main.id,
|
|
39
|
-
* name: "test-iot",
|
|
40
|
-
* certificate: {
|
|
41
|
-
* crt: deviceCert.then(deviceCert => deviceCert.content),
|
|
42
|
-
* },
|
|
43
|
-
* });
|
|
44
|
-
* ```
|
|
45
|
-
*
|
|
46
23
|
* ## Import
|
|
47
24
|
*
|
|
48
25
|
* IoT devices can be imported using the `{region}/{id}`, e.g.
|
package/iot/device.js
CHANGED
|
@@ -24,29 +24,6 @@ const utilities = require("../utilities");
|
|
|
24
24
|
* });
|
|
25
25
|
* ```
|
|
26
26
|
*
|
|
27
|
-
* ### With custom certificate
|
|
28
|
-
*
|
|
29
|
-
* ```typescript
|
|
30
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
31
|
-
* import * as local from "@pulumi/local";
|
|
32
|
-
* import * as scaleway from "@pulumiverse/scaleway";
|
|
33
|
-
*
|
|
34
|
-
* const main = new scaleway.iot.Hub("main", {
|
|
35
|
-
* name: "test-iot",
|
|
36
|
-
* productPlan: "plan_shared",
|
|
37
|
-
* });
|
|
38
|
-
* const deviceCert = local.getFile({
|
|
39
|
-
* filename: "device-certificate.pem",
|
|
40
|
-
* });
|
|
41
|
-
* const mainDevice = new scaleway.iot.Device("main", {
|
|
42
|
-
* hubId: main.id,
|
|
43
|
-
* name: "test-iot",
|
|
44
|
-
* certificate: {
|
|
45
|
-
* crt: deviceCert.then(deviceCert => deviceCert.content),
|
|
46
|
-
* },
|
|
47
|
-
* });
|
|
48
|
-
* ```
|
|
49
|
-
*
|
|
50
27
|
* ## Import
|
|
51
28
|
*
|
|
52
29
|
* IoT devices can be imported using the `{region}/{id}`, e.g.
|
package/iot/device.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device.js","sourceRoot":"","sources":["../../iot/device.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"device.js","sourceRoot":"","sources":["../../iot/device.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC7D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG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;;AAxIL,wBAyIC;AA3HG,gBAAgB;AACO,mBAAY,GAAG,4BAA4B,CAAC"}
|
package/iot/route.d.ts
CHANGED
|
@@ -27,17 +27,17 @@ import * as outputs from "../types/output";
|
|
|
27
27
|
* topic: "#",
|
|
28
28
|
* database: {
|
|
29
29
|
* query: `INSERT INTO measurements(
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
30
|
+
* \\tpush_time,
|
|
31
|
+
* \\treport_time,
|
|
32
|
+
* \\tstation_id,
|
|
33
|
+
* \\ttemperature,
|
|
34
|
+
* \\thumidity
|
|
35
35
|
* ) VALUES (
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
36
|
+
* \\tNOW(),
|
|
37
|
+
* \\tTIMESTAMP 'epoch' + ((PAYLOAD::jsonb->'last_reported')::integer * INTERVAL '1 second'),
|
|
38
|
+
* \\t(PAYLOAD::jsonb->'station_id')::uuid,
|
|
39
|
+
* \\t(PAYLOAD::jsonb->'temperature')::decimal,
|
|
40
|
+
* \\t(PAYLOAD::jsonb->'humidity'):decimal:
|
|
41
41
|
* );
|
|
42
42
|
* `,
|
|
43
43
|
* host: iot.endpointIp,
|
package/iot/route.js
CHANGED
|
@@ -31,17 +31,17 @@ const utilities = require("../utilities");
|
|
|
31
31
|
* topic: "#",
|
|
32
32
|
* database: {
|
|
33
33
|
* query: `INSERT INTO measurements(
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
34
|
+
* \\tpush_time,
|
|
35
|
+
* \\treport_time,
|
|
36
|
+
* \\tstation_id,
|
|
37
|
+
* \\ttemperature,
|
|
38
|
+
* \\thumidity
|
|
39
39
|
* ) VALUES (
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
40
|
+
* \\tNOW(),
|
|
41
|
+
* \\tTIMESTAMP 'epoch' + ((PAYLOAD::jsonb->'last_reported')::integer * INTERVAL '1 second'),
|
|
42
|
+
* \\t(PAYLOAD::jsonb->'station_id')::uuid,
|
|
43
|
+
* \\t(PAYLOAD::jsonb->'temperature')::decimal,
|
|
44
|
+
* \\t(PAYLOAD::jsonb->'humidity'):decimal:
|
|
45
45
|
* );
|
|
46
46
|
* `,
|
|
47
47
|
* host: iot.endpointIp,
|
package/iotDevice.d.ts
CHANGED
|
@@ -20,29 +20,6 @@ import * as outputs from "./types/output";
|
|
|
20
20
|
* });
|
|
21
21
|
* ```
|
|
22
22
|
*
|
|
23
|
-
* ### With custom certificate
|
|
24
|
-
*
|
|
25
|
-
* ```typescript
|
|
26
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
27
|
-
* import * as local from "@pulumi/local";
|
|
28
|
-
* import * as scaleway from "@pulumiverse/scaleway";
|
|
29
|
-
*
|
|
30
|
-
* const main = new scaleway.iot.Hub("main", {
|
|
31
|
-
* name: "test-iot",
|
|
32
|
-
* productPlan: "plan_shared",
|
|
33
|
-
* });
|
|
34
|
-
* const deviceCert = local.getFile({
|
|
35
|
-
* filename: "device-certificate.pem",
|
|
36
|
-
* });
|
|
37
|
-
* const mainDevice = new scaleway.iot.Device("main", {
|
|
38
|
-
* hubId: main.id,
|
|
39
|
-
* name: "test-iot",
|
|
40
|
-
* certificate: {
|
|
41
|
-
* crt: deviceCert.then(deviceCert => deviceCert.content),
|
|
42
|
-
* },
|
|
43
|
-
* });
|
|
44
|
-
* ```
|
|
45
|
-
*
|
|
46
23
|
* ## Import
|
|
47
24
|
*
|
|
48
25
|
* IoT devices can be imported using the `{region}/{id}`, e.g.
|
package/iotDevice.js
CHANGED
|
@@ -24,29 +24,6 @@ const utilities = require("./utilities");
|
|
|
24
24
|
* });
|
|
25
25
|
* ```
|
|
26
26
|
*
|
|
27
|
-
* ### With custom certificate
|
|
28
|
-
*
|
|
29
|
-
* ```typescript
|
|
30
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
31
|
-
* import * as local from "@pulumi/local";
|
|
32
|
-
* import * as scaleway from "@pulumiverse/scaleway";
|
|
33
|
-
*
|
|
34
|
-
* const main = new scaleway.iot.Hub("main", {
|
|
35
|
-
* name: "test-iot",
|
|
36
|
-
* productPlan: "plan_shared",
|
|
37
|
-
* });
|
|
38
|
-
* const deviceCert = local.getFile({
|
|
39
|
-
* filename: "device-certificate.pem",
|
|
40
|
-
* });
|
|
41
|
-
* const mainDevice = new scaleway.iot.Device("main", {
|
|
42
|
-
* hubId: main.id,
|
|
43
|
-
* name: "test-iot",
|
|
44
|
-
* certificate: {
|
|
45
|
-
* crt: deviceCert.then(deviceCert => deviceCert.content),
|
|
46
|
-
* },
|
|
47
|
-
* });
|
|
48
|
-
* ```
|
|
49
|
-
*
|
|
50
27
|
* ## Import
|
|
51
28
|
*
|
|
52
29
|
* IoT devices can be imported using the `{region}/{id}`, e.g.
|
package/iotDevice.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iotDevice.js","sourceRoot":"","sources":["../iotDevice.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"iotDevice.js","sourceRoot":"","sources":["../iotDevice.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,wHAAwH,CAAC,CAAA;QACzI,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GA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Y,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AA1IL,8BA2IC;AA5HG,gBAAgB;AACO,sBAAY,GAAG,oCAAoC,CAAC"}
|
package/iotRoute.d.ts
CHANGED
|
@@ -27,17 +27,17 @@ import * as outputs from "./types/output";
|
|
|
27
27
|
* topic: "#",
|
|
28
28
|
* database: {
|
|
29
29
|
* query: `INSERT INTO measurements(
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
30
|
+
* \\tpush_time,
|
|
31
|
+
* \\treport_time,
|
|
32
|
+
* \\tstation_id,
|
|
33
|
+
* \\ttemperature,
|
|
34
|
+
* \\thumidity
|
|
35
35
|
* ) VALUES (
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
36
|
+
* \\tNOW(),
|
|
37
|
+
* \\tTIMESTAMP 'epoch' + ((PAYLOAD::jsonb->'last_reported')::integer * INTERVAL '1 second'),
|
|
38
|
+
* \\t(PAYLOAD::jsonb->'station_id')::uuid,
|
|
39
|
+
* \\t(PAYLOAD::jsonb->'temperature')::decimal,
|
|
40
|
+
* \\t(PAYLOAD::jsonb->'humidity'):decimal:
|
|
41
41
|
* );
|
|
42
42
|
* `,
|
|
43
43
|
* host: iot.endpointIp,
|
package/iotRoute.js
CHANGED
|
@@ -31,17 +31,17 @@ const utilities = require("./utilities");
|
|
|
31
31
|
* topic: "#",
|
|
32
32
|
* database: {
|
|
33
33
|
* query: `INSERT INTO measurements(
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
34
|
+
* \\tpush_time,
|
|
35
|
+
* \\treport_time,
|
|
36
|
+
* \\tstation_id,
|
|
37
|
+
* \\ttemperature,
|
|
38
|
+
* \\thumidity
|
|
39
39
|
* ) VALUES (
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
40
|
+
* \\tNOW(),
|
|
41
|
+
* \\tTIMESTAMP 'epoch' + ((PAYLOAD::jsonb->'last_reported')::integer * INTERVAL '1 second'),
|
|
42
|
+
* \\t(PAYLOAD::jsonb->'station_id')::uuid,
|
|
43
|
+
* \\t(PAYLOAD::jsonb->'temperature')::decimal,
|
|
44
|
+
* \\t(PAYLOAD::jsonb->'humidity'):decimal:
|
|
45
45
|
* );
|
|
46
46
|
* `,
|
|
47
47
|
* host: iot.endpointIp,
|