pulumi-cloudamqp 3.17.4__tar.gz → 3.17.6__tar.gz
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-3.17.4 → pulumi_cloudamqp-3.17.6}/PKG-INFO +1 -1
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/alarm.py +116 -16
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/custom_domain.py +4 -2
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/extra_disk_size.py +34 -8
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/get_account.py +0 -66
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/get_account_vpcs.py +2 -0
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/get_alarm.py +4 -2
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/get_credentials.py +4 -2
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/get_instance.py +0 -42
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/get_nodes.py +4 -2
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/get_notification.py +4 -2
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/get_plugins.py +4 -2
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/get_plugins_community.py +4 -2
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/get_upgradable_versions.py +4 -2
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/get_vpc_gcp_info.py +6 -4
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/get_vpc_info.py +6 -4
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/instance.py +40 -100
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/integration_aws_eventbridge.py +6 -2
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/integration_log.py +406 -36
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/node_actions.py +38 -36
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/notification.py +56 -40
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/plugin_community.py +2 -2
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/privatelink_aws.py +18 -34
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/privatelink_azure.py +18 -34
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/provider.py +0 -5
- pulumi_cloudamqp-3.17.6/pulumi_cloudamqp/pulumi-plugin.json +5 -0
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/upgrade_rabbitmq.py +16 -10
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/vpc.py +12 -6
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/vpc_connect.py +32 -54
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/vpc_gcp_peering.py +202 -30
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/webhook.py +6 -4
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp.egg-info/PKG-INFO +1 -1
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pyproject.toml +1 -1
- pulumi_cloudamqp-3.17.4/pulumi_cloudamqp/pulumi-plugin.json +0 -4
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/README.md +0 -0
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/__init__.py +0 -0
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/_inputs.py +0 -0
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/_utilities.py +0 -0
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/account_action.py +0 -0
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/config/__init__.py +0 -0
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/config/__init__.pyi +0 -0
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/config/vars.py +0 -0
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/integration_metric.py +0 -0
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/outputs.py +0 -0
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/plugin.py +0 -0
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/py.typed +0 -0
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/rabbit_configuration.py +0 -0
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/security_firewall.py +0 -0
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp/vpc_peering.py +0 -0
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp.egg-info/SOURCES.txt +0 -0
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp.egg-info/dependency_links.txt +0 -0
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp.egg-info/requires.txt +0 -0
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/pulumi_cloudamqp.egg-info/top_level.txt +0 -0
- {pulumi_cloudamqp-3.17.4 → pulumi_cloudamqp-3.17.6}/setup.cfg +0 -0
|
@@ -417,18 +417,26 @@ class Alarm(pulumi.CustomResource):
|
|
|
417
417
|
|
|
418
418
|
## Example Usage
|
|
419
419
|
|
|
420
|
+
<details>
|
|
421
|
+
<summary>
|
|
422
|
+
<b>
|
|
423
|
+
<i>Basic example of CPU and memory alarm</i>
|
|
424
|
+
</b>
|
|
425
|
+
</summary>
|
|
426
|
+
|
|
420
427
|
```python
|
|
421
428
|
import pulumi
|
|
422
429
|
import pulumi_cloudamqp as cloudamqp
|
|
423
430
|
|
|
424
431
|
# New recipient
|
|
425
|
-
recipient01 = cloudamqp.Notification("
|
|
426
|
-
instance_id=
|
|
432
|
+
recipient01 = cloudamqp.Notification("recipient_01",
|
|
433
|
+
instance_id=instance["id"],
|
|
427
434
|
type="email",
|
|
428
|
-
value="alarm@example.com"
|
|
435
|
+
value="alarm@example.com",
|
|
436
|
+
name="alarm")
|
|
429
437
|
# New cpu alarm
|
|
430
|
-
cpu_alarm = cloudamqp.Alarm("
|
|
431
|
-
instance_id=
|
|
438
|
+
cpu_alarm = cloudamqp.Alarm("cpu_alarm",
|
|
439
|
+
instance_id=instance["id"],
|
|
432
440
|
type="cpu",
|
|
433
441
|
enabled=True,
|
|
434
442
|
reminder_interval=600,
|
|
@@ -436,8 +444,8 @@ class Alarm(pulumi.CustomResource):
|
|
|
436
444
|
time_threshold=600,
|
|
437
445
|
recipients=[recipient01.id])
|
|
438
446
|
# New memory alarm
|
|
439
|
-
memory_alarm = cloudamqp.Alarm("
|
|
440
|
-
instance_id=
|
|
447
|
+
memory_alarm = cloudamqp.Alarm("memory_alarm",
|
|
448
|
+
instance_id=instance["id"],
|
|
441
449
|
type="memory",
|
|
442
450
|
enabled=True,
|
|
443
451
|
reminder_interval=600,
|
|
@@ -445,6 +453,38 @@ class Alarm(pulumi.CustomResource):
|
|
|
445
453
|
time_threshold=600,
|
|
446
454
|
recipients=[recipient01.id])
|
|
447
455
|
```
|
|
456
|
+
|
|
457
|
+
</details>
|
|
458
|
+
|
|
459
|
+
<details>
|
|
460
|
+
<summary>
|
|
461
|
+
<b>
|
|
462
|
+
<i>Manage notice alarm, available from v1.29.5</i>
|
|
463
|
+
</b>
|
|
464
|
+
</summary>
|
|
465
|
+
|
|
466
|
+
Only one notice alarm can exists and cannot be created, instead the alarm resource will be updated.
|
|
467
|
+
|
|
468
|
+
```python
|
|
469
|
+
import pulumi
|
|
470
|
+
import pulumi_cloudamqp as cloudamqp
|
|
471
|
+
|
|
472
|
+
# New recipient
|
|
473
|
+
recipient01 = cloudamqp.Notification("recipient_01",
|
|
474
|
+
instance_id=instance["id"],
|
|
475
|
+
type="email",
|
|
476
|
+
value="alarm@example.com",
|
|
477
|
+
name="alarm")
|
|
478
|
+
# Update existing notice alarm
|
|
479
|
+
notice = cloudamqp.Alarm("notice",
|
|
480
|
+
instance_id=instance["id"],
|
|
481
|
+
type="notice",
|
|
482
|
+
enabled=True,
|
|
483
|
+
recipients=[recipient01.id])
|
|
484
|
+
```
|
|
485
|
+
|
|
486
|
+
</details>
|
|
487
|
+
|
|
448
488
|
## Alarm Type reference
|
|
449
489
|
|
|
450
490
|
Supported alarm types: `cpu, memory, disk, queue, connection, flow, consumer, netsplit, server_unreachable, notice`
|
|
@@ -465,12 +505,22 @@ class Alarm(pulumi.CustomResource):
|
|
|
465
505
|
| Server unreachable | server_unreachable | - | ✔ | time_threshold |
|
|
466
506
|
| Notice | notice | ✔ | ✔ | |
|
|
467
507
|
|
|
468
|
-
> Notice alarm is manadatory! Only one can exists and cannot be deleted. Setting `no_default_alarm` to true, will still create this alarm.
|
|
508
|
+
> Notice alarm is manadatory! Only one can exists and cannot be deleted. Setting `no_default_alarm` to true, will still create this alarm. See updated changes to notice alarm below.
|
|
469
509
|
|
|
470
510
|
## Dependency
|
|
471
511
|
|
|
472
512
|
This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
|
|
473
513
|
|
|
514
|
+
## Notice alarm
|
|
515
|
+
|
|
516
|
+
There is a limitation for notice alarm in the API backend. This alarm is mandatory, multiple
|
|
517
|
+
alarms cannot exists or be deleted.
|
|
518
|
+
|
|
519
|
+
From provider version v1.29.5
|
|
520
|
+
it's possible to manage the notice alarm and no longer needs to be imported. Just create the
|
|
521
|
+
alarm resource as usually and it will be updated with given recipients. If the alarm is deleted
|
|
522
|
+
it will only be removed from the state file, but will still be enabled in the backend.
|
|
523
|
+
|
|
474
524
|
## Import
|
|
475
525
|
|
|
476
526
|
`cloudamqp_alarm` can be imported using CloudAMQP internal identifier of the alarm together (CSV separated) with the instance identifier. To retrieve the alarm identifier, use [CloudAMQP API](https://docs.cloudamqp.com/cloudamqp_api.html#list-alarms)
|
|
@@ -512,18 +562,26 @@ class Alarm(pulumi.CustomResource):
|
|
|
512
562
|
|
|
513
563
|
## Example Usage
|
|
514
564
|
|
|
565
|
+
<details>
|
|
566
|
+
<summary>
|
|
567
|
+
<b>
|
|
568
|
+
<i>Basic example of CPU and memory alarm</i>
|
|
569
|
+
</b>
|
|
570
|
+
</summary>
|
|
571
|
+
|
|
515
572
|
```python
|
|
516
573
|
import pulumi
|
|
517
574
|
import pulumi_cloudamqp as cloudamqp
|
|
518
575
|
|
|
519
576
|
# New recipient
|
|
520
|
-
recipient01 = cloudamqp.Notification("
|
|
521
|
-
instance_id=
|
|
577
|
+
recipient01 = cloudamqp.Notification("recipient_01",
|
|
578
|
+
instance_id=instance["id"],
|
|
522
579
|
type="email",
|
|
523
|
-
value="alarm@example.com"
|
|
580
|
+
value="alarm@example.com",
|
|
581
|
+
name="alarm")
|
|
524
582
|
# New cpu alarm
|
|
525
|
-
cpu_alarm = cloudamqp.Alarm("
|
|
526
|
-
instance_id=
|
|
583
|
+
cpu_alarm = cloudamqp.Alarm("cpu_alarm",
|
|
584
|
+
instance_id=instance["id"],
|
|
527
585
|
type="cpu",
|
|
528
586
|
enabled=True,
|
|
529
587
|
reminder_interval=600,
|
|
@@ -531,8 +589,8 @@ class Alarm(pulumi.CustomResource):
|
|
|
531
589
|
time_threshold=600,
|
|
532
590
|
recipients=[recipient01.id])
|
|
533
591
|
# New memory alarm
|
|
534
|
-
memory_alarm = cloudamqp.Alarm("
|
|
535
|
-
instance_id=
|
|
592
|
+
memory_alarm = cloudamqp.Alarm("memory_alarm",
|
|
593
|
+
instance_id=instance["id"],
|
|
536
594
|
type="memory",
|
|
537
595
|
enabled=True,
|
|
538
596
|
reminder_interval=600,
|
|
@@ -540,6 +598,38 @@ class Alarm(pulumi.CustomResource):
|
|
|
540
598
|
time_threshold=600,
|
|
541
599
|
recipients=[recipient01.id])
|
|
542
600
|
```
|
|
601
|
+
|
|
602
|
+
</details>
|
|
603
|
+
|
|
604
|
+
<details>
|
|
605
|
+
<summary>
|
|
606
|
+
<b>
|
|
607
|
+
<i>Manage notice alarm, available from v1.29.5</i>
|
|
608
|
+
</b>
|
|
609
|
+
</summary>
|
|
610
|
+
|
|
611
|
+
Only one notice alarm can exists and cannot be created, instead the alarm resource will be updated.
|
|
612
|
+
|
|
613
|
+
```python
|
|
614
|
+
import pulumi
|
|
615
|
+
import pulumi_cloudamqp as cloudamqp
|
|
616
|
+
|
|
617
|
+
# New recipient
|
|
618
|
+
recipient01 = cloudamqp.Notification("recipient_01",
|
|
619
|
+
instance_id=instance["id"],
|
|
620
|
+
type="email",
|
|
621
|
+
value="alarm@example.com",
|
|
622
|
+
name="alarm")
|
|
623
|
+
# Update existing notice alarm
|
|
624
|
+
notice = cloudamqp.Alarm("notice",
|
|
625
|
+
instance_id=instance["id"],
|
|
626
|
+
type="notice",
|
|
627
|
+
enabled=True,
|
|
628
|
+
recipients=[recipient01.id])
|
|
629
|
+
```
|
|
630
|
+
|
|
631
|
+
</details>
|
|
632
|
+
|
|
543
633
|
## Alarm Type reference
|
|
544
634
|
|
|
545
635
|
Supported alarm types: `cpu, memory, disk, queue, connection, flow, consumer, netsplit, server_unreachable, notice`
|
|
@@ -560,12 +650,22 @@ class Alarm(pulumi.CustomResource):
|
|
|
560
650
|
| Server unreachable | server_unreachable | - | ✔ | time_threshold |
|
|
561
651
|
| Notice | notice | ✔ | ✔ | |
|
|
562
652
|
|
|
563
|
-
> Notice alarm is manadatory! Only one can exists and cannot be deleted. Setting `no_default_alarm` to true, will still create this alarm.
|
|
653
|
+
> Notice alarm is manadatory! Only one can exists and cannot be deleted. Setting `no_default_alarm` to true, will still create this alarm. See updated changes to notice alarm below.
|
|
564
654
|
|
|
565
655
|
## Dependency
|
|
566
656
|
|
|
567
657
|
This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
|
|
568
658
|
|
|
659
|
+
## Notice alarm
|
|
660
|
+
|
|
661
|
+
There is a limitation for notice alarm in the API backend. This alarm is mandatory, multiple
|
|
662
|
+
alarms cannot exists or be deleted.
|
|
663
|
+
|
|
664
|
+
From provider version v1.29.5
|
|
665
|
+
it's possible to manage the notice alarm and no longer needs to be imported. Just create the
|
|
666
|
+
alarm resource as usually and it will be updated with given recipients. If the alarm is deleted
|
|
667
|
+
it will only be removed from the state file, but will still be enabled in the backend.
|
|
668
|
+
|
|
569
669
|
## Import
|
|
570
670
|
|
|
571
671
|
`cloudamqp_alarm` can be imported using CloudAMQP internal identifier of the alarm together (CSV separated) with the instance identifier. To retrieve the alarm identifier, use [CloudAMQP API](https://docs.cloudamqp.com/cloudamqp_api.html#list-alarms)
|
|
@@ -115,9 +115,10 @@ class CustomDomain(pulumi.CustomResource):
|
|
|
115
115
|
import pulumi_cloudamqp as cloudamqp
|
|
116
116
|
|
|
117
117
|
settings = cloudamqp.CustomDomain("settings",
|
|
118
|
-
instance_id=
|
|
118
|
+
instance_id=instance["id"],
|
|
119
119
|
hostname="myname.mydomain")
|
|
120
120
|
```
|
|
121
|
+
|
|
121
122
|
## Depedency
|
|
122
123
|
|
|
123
124
|
This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
|
|
@@ -161,9 +162,10 @@ class CustomDomain(pulumi.CustomResource):
|
|
|
161
162
|
import pulumi_cloudamqp as cloudamqp
|
|
162
163
|
|
|
163
164
|
settings = cloudamqp.CustomDomain("settings",
|
|
164
|
-
instance_id=
|
|
165
|
+
instance_id=instance["id"],
|
|
165
166
|
hostname="myname.mydomain")
|
|
166
167
|
```
|
|
168
|
+
|
|
167
169
|
## Depedency
|
|
168
170
|
|
|
169
171
|
This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
|
|
@@ -257,12 +257,15 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
257
257
|
|
|
258
258
|
# Instance
|
|
259
259
|
instance = cloudamqp.Instance("instance",
|
|
260
|
+
name="Instance",
|
|
260
261
|
plan="bunny-1",
|
|
261
262
|
region="amazon-web-services::us-west-2")
|
|
262
263
|
# Resize disk with 25 extra GB
|
|
263
|
-
resize_disk = cloudamqp.ExtraDiskSize("
|
|
264
|
+
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
264
265
|
instance_id=instance.id,
|
|
265
266
|
extra_disk_size=25)
|
|
267
|
+
# Optional, refresh nodes info after disk resize by adding dependency
|
|
268
|
+
# to cloudamqp_extra_disk_size.resize_disk resource
|
|
266
269
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
267
270
|
```
|
|
268
271
|
|
|
@@ -281,12 +284,15 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
281
284
|
|
|
282
285
|
# Instance
|
|
283
286
|
instance = cloudamqp.Instance("instance",
|
|
287
|
+
name="Instance",
|
|
284
288
|
plan="bunny-1",
|
|
285
289
|
region="amazon-web-services::us-west-2")
|
|
286
290
|
# Resize disk with 25 extra GB, without downtime
|
|
287
|
-
resize_disk = cloudamqp.ExtraDiskSize("
|
|
291
|
+
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
288
292
|
instance_id=instance.id,
|
|
289
293
|
extra_disk_size=25)
|
|
294
|
+
# Optional, refresh nodes info after disk resize by adding dependency
|
|
295
|
+
# to cloudamqp_extra_disk_size.resize_disk resource
|
|
290
296
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
291
297
|
```
|
|
292
298
|
|
|
@@ -305,12 +311,15 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
305
311
|
|
|
306
312
|
# Instance
|
|
307
313
|
instance = cloudamqp.Instance("instance",
|
|
314
|
+
name="Instance",
|
|
308
315
|
plan="bunny-1",
|
|
309
316
|
region="google-compute-engine::us-central1")
|
|
310
317
|
# Resize disk with 25 extra GB, without downtime
|
|
311
|
-
resize_disk = cloudamqp.ExtraDiskSize("
|
|
318
|
+
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
312
319
|
instance_id=instance.id,
|
|
313
320
|
extra_disk_size=25)
|
|
321
|
+
# Optional, refresh nodes info after disk resize by adding dependency
|
|
322
|
+
# to cloudamqp_extra_disk_size.resize_disk resource
|
|
314
323
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
315
324
|
```
|
|
316
325
|
|
|
@@ -329,17 +338,21 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
329
338
|
|
|
330
339
|
# Instance
|
|
331
340
|
instance = cloudamqp.Instance("instance",
|
|
341
|
+
name="Instance",
|
|
332
342
|
plan="bunny-1",
|
|
333
343
|
region="azure-arm::centralus")
|
|
334
344
|
# Resize disk with 25 extra GB, with downtime
|
|
335
|
-
resize_disk = cloudamqp.ExtraDiskSize("
|
|
345
|
+
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
336
346
|
instance_id=instance.id,
|
|
337
347
|
extra_disk_size=25,
|
|
338
348
|
allow_downtime=True)
|
|
349
|
+
# Optional, refresh nodes info after disk resize by adding dependency
|
|
350
|
+
# to cloudamqp_extra_disk_size.resize_disk resource
|
|
339
351
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
340
352
|
```
|
|
341
353
|
|
|
342
354
|
</details>
|
|
355
|
+
|
|
343
356
|
## Attributes reference
|
|
344
357
|
|
|
345
358
|
All attributes reference are computed
|
|
@@ -420,12 +433,15 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
420
433
|
|
|
421
434
|
# Instance
|
|
422
435
|
instance = cloudamqp.Instance("instance",
|
|
436
|
+
name="Instance",
|
|
423
437
|
plan="bunny-1",
|
|
424
438
|
region="amazon-web-services::us-west-2")
|
|
425
439
|
# Resize disk with 25 extra GB
|
|
426
|
-
resize_disk = cloudamqp.ExtraDiskSize("
|
|
440
|
+
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
427
441
|
instance_id=instance.id,
|
|
428
442
|
extra_disk_size=25)
|
|
443
|
+
# Optional, refresh nodes info after disk resize by adding dependency
|
|
444
|
+
# to cloudamqp_extra_disk_size.resize_disk resource
|
|
429
445
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
430
446
|
```
|
|
431
447
|
|
|
@@ -444,12 +460,15 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
444
460
|
|
|
445
461
|
# Instance
|
|
446
462
|
instance = cloudamqp.Instance("instance",
|
|
463
|
+
name="Instance",
|
|
447
464
|
plan="bunny-1",
|
|
448
465
|
region="amazon-web-services::us-west-2")
|
|
449
466
|
# Resize disk with 25 extra GB, without downtime
|
|
450
|
-
resize_disk = cloudamqp.ExtraDiskSize("
|
|
467
|
+
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
451
468
|
instance_id=instance.id,
|
|
452
469
|
extra_disk_size=25)
|
|
470
|
+
# Optional, refresh nodes info after disk resize by adding dependency
|
|
471
|
+
# to cloudamqp_extra_disk_size.resize_disk resource
|
|
453
472
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
454
473
|
```
|
|
455
474
|
|
|
@@ -468,12 +487,15 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
468
487
|
|
|
469
488
|
# Instance
|
|
470
489
|
instance = cloudamqp.Instance("instance",
|
|
490
|
+
name="Instance",
|
|
471
491
|
plan="bunny-1",
|
|
472
492
|
region="google-compute-engine::us-central1")
|
|
473
493
|
# Resize disk with 25 extra GB, without downtime
|
|
474
|
-
resize_disk = cloudamqp.ExtraDiskSize("
|
|
494
|
+
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
475
495
|
instance_id=instance.id,
|
|
476
496
|
extra_disk_size=25)
|
|
497
|
+
# Optional, refresh nodes info after disk resize by adding dependency
|
|
498
|
+
# to cloudamqp_extra_disk_size.resize_disk resource
|
|
477
499
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
478
500
|
```
|
|
479
501
|
|
|
@@ -492,17 +514,21 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
492
514
|
|
|
493
515
|
# Instance
|
|
494
516
|
instance = cloudamqp.Instance("instance",
|
|
517
|
+
name="Instance",
|
|
495
518
|
plan="bunny-1",
|
|
496
519
|
region="azure-arm::centralus")
|
|
497
520
|
# Resize disk with 25 extra GB, with downtime
|
|
498
|
-
resize_disk = cloudamqp.ExtraDiskSize("
|
|
521
|
+
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
499
522
|
instance_id=instance.id,
|
|
500
523
|
extra_disk_size=25,
|
|
501
524
|
allow_downtime=True)
|
|
525
|
+
# Optional, refresh nodes info after disk resize by adding dependency
|
|
526
|
+
# to cloudamqp_extra_disk_size.resize_disk resource
|
|
502
527
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
503
528
|
```
|
|
504
529
|
|
|
505
530
|
</details>
|
|
531
|
+
|
|
506
532
|
## Attributes reference
|
|
507
533
|
|
|
508
534
|
All attributes reference are computed
|
|
@@ -57,39 +57,6 @@ class AwaitableGetAccountResult(GetAccountResult):
|
|
|
57
57
|
def get_account(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAccountResult:
|
|
58
58
|
"""
|
|
59
59
|
Use this data source to retrieve basic information about all instances available for an account. Uses the included apikey in provider configuration, to determine which account to read from.
|
|
60
|
-
|
|
61
|
-
## Example Usage
|
|
62
|
-
|
|
63
|
-
Can be used in other resources/data sources when instance identifier is unknown, while other attributes are known. E.g. find correct instance from `instance name`. Then iterate over instances to find the matching one and extract the instance identifier.
|
|
64
|
-
|
|
65
|
-
```python
|
|
66
|
-
import pulumi
|
|
67
|
-
import pulumi_cloudamqp as cloudamqp
|
|
68
|
-
|
|
69
|
-
instance_name = "<instance_name>"
|
|
70
|
-
instance_list = cloudamqp.get_account()
|
|
71
|
-
pulumi.export("instanceId", <nil>)
|
|
72
|
-
```
|
|
73
|
-
## Attributes reference
|
|
74
|
-
|
|
75
|
-
All attributes reference are computed
|
|
76
|
-
|
|
77
|
-
* `id` - The identifier for this data source. Set to `na` since there is no unique identifier.
|
|
78
|
-
* `instances` - An array of instances. Each `instances` block consists of the fields documented below.
|
|
79
|
-
|
|
80
|
-
***
|
|
81
|
-
|
|
82
|
-
The `instances` block consist of
|
|
83
|
-
|
|
84
|
-
* `id` - The instance identifier.
|
|
85
|
-
* `name` - The name of the instance.
|
|
86
|
-
* `plan` - The subscription plan used for the instance.
|
|
87
|
-
* `region` - The region were the instanece is located in.
|
|
88
|
-
* `tags` - Optional tags set for the instance.
|
|
89
|
-
|
|
90
|
-
## Dependency
|
|
91
|
-
|
|
92
|
-
This data source depends on apikey set in the provider configuration.
|
|
93
60
|
"""
|
|
94
61
|
__args__ = dict()
|
|
95
62
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
@@ -104,38 +71,5 @@ def get_account(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAcco
|
|
|
104
71
|
def get_account_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAccountResult]:
|
|
105
72
|
"""
|
|
106
73
|
Use this data source to retrieve basic information about all instances available for an account. Uses the included apikey in provider configuration, to determine which account to read from.
|
|
107
|
-
|
|
108
|
-
## Example Usage
|
|
109
|
-
|
|
110
|
-
Can be used in other resources/data sources when instance identifier is unknown, while other attributes are known. E.g. find correct instance from `instance name`. Then iterate over instances to find the matching one and extract the instance identifier.
|
|
111
|
-
|
|
112
|
-
```python
|
|
113
|
-
import pulumi
|
|
114
|
-
import pulumi_cloudamqp as cloudamqp
|
|
115
|
-
|
|
116
|
-
instance_name = "<instance_name>"
|
|
117
|
-
instance_list = cloudamqp.get_account()
|
|
118
|
-
pulumi.export("instanceId", <nil>)
|
|
119
|
-
```
|
|
120
|
-
## Attributes reference
|
|
121
|
-
|
|
122
|
-
All attributes reference are computed
|
|
123
|
-
|
|
124
|
-
* `id` - The identifier for this data source. Set to `na` since there is no unique identifier.
|
|
125
|
-
* `instances` - An array of instances. Each `instances` block consists of the fields documented below.
|
|
126
|
-
|
|
127
|
-
***
|
|
128
|
-
|
|
129
|
-
The `instances` block consist of
|
|
130
|
-
|
|
131
|
-
* `id` - The instance identifier.
|
|
132
|
-
* `name` - The name of the instance.
|
|
133
|
-
* `plan` - The subscription plan used for the instance.
|
|
134
|
-
* `region` - The region were the instanece is located in.
|
|
135
|
-
* `tags` - Optional tags set for the instance.
|
|
136
|
-
|
|
137
|
-
## Dependency
|
|
138
|
-
|
|
139
|
-
This data source depends on apikey set in the provider configuration.
|
|
140
74
|
"""
|
|
141
75
|
...
|
|
@@ -70,6 +70,7 @@ def get_account_vpcs(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGe
|
|
|
70
70
|
vpc_list = cloudamqp.get_account_vpcs()
|
|
71
71
|
pulumi.export("vpcId", [vpc for vpc in vpc_list.vpcs if vpc.name == my_vpc_name][0].id)
|
|
72
72
|
```
|
|
73
|
+
|
|
73
74
|
## Attributes reference
|
|
74
75
|
|
|
75
76
|
All attributes reference are computed
|
|
@@ -118,6 +119,7 @@ def get_account_vpcs_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulu
|
|
|
118
119
|
vpc_list = cloudamqp.get_account_vpcs()
|
|
119
120
|
pulumi.export("vpcId", [vpc for vpc in vpc_list.vpcs if vpc.name == my_vpc_name][0].id)
|
|
120
121
|
```
|
|
122
|
+
|
|
121
123
|
## Attributes reference
|
|
122
124
|
|
|
123
125
|
All attributes reference are computed
|
|
@@ -166,9 +166,10 @@ def get_alarm(alarm_id: Optional[int] = None,
|
|
|
166
166
|
import pulumi
|
|
167
167
|
import pulumi_cloudamqp as cloudamqp
|
|
168
168
|
|
|
169
|
-
default_cpu_alarm = cloudamqp.get_alarm(instance_id=
|
|
169
|
+
default_cpu_alarm = cloudamqp.get_alarm(instance_id=instance["id"],
|
|
170
170
|
type="cpu")
|
|
171
171
|
```
|
|
172
|
+
|
|
172
173
|
## Attributes reference
|
|
173
174
|
|
|
174
175
|
All attributes reference are computed
|
|
@@ -239,9 +240,10 @@ def get_alarm_output(alarm_id: Optional[pulumi.Input[Optional[int]]] = None,
|
|
|
239
240
|
import pulumi
|
|
240
241
|
import pulumi_cloudamqp as cloudamqp
|
|
241
242
|
|
|
242
|
-
default_cpu_alarm = cloudamqp.get_alarm(instance_id=
|
|
243
|
+
default_cpu_alarm = cloudamqp.get_alarm(instance_id=instance["id"],
|
|
243
244
|
type="cpu")
|
|
244
245
|
```
|
|
246
|
+
|
|
245
247
|
## Attributes reference
|
|
246
248
|
|
|
247
249
|
All attributes reference are computed
|
|
@@ -82,8 +82,9 @@ def get_credentials(instance_id: Optional[int] = None,
|
|
|
82
82
|
import pulumi
|
|
83
83
|
import pulumi_cloudamqp as cloudamqp
|
|
84
84
|
|
|
85
|
-
credentials = cloudamqp.get_credentials(instance_id=
|
|
85
|
+
credentials = cloudamqp.get_credentials(instance_id=instance["id"])
|
|
86
86
|
```
|
|
87
|
+
|
|
87
88
|
## Attributes reference
|
|
88
89
|
|
|
89
90
|
All attributes reference are computed.
|
|
@@ -123,8 +124,9 @@ def get_credentials_output(instance_id: Optional[pulumi.Input[int]] = None,
|
|
|
123
124
|
import pulumi
|
|
124
125
|
import pulumi_cloudamqp as cloudamqp
|
|
125
126
|
|
|
126
|
-
credentials = cloudamqp.get_credentials(instance_id=
|
|
127
|
+
credentials = cloudamqp.get_credentials(instance_id=instance["id"])
|
|
127
128
|
```
|
|
129
|
+
|
|
128
130
|
## Attributes reference
|
|
129
131
|
|
|
130
132
|
All attributes reference are computed.
|
|
@@ -211,27 +211,6 @@ def get_instance(instance_id: Optional[int] = None,
|
|
|
211
211
|
"""
|
|
212
212
|
Use this data source to retrieve information about an already created CloudAMQP instance. In order to retrieve the correct information, the CoudAMQP instance identifier is needed.
|
|
213
213
|
|
|
214
|
-
## Attributes reference
|
|
215
|
-
|
|
216
|
-
All attributes reference are computed
|
|
217
|
-
|
|
218
|
-
* `id` - The identifier for this resource.
|
|
219
|
-
* `name` - The name of the CloudAMQP instance.
|
|
220
|
-
* `plan` - The subscription plan for the CloudAMQP instance.
|
|
221
|
-
* `region` - The cloud platform and region that host the CloudAMQP instance, `{platform}::{region}`.
|
|
222
|
-
* `vpc_id` - ID of the VPC configured for the CloudAMQP instance.
|
|
223
|
-
* `vpc_subnet` - Dedicated VPC subnet configured for the CloudAMQP instance.
|
|
224
|
-
* `nodes` - Number of nodes in the cluster of the CloudAMQP instance.
|
|
225
|
-
* `rmq_version` - The version of installed Rabbit MQ.
|
|
226
|
-
* `url` - (Sensitive) The AMQP URL (uses the internal hostname if the instance was created with VPC), used by clients to connect for pub/sub.
|
|
227
|
-
* `apikey` - (Sensitive) The API key to secondary API handing alarms, integration etc.
|
|
228
|
-
* `tags` - Tags the CloudAMQP instance with categories.
|
|
229
|
-
* `host` - The external hostname for the CloudAMQP instance.
|
|
230
|
-
* `host_internal` - The internal hostname for the CloudAMQP instance.
|
|
231
|
-
* `vhost` - The virtual host configured in Rabbit MQ.
|
|
232
|
-
* `dedicated` - Information if the CloudAMQP instance is shared or dedicated.
|
|
233
|
-
* `backend` - Information if the CloudAMQP instance runs either RabbitMQ or LavinMQ.
|
|
234
|
-
|
|
235
214
|
|
|
236
215
|
:param int instance_id: The CloudAMQP instance identifier.
|
|
237
216
|
"""
|
|
@@ -268,27 +247,6 @@ def get_instance_output(instance_id: Optional[pulumi.Input[int]] = None,
|
|
|
268
247
|
"""
|
|
269
248
|
Use this data source to retrieve information about an already created CloudAMQP instance. In order to retrieve the correct information, the CoudAMQP instance identifier is needed.
|
|
270
249
|
|
|
271
|
-
## Attributes reference
|
|
272
|
-
|
|
273
|
-
All attributes reference are computed
|
|
274
|
-
|
|
275
|
-
* `id` - The identifier for this resource.
|
|
276
|
-
* `name` - The name of the CloudAMQP instance.
|
|
277
|
-
* `plan` - The subscription plan for the CloudAMQP instance.
|
|
278
|
-
* `region` - The cloud platform and region that host the CloudAMQP instance, `{platform}::{region}`.
|
|
279
|
-
* `vpc_id` - ID of the VPC configured for the CloudAMQP instance.
|
|
280
|
-
* `vpc_subnet` - Dedicated VPC subnet configured for the CloudAMQP instance.
|
|
281
|
-
* `nodes` - Number of nodes in the cluster of the CloudAMQP instance.
|
|
282
|
-
* `rmq_version` - The version of installed Rabbit MQ.
|
|
283
|
-
* `url` - (Sensitive) The AMQP URL (uses the internal hostname if the instance was created with VPC), used by clients to connect for pub/sub.
|
|
284
|
-
* `apikey` - (Sensitive) The API key to secondary API handing alarms, integration etc.
|
|
285
|
-
* `tags` - Tags the CloudAMQP instance with categories.
|
|
286
|
-
* `host` - The external hostname for the CloudAMQP instance.
|
|
287
|
-
* `host_internal` - The internal hostname for the CloudAMQP instance.
|
|
288
|
-
* `vhost` - The virtual host configured in Rabbit MQ.
|
|
289
|
-
* `dedicated` - Information if the CloudAMQP instance is shared or dedicated.
|
|
290
|
-
* `backend` - Information if the CloudAMQP instance runs either RabbitMQ or LavinMQ.
|
|
291
|
-
|
|
292
250
|
|
|
293
251
|
:param int instance_id: The CloudAMQP instance identifier.
|
|
294
252
|
"""
|
|
@@ -74,8 +74,9 @@ def get_nodes(instance_id: Optional[int] = None,
|
|
|
74
74
|
import pulumi
|
|
75
75
|
import pulumi_cloudamqp as cloudamqp
|
|
76
76
|
|
|
77
|
-
nodes = cloudamqp.get_nodes(instance_id=
|
|
77
|
+
nodes = cloudamqp.get_nodes(instance_id=instance["id"])
|
|
78
78
|
```
|
|
79
|
+
|
|
79
80
|
## Attributes reference
|
|
80
81
|
|
|
81
82
|
All attributes reference are computed
|
|
@@ -129,8 +130,9 @@ def get_nodes_output(instance_id: Optional[pulumi.Input[int]] = None,
|
|
|
129
130
|
import pulumi
|
|
130
131
|
import pulumi_cloudamqp as cloudamqp
|
|
131
132
|
|
|
132
|
-
nodes = cloudamqp.get_nodes(instance_id=
|
|
133
|
+
nodes = cloudamqp.get_nodes(instance_id=instance["id"])
|
|
133
134
|
```
|
|
135
|
+
|
|
134
136
|
## Attributes reference
|
|
135
137
|
|
|
136
138
|
All attributes reference are computed
|
|
@@ -112,9 +112,10 @@ def get_notification(instance_id: Optional[int] = None,
|
|
|
112
112
|
import pulumi
|
|
113
113
|
import pulumi_cloudamqp as cloudamqp
|
|
114
114
|
|
|
115
|
-
default_recipient = cloudamqp.get_notification(instance_id=
|
|
115
|
+
default_recipient = cloudamqp.get_notification(instance_id=instance["id"],
|
|
116
116
|
name="default")
|
|
117
117
|
```
|
|
118
|
+
|
|
118
119
|
## Attributes reference
|
|
119
120
|
|
|
120
121
|
All attributes reference are computed
|
|
@@ -166,9 +167,10 @@ def get_notification_output(instance_id: Optional[pulumi.Input[int]] = None,
|
|
|
166
167
|
import pulumi
|
|
167
168
|
import pulumi_cloudamqp as cloudamqp
|
|
168
169
|
|
|
169
|
-
default_recipient = cloudamqp.get_notification(instance_id=
|
|
170
|
+
default_recipient = cloudamqp.get_notification(instance_id=instance["id"],
|
|
170
171
|
name="default")
|
|
171
172
|
```
|
|
173
|
+
|
|
172
174
|
## Attributes reference
|
|
173
175
|
|
|
174
176
|
All attributes reference are computed
|
|
@@ -74,8 +74,9 @@ def get_plugins(instance_id: Optional[int] = None,
|
|
|
74
74
|
import pulumi
|
|
75
75
|
import pulumi_cloudamqp as cloudamqp
|
|
76
76
|
|
|
77
|
-
plugins = cloudamqp.get_plugins(instance_id=
|
|
77
|
+
plugins = cloudamqp.get_plugins(instance_id=instance["id"])
|
|
78
78
|
```
|
|
79
|
+
|
|
79
80
|
## Attributes reference
|
|
80
81
|
|
|
81
82
|
All attributes reference are computed
|
|
@@ -126,8 +127,9 @@ def get_plugins_output(instance_id: Optional[pulumi.Input[int]] = None,
|
|
|
126
127
|
import pulumi
|
|
127
128
|
import pulumi_cloudamqp as cloudamqp
|
|
128
129
|
|
|
129
|
-
plugins = cloudamqp.get_plugins(instance_id=
|
|
130
|
+
plugins = cloudamqp.get_plugins(instance_id=instance["id"])
|
|
130
131
|
```
|
|
132
|
+
|
|
131
133
|
## Attributes reference
|
|
132
134
|
|
|
133
135
|
All attributes reference are computed
|