pulumi-cloudamqp 3.17.5__py3-none-any.whl → 3.17.6a1717540449__py3-none-any.whl
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.
Potentially problematic release.
This version of pulumi-cloudamqp might be problematic. Click here for more details.
- pulumi_cloudamqp/alarm.py +26 -30
- pulumi_cloudamqp/custom_domain.py +2 -6
- pulumi_cloudamqp/extra_disk_size.py +32 -24
- pulumi_cloudamqp/get_account.py +0 -72
- pulumi_cloudamqp/get_account_vpcs.py +0 -4
- pulumi_cloudamqp/get_alarm.py +2 -6
- pulumi_cloudamqp/get_credentials.py +2 -6
- pulumi_cloudamqp/get_nodes.py +2 -6
- pulumi_cloudamqp/get_notification.py +2 -6
- pulumi_cloudamqp/get_plugins.py +2 -6
- pulumi_cloudamqp/get_plugins_community.py +2 -6
- pulumi_cloudamqp/get_upgradable_versions.py +2 -6
- pulumi_cloudamqp/get_vpc_gcp_info.py +4 -12
- pulumi_cloudamqp/get_vpc_info.py +4 -12
- pulumi_cloudamqp/instance.py +38 -132
- pulumi_cloudamqp/integration_aws_eventbridge.py +4 -6
- pulumi_cloudamqp/integration_log.py +94 -114
- pulumi_cloudamqp/node_actions.py +36 -48
- pulumi_cloudamqp/notification.py +50 -64
- pulumi_cloudamqp/privatelink_aws.py +12 -48
- pulumi_cloudamqp/privatelink_azure.py +12 -48
- pulumi_cloudamqp/provider.py +0 -5
- pulumi_cloudamqp/pulumi-plugin.json +2 -1
- pulumi_cloudamqp/upgrade_rabbitmq.py +16 -22
- pulumi_cloudamqp/vpc.py +8 -6
- pulumi_cloudamqp/vpc_connect.py +26 -76
- pulumi_cloudamqp/vpc_gcp_peering.py +148 -62
- pulumi_cloudamqp/webhook.py +4 -8
- {pulumi_cloudamqp-3.17.5.dist-info → pulumi_cloudamqp-3.17.6a1717540449.dist-info}/METADATA +1 -1
- pulumi_cloudamqp-3.17.6a1717540449.dist-info/RECORD +48 -0
- pulumi_cloudamqp-3.17.5.dist-info/RECORD +0 -48
- {pulumi_cloudamqp-3.17.5.dist-info → pulumi_cloudamqp-3.17.6a1717540449.dist-info}/WHEEL +0 -0
- {pulumi_cloudamqp-3.17.5.dist-info → pulumi_cloudamqp-3.17.6a1717540449.dist-info}/top_level.txt +0 -0
|
@@ -246,23 +246,6 @@ class PrivatelinkAzure(pulumi.CustomResource):
|
|
|
246
246
|
<i>Default PrivateLink firewall rule</i>
|
|
247
247
|
</summary>
|
|
248
248
|
|
|
249
|
-
<!--Start PulumiCodeChooser -->
|
|
250
|
-
```python
|
|
251
|
-
import pulumi
|
|
252
|
-
```
|
|
253
|
-
<!--End PulumiCodeChooser -->
|
|
254
|
-
|
|
255
|
-
</details>
|
|
256
|
-
|
|
257
|
-
Pricing is available at [cloudamqp.com](https://www.cloudamqp.com/plans.html) where you can also
|
|
258
|
-
find more information about
|
|
259
|
-
[CloudAMQP PrivateLink](https://www.cloudamqp.com/docs/cloudamqp-privatelink.html#azure-privatelink).
|
|
260
|
-
|
|
261
|
-
Only available for dedicated subscription plans.
|
|
262
|
-
|
|
263
|
-
> **Warning:** This resource considered deprecated and will be removed in next major version (v2.0).
|
|
264
|
-
Recommended to start using the new resource`VpcConnect`.
|
|
265
|
-
|
|
266
249
|
## Example Usage
|
|
267
250
|
|
|
268
251
|
<details>
|
|
@@ -272,12 +255,12 @@ class PrivatelinkAzure(pulumi.CustomResource):
|
|
|
272
255
|
</b>
|
|
273
256
|
</summary>
|
|
274
257
|
|
|
275
|
-
<!--Start PulumiCodeChooser -->
|
|
276
258
|
```python
|
|
277
259
|
import pulumi
|
|
278
260
|
import pulumi_cloudamqp as cloudamqp
|
|
279
261
|
|
|
280
262
|
instance = cloudamqp.Instance("instance",
|
|
263
|
+
name="Instance 01",
|
|
281
264
|
plan="bunny-1",
|
|
282
265
|
region="azure-arm::westus",
|
|
283
266
|
tags=[])
|
|
@@ -285,7 +268,6 @@ class PrivatelinkAzure(pulumi.CustomResource):
|
|
|
285
268
|
instance_id=instance.id,
|
|
286
269
|
approved_subscriptions=["XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"])
|
|
287
270
|
```
|
|
288
|
-
<!--End PulumiCodeChooser -->
|
|
289
271
|
</details>
|
|
290
272
|
|
|
291
273
|
<details>
|
|
@@ -295,16 +277,17 @@ class PrivatelinkAzure(pulumi.CustomResource):
|
|
|
295
277
|
</b>
|
|
296
278
|
</summary>
|
|
297
279
|
|
|
298
|
-
<!--Start PulumiCodeChooser -->
|
|
299
280
|
```python
|
|
300
281
|
import pulumi
|
|
301
282
|
import pulumi_cloudamqp as cloudamqp
|
|
302
283
|
|
|
303
284
|
vpc = cloudamqp.Vpc("vpc",
|
|
285
|
+
name="Standalone VPC",
|
|
304
286
|
region="azure-arm::westus",
|
|
305
287
|
subnet="10.56.72.0/24",
|
|
306
288
|
tags=[])
|
|
307
289
|
instance = cloudamqp.Instance("instance",
|
|
290
|
+
name="Instance 01",
|
|
308
291
|
plan="bunny-1",
|
|
309
292
|
region="azure-arm::westus",
|
|
310
293
|
tags=[],
|
|
@@ -314,7 +297,6 @@ class PrivatelinkAzure(pulumi.CustomResource):
|
|
|
314
297
|
instance_id=instance.id,
|
|
315
298
|
approved_subscriptions=["XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"])
|
|
316
299
|
```
|
|
317
|
-
<!--End PulumiCodeChooser -->
|
|
318
300
|
|
|
319
301
|
</details>
|
|
320
302
|
|
|
@@ -327,16 +309,17 @@ class PrivatelinkAzure(pulumi.CustomResource):
|
|
|
327
309
|
</b>
|
|
328
310
|
</summary>
|
|
329
311
|
|
|
330
|
-
<!--Start PulumiCodeChooser -->
|
|
331
312
|
```python
|
|
332
313
|
import pulumi
|
|
333
314
|
import pulumi_cloudamqp as cloudamqp
|
|
334
315
|
|
|
335
316
|
vpc = cloudamqp.Vpc("vpc",
|
|
317
|
+
name="Standalone VPC",
|
|
336
318
|
region="azure-arm::westus",
|
|
337
319
|
subnet="10.56.72.0/24",
|
|
338
320
|
tags=[])
|
|
339
321
|
instance = cloudamqp.Instance("instance",
|
|
322
|
+
name="Instance 01",
|
|
340
323
|
plan="bunny-1",
|
|
341
324
|
region="azure-arm::westus",
|
|
342
325
|
tags=[],
|
|
@@ -345,7 +328,7 @@ class PrivatelinkAzure(pulumi.CustomResource):
|
|
|
345
328
|
privatelink = cloudamqp.PrivatelinkAzure("privatelink",
|
|
346
329
|
instance_id=instance.id,
|
|
347
330
|
approved_subscriptions=["XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"])
|
|
348
|
-
firewall_settings = cloudamqp.SecurityFirewall("
|
|
331
|
+
firewall_settings = cloudamqp.SecurityFirewall("firewall_settings",
|
|
349
332
|
instance_id=instance.id,
|
|
350
333
|
rules=[
|
|
351
334
|
cloudamqp.SecurityFirewallRuleArgs(
|
|
@@ -369,7 +352,6 @@ class PrivatelinkAzure(pulumi.CustomResource):
|
|
|
369
352
|
],
|
|
370
353
|
opts=pulumi.ResourceOptions(depends_on=[privatelink]))
|
|
371
354
|
```
|
|
372
|
-
<!--End PulumiCodeChooser -->
|
|
373
355
|
|
|
374
356
|
</details>
|
|
375
357
|
|
|
@@ -426,23 +408,6 @@ class PrivatelinkAzure(pulumi.CustomResource):
|
|
|
426
408
|
<i>Default PrivateLink firewall rule</i>
|
|
427
409
|
</summary>
|
|
428
410
|
|
|
429
|
-
<!--Start PulumiCodeChooser -->
|
|
430
|
-
```python
|
|
431
|
-
import pulumi
|
|
432
|
-
```
|
|
433
|
-
<!--End PulumiCodeChooser -->
|
|
434
|
-
|
|
435
|
-
</details>
|
|
436
|
-
|
|
437
|
-
Pricing is available at [cloudamqp.com](https://www.cloudamqp.com/plans.html) where you can also
|
|
438
|
-
find more information about
|
|
439
|
-
[CloudAMQP PrivateLink](https://www.cloudamqp.com/docs/cloudamqp-privatelink.html#azure-privatelink).
|
|
440
|
-
|
|
441
|
-
Only available for dedicated subscription plans.
|
|
442
|
-
|
|
443
|
-
> **Warning:** This resource considered deprecated and will be removed in next major version (v2.0).
|
|
444
|
-
Recommended to start using the new resource`VpcConnect`.
|
|
445
|
-
|
|
446
411
|
## Example Usage
|
|
447
412
|
|
|
448
413
|
<details>
|
|
@@ -452,12 +417,12 @@ class PrivatelinkAzure(pulumi.CustomResource):
|
|
|
452
417
|
</b>
|
|
453
418
|
</summary>
|
|
454
419
|
|
|
455
|
-
<!--Start PulumiCodeChooser -->
|
|
456
420
|
```python
|
|
457
421
|
import pulumi
|
|
458
422
|
import pulumi_cloudamqp as cloudamqp
|
|
459
423
|
|
|
460
424
|
instance = cloudamqp.Instance("instance",
|
|
425
|
+
name="Instance 01",
|
|
461
426
|
plan="bunny-1",
|
|
462
427
|
region="azure-arm::westus",
|
|
463
428
|
tags=[])
|
|
@@ -465,7 +430,6 @@ class PrivatelinkAzure(pulumi.CustomResource):
|
|
|
465
430
|
instance_id=instance.id,
|
|
466
431
|
approved_subscriptions=["XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"])
|
|
467
432
|
```
|
|
468
|
-
<!--End PulumiCodeChooser -->
|
|
469
433
|
</details>
|
|
470
434
|
|
|
471
435
|
<details>
|
|
@@ -475,16 +439,17 @@ class PrivatelinkAzure(pulumi.CustomResource):
|
|
|
475
439
|
</b>
|
|
476
440
|
</summary>
|
|
477
441
|
|
|
478
|
-
<!--Start PulumiCodeChooser -->
|
|
479
442
|
```python
|
|
480
443
|
import pulumi
|
|
481
444
|
import pulumi_cloudamqp as cloudamqp
|
|
482
445
|
|
|
483
446
|
vpc = cloudamqp.Vpc("vpc",
|
|
447
|
+
name="Standalone VPC",
|
|
484
448
|
region="azure-arm::westus",
|
|
485
449
|
subnet="10.56.72.0/24",
|
|
486
450
|
tags=[])
|
|
487
451
|
instance = cloudamqp.Instance("instance",
|
|
452
|
+
name="Instance 01",
|
|
488
453
|
plan="bunny-1",
|
|
489
454
|
region="azure-arm::westus",
|
|
490
455
|
tags=[],
|
|
@@ -494,7 +459,6 @@ class PrivatelinkAzure(pulumi.CustomResource):
|
|
|
494
459
|
instance_id=instance.id,
|
|
495
460
|
approved_subscriptions=["XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"])
|
|
496
461
|
```
|
|
497
|
-
<!--End PulumiCodeChooser -->
|
|
498
462
|
|
|
499
463
|
</details>
|
|
500
464
|
|
|
@@ -507,16 +471,17 @@ class PrivatelinkAzure(pulumi.CustomResource):
|
|
|
507
471
|
</b>
|
|
508
472
|
</summary>
|
|
509
473
|
|
|
510
|
-
<!--Start PulumiCodeChooser -->
|
|
511
474
|
```python
|
|
512
475
|
import pulumi
|
|
513
476
|
import pulumi_cloudamqp as cloudamqp
|
|
514
477
|
|
|
515
478
|
vpc = cloudamqp.Vpc("vpc",
|
|
479
|
+
name="Standalone VPC",
|
|
516
480
|
region="azure-arm::westus",
|
|
517
481
|
subnet="10.56.72.0/24",
|
|
518
482
|
tags=[])
|
|
519
483
|
instance = cloudamqp.Instance("instance",
|
|
484
|
+
name="Instance 01",
|
|
520
485
|
plan="bunny-1",
|
|
521
486
|
region="azure-arm::westus",
|
|
522
487
|
tags=[],
|
|
@@ -525,7 +490,7 @@ class PrivatelinkAzure(pulumi.CustomResource):
|
|
|
525
490
|
privatelink = cloudamqp.PrivatelinkAzure("privatelink",
|
|
526
491
|
instance_id=instance.id,
|
|
527
492
|
approved_subscriptions=["XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"])
|
|
528
|
-
firewall_settings = cloudamqp.SecurityFirewall("
|
|
493
|
+
firewall_settings = cloudamqp.SecurityFirewall("firewall_settings",
|
|
529
494
|
instance_id=instance.id,
|
|
530
495
|
rules=[
|
|
531
496
|
cloudamqp.SecurityFirewallRuleArgs(
|
|
@@ -549,7 +514,6 @@ class PrivatelinkAzure(pulumi.CustomResource):
|
|
|
549
514
|
],
|
|
550
515
|
opts=pulumi.ResourceOptions(depends_on=[privatelink]))
|
|
551
516
|
```
|
|
552
|
-
<!--End PulumiCodeChooser -->
|
|
553
517
|
|
|
554
518
|
</details>
|
|
555
519
|
|
pulumi_cloudamqp/provider.py
CHANGED
|
@@ -21,7 +21,6 @@ class ProviderArgs:
|
|
|
21
21
|
The set of arguments for constructing a Provider resource.
|
|
22
22
|
:param pulumi.Input[str] apikey: Key used to authentication to the CloudAMQP Customer API
|
|
23
23
|
:param pulumi.Input[str] baseurl: Base URL to CloudAMQP Customer website
|
|
24
|
-
:param pulumi.Input[bool] enable_faster_instance_destroy: Skips destroying backend resources on 'terraform destroy'
|
|
25
24
|
"""
|
|
26
25
|
pulumi.set(__self__, "apikey", apikey)
|
|
27
26
|
if baseurl is not None:
|
|
@@ -56,9 +55,6 @@ class ProviderArgs:
|
|
|
56
55
|
@property
|
|
57
56
|
@pulumi.getter(name="enableFasterInstanceDestroy")
|
|
58
57
|
def enable_faster_instance_destroy(self) -> Optional[pulumi.Input[bool]]:
|
|
59
|
-
"""
|
|
60
|
-
Skips destroying backend resources on 'terraform destroy'
|
|
61
|
-
"""
|
|
62
58
|
return pulumi.get(self, "enable_faster_instance_destroy")
|
|
63
59
|
|
|
64
60
|
@enable_faster_instance_destroy.setter
|
|
@@ -85,7 +81,6 @@ class Provider(pulumi.ProviderResource):
|
|
|
85
81
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
86
82
|
:param pulumi.Input[str] apikey: Key used to authentication to the CloudAMQP Customer API
|
|
87
83
|
:param pulumi.Input[str] baseurl: Base URL to CloudAMQP Customer website
|
|
88
|
-
:param pulumi.Input[bool] enable_faster_instance_destroy: Skips destroying backend resources on 'terraform destroy'
|
|
89
84
|
"""
|
|
90
85
|
...
|
|
91
86
|
@overload
|
|
@@ -79,38 +79,35 @@ class UpgradeRabbitmq(pulumi.CustomResource):
|
|
|
79
79
|
|
|
80
80
|
## Example Usage
|
|
81
81
|
|
|
82
|
-
<!--Start PulumiCodeChooser -->
|
|
83
82
|
```python
|
|
84
83
|
import pulumi
|
|
85
84
|
import pulumi_cloudamqp as cloudamqp
|
|
86
85
|
|
|
87
|
-
versions
|
|
86
|
+
# Retrieve latest possible upgradable versions for RabbitMQ and Erlang
|
|
87
|
+
versions = cloudamqp.get_upgradable_versions(instance_id=instance["id"])
|
|
88
88
|
# Invoke automatically upgrade to latest possible upgradable versions for RabbitMQ and Erlang
|
|
89
|
-
upgrade = cloudamqp.UpgradeRabbitmq("upgrade", instance_id=
|
|
89
|
+
upgrade = cloudamqp.UpgradeRabbitmq("upgrade", instance_id=instance["id"])
|
|
90
90
|
```
|
|
91
|
-
<!--End PulumiCodeChooser -->
|
|
92
91
|
|
|
93
|
-
<!--Start PulumiCodeChooser -->
|
|
94
92
|
```python
|
|
95
93
|
import pulumi
|
|
96
94
|
import pulumi_cloudamqp as cloudamqp
|
|
97
95
|
|
|
98
|
-
versions
|
|
96
|
+
# Retrieve latest possible upgradable versions for RabbitMQ and Erlang
|
|
97
|
+
versions = cloudamqp.get_upgradable_versions(instance_id=instance["id"])
|
|
99
98
|
```
|
|
100
|
-
<!--End PulumiCodeChooser -->
|
|
101
99
|
|
|
102
100
|
If newer version is still available to be upgradable in the data source, re-run again.
|
|
103
101
|
|
|
104
|
-
<!--Start PulumiCodeChooser -->
|
|
105
102
|
```python
|
|
106
103
|
import pulumi
|
|
107
104
|
import pulumi_cloudamqp as cloudamqp
|
|
108
105
|
|
|
109
|
-
versions
|
|
106
|
+
# Retrieve latest possible upgradable versions for RabbitMQ and Erlang
|
|
107
|
+
versions = cloudamqp.get_upgradable_versions(instance_id=instance["id"])
|
|
110
108
|
# Invoke automatically upgrade to latest possible upgradable versions for RabbitMQ and Erlang
|
|
111
|
-
upgrade = cloudamqp.UpgradeRabbitmq("upgrade", instance_id=
|
|
109
|
+
upgrade = cloudamqp.UpgradeRabbitmq("upgrade", instance_id=instance["id"])
|
|
112
110
|
```
|
|
113
|
-
<!--End PulumiCodeChooser -->
|
|
114
111
|
|
|
115
112
|
## Import
|
|
116
113
|
|
|
@@ -140,38 +137,35 @@ class UpgradeRabbitmq(pulumi.CustomResource):
|
|
|
140
137
|
|
|
141
138
|
## Example Usage
|
|
142
139
|
|
|
143
|
-
<!--Start PulumiCodeChooser -->
|
|
144
140
|
```python
|
|
145
141
|
import pulumi
|
|
146
142
|
import pulumi_cloudamqp as cloudamqp
|
|
147
143
|
|
|
148
|
-
versions
|
|
144
|
+
# Retrieve latest possible upgradable versions for RabbitMQ and Erlang
|
|
145
|
+
versions = cloudamqp.get_upgradable_versions(instance_id=instance["id"])
|
|
149
146
|
# Invoke automatically upgrade to latest possible upgradable versions for RabbitMQ and Erlang
|
|
150
|
-
upgrade = cloudamqp.UpgradeRabbitmq("upgrade", instance_id=
|
|
147
|
+
upgrade = cloudamqp.UpgradeRabbitmq("upgrade", instance_id=instance["id"])
|
|
151
148
|
```
|
|
152
|
-
<!--End PulumiCodeChooser -->
|
|
153
149
|
|
|
154
|
-
<!--Start PulumiCodeChooser -->
|
|
155
150
|
```python
|
|
156
151
|
import pulumi
|
|
157
152
|
import pulumi_cloudamqp as cloudamqp
|
|
158
153
|
|
|
159
|
-
versions
|
|
154
|
+
# Retrieve latest possible upgradable versions for RabbitMQ and Erlang
|
|
155
|
+
versions = cloudamqp.get_upgradable_versions(instance_id=instance["id"])
|
|
160
156
|
```
|
|
161
|
-
<!--End PulumiCodeChooser -->
|
|
162
157
|
|
|
163
158
|
If newer version is still available to be upgradable in the data source, re-run again.
|
|
164
159
|
|
|
165
|
-
<!--Start PulumiCodeChooser -->
|
|
166
160
|
```python
|
|
167
161
|
import pulumi
|
|
168
162
|
import pulumi_cloudamqp as cloudamqp
|
|
169
163
|
|
|
170
|
-
versions
|
|
164
|
+
# Retrieve latest possible upgradable versions for RabbitMQ and Erlang
|
|
165
|
+
versions = cloudamqp.get_upgradable_versions(instance_id=instance["id"])
|
|
171
166
|
# Invoke automatically upgrade to latest possible upgradable versions for RabbitMQ and Erlang
|
|
172
|
-
upgrade = cloudamqp.UpgradeRabbitmq("upgrade", instance_id=
|
|
167
|
+
upgrade = cloudamqp.UpgradeRabbitmq("upgrade", instance_id=instance["id"])
|
|
173
168
|
```
|
|
174
|
-
<!--End PulumiCodeChooser -->
|
|
175
169
|
|
|
176
170
|
## Import
|
|
177
171
|
|
pulumi_cloudamqp/vpc.py
CHANGED
|
@@ -190,28 +190,29 @@ class Vpc(pulumi.CustomResource):
|
|
|
190
190
|
|
|
191
191
|
## Example Usage
|
|
192
192
|
|
|
193
|
-
<!--Start PulumiCodeChooser -->
|
|
194
193
|
```python
|
|
195
194
|
import pulumi
|
|
196
195
|
import pulumi_cloudamqp as cloudamqp
|
|
197
196
|
|
|
198
197
|
# Managed VPC resource
|
|
199
198
|
vpc = cloudamqp.Vpc("vpc",
|
|
199
|
+
name="<VPC name>",
|
|
200
200
|
region="amazon-web-services::us-east-1",
|
|
201
201
|
subnet="10.56.72.0/24",
|
|
202
202
|
tags=[])
|
|
203
203
|
# New instance, need to be created with a vpc
|
|
204
204
|
instance = cloudamqp.Instance("instance",
|
|
205
|
+
name="<Instance name>",
|
|
205
206
|
plan="bunny-1",
|
|
206
207
|
region="amazon-web-services::us-east-1",
|
|
207
208
|
nodes=1,
|
|
208
209
|
tags=[],
|
|
209
210
|
rmq_version="3.9.13",
|
|
210
|
-
vpc_id=
|
|
211
|
+
vpc_id=vpc_cloudamq_vpc["id"],
|
|
211
212
|
keep_associated_vpc=True)
|
|
213
|
+
# Additional VPC information
|
|
212
214
|
vpc_info = cloudamqp.get_vpc_info_output(vpc_id=vpc.id)
|
|
213
215
|
```
|
|
214
|
-
<!--End PulumiCodeChooser -->
|
|
215
216
|
|
|
216
217
|
## Import
|
|
217
218
|
|
|
@@ -249,28 +250,29 @@ class Vpc(pulumi.CustomResource):
|
|
|
249
250
|
|
|
250
251
|
## Example Usage
|
|
251
252
|
|
|
252
|
-
<!--Start PulumiCodeChooser -->
|
|
253
253
|
```python
|
|
254
254
|
import pulumi
|
|
255
255
|
import pulumi_cloudamqp as cloudamqp
|
|
256
256
|
|
|
257
257
|
# Managed VPC resource
|
|
258
258
|
vpc = cloudamqp.Vpc("vpc",
|
|
259
|
+
name="<VPC name>",
|
|
259
260
|
region="amazon-web-services::us-east-1",
|
|
260
261
|
subnet="10.56.72.0/24",
|
|
261
262
|
tags=[])
|
|
262
263
|
# New instance, need to be created with a vpc
|
|
263
264
|
instance = cloudamqp.Instance("instance",
|
|
265
|
+
name="<Instance name>",
|
|
264
266
|
plan="bunny-1",
|
|
265
267
|
region="amazon-web-services::us-east-1",
|
|
266
268
|
nodes=1,
|
|
267
269
|
tags=[],
|
|
268
270
|
rmq_version="3.9.13",
|
|
269
|
-
vpc_id=
|
|
271
|
+
vpc_id=vpc_cloudamq_vpc["id"],
|
|
270
272
|
keep_associated_vpc=True)
|
|
273
|
+
# Additional VPC information
|
|
271
274
|
vpc_info = cloudamqp.get_vpc_info_output(vpc_id=vpc.id)
|
|
272
275
|
```
|
|
273
|
-
<!--End PulumiCodeChooser -->
|
|
274
276
|
|
|
275
277
|
## Import
|
|
276
278
|
|