pulumi-cloudamqp 3.17.4__py3-none-any.whl → 3.17.6__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 +116 -16
- pulumi_cloudamqp/custom_domain.py +4 -2
- pulumi_cloudamqp/extra_disk_size.py +34 -8
- pulumi_cloudamqp/get_account.py +0 -66
- pulumi_cloudamqp/get_account_vpcs.py +2 -0
- pulumi_cloudamqp/get_alarm.py +4 -2
- pulumi_cloudamqp/get_credentials.py +4 -2
- pulumi_cloudamqp/get_instance.py +0 -42
- pulumi_cloudamqp/get_nodes.py +4 -2
- pulumi_cloudamqp/get_notification.py +4 -2
- pulumi_cloudamqp/get_plugins.py +4 -2
- pulumi_cloudamqp/get_plugins_community.py +4 -2
- pulumi_cloudamqp/get_upgradable_versions.py +4 -2
- pulumi_cloudamqp/get_vpc_gcp_info.py +6 -4
- pulumi_cloudamqp/get_vpc_info.py +6 -4
- pulumi_cloudamqp/instance.py +40 -100
- pulumi_cloudamqp/integration_aws_eventbridge.py +6 -2
- pulumi_cloudamqp/integration_log.py +406 -36
- pulumi_cloudamqp/node_actions.py +38 -36
- pulumi_cloudamqp/notification.py +56 -40
- pulumi_cloudamqp/plugin_community.py +2 -2
- pulumi_cloudamqp/privatelink_aws.py +18 -34
- pulumi_cloudamqp/privatelink_azure.py +18 -34
- pulumi_cloudamqp/provider.py +0 -5
- pulumi_cloudamqp/pulumi-plugin.json +2 -1
- pulumi_cloudamqp/upgrade_rabbitmq.py +16 -10
- pulumi_cloudamqp/vpc.py +12 -6
- pulumi_cloudamqp/vpc_connect.py +32 -54
- pulumi_cloudamqp/vpc_gcp_peering.py +202 -30
- pulumi_cloudamqp/webhook.py +6 -4
- {pulumi_cloudamqp-3.17.4.dist-info → pulumi_cloudamqp-3.17.6.dist-info}/METADATA +1 -1
- pulumi_cloudamqp-3.17.6.dist-info/RECORD +48 -0
- {pulumi_cloudamqp-3.17.4.dist-info → pulumi_cloudamqp-3.17.6.dist-info}/WHEEL +1 -1
- pulumi_cloudamqp-3.17.4.dist-info/RECORD +0 -48
- {pulumi_cloudamqp-3.17.4.dist-info → pulumi_cloudamqp-3.17.6.dist-info}/top_level.txt +0 -0
|
@@ -82,8 +82,9 @@ def get_upgradable_versions(instance_id: Optional[int] = None,
|
|
|
82
82
|
import pulumi
|
|
83
83
|
import pulumi_cloudamqp as cloudamqp
|
|
84
84
|
|
|
85
|
-
versions = cloudamqp.get_upgradable_versions(instance_id=
|
|
85
|
+
versions = cloudamqp.get_upgradable_versions(instance_id=instance["id"])
|
|
86
86
|
```
|
|
87
|
+
|
|
87
88
|
## Attributes reference
|
|
88
89
|
|
|
89
90
|
All attributes reference are computed
|
|
@@ -122,8 +123,9 @@ def get_upgradable_versions_output(instance_id: Optional[pulumi.Input[int]] = No
|
|
|
122
123
|
import pulumi
|
|
123
124
|
import pulumi_cloudamqp as cloudamqp
|
|
124
125
|
|
|
125
|
-
versions = cloudamqp.get_upgradable_versions(instance_id=
|
|
126
|
+
versions = cloudamqp.get_upgradable_versions(instance_id=instance["id"])
|
|
126
127
|
```
|
|
128
|
+
|
|
127
129
|
## Attributes reference
|
|
128
130
|
|
|
129
131
|
All attributes reference are computed
|
|
@@ -128,7 +128,7 @@ def get_vpc_gcp_info(instance_id: Optional[int] = None,
|
|
|
128
128
|
import pulumi
|
|
129
129
|
import pulumi_cloudamqp as cloudamqp
|
|
130
130
|
|
|
131
|
-
vpc_info = cloudamqp.get_vpc_gcp_info(instance_id=
|
|
131
|
+
vpc_info = cloudamqp.get_vpc_gcp_info(instance_id=instance["id"])
|
|
132
132
|
```
|
|
133
133
|
|
|
134
134
|
</details>
|
|
@@ -144,10 +144,11 @@ def get_vpc_gcp_info(instance_id: Optional[int] = None,
|
|
|
144
144
|
import pulumi
|
|
145
145
|
import pulumi_cloudamqp as cloudamqp
|
|
146
146
|
|
|
147
|
-
vpc_info = cloudamqp.get_vpc_gcp_info(vpc_id=
|
|
147
|
+
vpc_info = cloudamqp.get_vpc_gcp_info(vpc_id=vpc["id"])
|
|
148
148
|
```
|
|
149
149
|
|
|
150
150
|
</details>
|
|
151
|
+
|
|
151
152
|
## Attributes reference
|
|
152
153
|
|
|
153
154
|
All attributes reference are computed
|
|
@@ -216,7 +217,7 @@ def get_vpc_gcp_info_output(instance_id: Optional[pulumi.Input[Optional[int]]] =
|
|
|
216
217
|
import pulumi
|
|
217
218
|
import pulumi_cloudamqp as cloudamqp
|
|
218
219
|
|
|
219
|
-
vpc_info = cloudamqp.get_vpc_gcp_info(instance_id=
|
|
220
|
+
vpc_info = cloudamqp.get_vpc_gcp_info(instance_id=instance["id"])
|
|
220
221
|
```
|
|
221
222
|
|
|
222
223
|
</details>
|
|
@@ -232,10 +233,11 @@ def get_vpc_gcp_info_output(instance_id: Optional[pulumi.Input[Optional[int]]] =
|
|
|
232
233
|
import pulumi
|
|
233
234
|
import pulumi_cloudamqp as cloudamqp
|
|
234
235
|
|
|
235
|
-
vpc_info = cloudamqp.get_vpc_gcp_info(vpc_id=
|
|
236
|
+
vpc_info = cloudamqp.get_vpc_gcp_info(vpc_id=vpc["id"])
|
|
236
237
|
```
|
|
237
238
|
|
|
238
239
|
</details>
|
|
240
|
+
|
|
239
241
|
## Attributes reference
|
|
240
242
|
|
|
241
243
|
All attributes reference are computed
|
pulumi_cloudamqp/get_vpc_info.py
CHANGED
|
@@ -119,7 +119,7 @@ def get_vpc_info(instance_id: Optional[int] = None,
|
|
|
119
119
|
import pulumi
|
|
120
120
|
import pulumi_cloudamqp as cloudamqp
|
|
121
121
|
|
|
122
|
-
vpc_info = cloudamqp.get_vpc_info(instance_id=
|
|
122
|
+
vpc_info = cloudamqp.get_vpc_info(instance_id=instance["id"])
|
|
123
123
|
```
|
|
124
124
|
</details>
|
|
125
125
|
|
|
@@ -134,9 +134,10 @@ def get_vpc_info(instance_id: Optional[int] = None,
|
|
|
134
134
|
import pulumi
|
|
135
135
|
import pulumi_cloudamqp as cloudamqp
|
|
136
136
|
|
|
137
|
-
vpc_info = cloudamqp.get_vpc_info(vpc_id=
|
|
137
|
+
vpc_info = cloudamqp.get_vpc_info(vpc_id=vpc["id"])
|
|
138
138
|
```
|
|
139
139
|
</details>
|
|
140
|
+
|
|
140
141
|
## Attributes reference
|
|
141
142
|
|
|
142
143
|
All attributes reference are computed
|
|
@@ -201,7 +202,7 @@ def get_vpc_info_output(instance_id: Optional[pulumi.Input[Optional[int]]] = Non
|
|
|
201
202
|
import pulumi
|
|
202
203
|
import pulumi_cloudamqp as cloudamqp
|
|
203
204
|
|
|
204
|
-
vpc_info = cloudamqp.get_vpc_info(instance_id=
|
|
205
|
+
vpc_info = cloudamqp.get_vpc_info(instance_id=instance["id"])
|
|
205
206
|
```
|
|
206
207
|
</details>
|
|
207
208
|
|
|
@@ -216,9 +217,10 @@ def get_vpc_info_output(instance_id: Optional[pulumi.Input[Optional[int]]] = Non
|
|
|
216
217
|
import pulumi
|
|
217
218
|
import pulumi_cloudamqp as cloudamqp
|
|
218
219
|
|
|
219
|
-
vpc_info = cloudamqp.get_vpc_info(vpc_id=
|
|
220
|
+
vpc_info = cloudamqp.get_vpc_info(vpc_id=vpc["id"])
|
|
220
221
|
```
|
|
221
222
|
</details>
|
|
223
|
+
|
|
222
224
|
## Attributes reference
|
|
223
225
|
|
|
224
226
|
All attributes reference are computed
|
pulumi_cloudamqp/instance.py
CHANGED
|
@@ -601,17 +601,20 @@ class Instance(pulumi.CustomResource):
|
|
|
601
601
|
import pulumi_cloudamqp as cloudamqp
|
|
602
602
|
|
|
603
603
|
# Minimum free lemur instance running RabbitMQ
|
|
604
|
-
lemur_instance = cloudamqp.Instance("
|
|
604
|
+
lemur_instance = cloudamqp.Instance("lemur_instance",
|
|
605
|
+
name="cloudamqp-free-instance",
|
|
605
606
|
plan="lemur",
|
|
606
607
|
region="amazon-web-services::us-west-1",
|
|
607
608
|
tags=["rabbitmq"])
|
|
608
609
|
# Minimum free lemming instance running LavinMQ
|
|
609
|
-
lemming_instance = cloudamqp.Instance("
|
|
610
|
+
lemming_instance = cloudamqp.Instance("lemming_instance",
|
|
611
|
+
name="cloudamqp-free-instance",
|
|
610
612
|
plan="lemming",
|
|
611
613
|
region="amazon-web-services::us-west-1",
|
|
612
614
|
tags=["lavinmq"])
|
|
613
615
|
# New dedicated bunny instance running RabbitMQ
|
|
614
616
|
instance = cloudamqp.Instance("instance",
|
|
617
|
+
name="terraform-cloudamqp-instance",
|
|
615
618
|
plan="bunny-1",
|
|
616
619
|
region="amazon-web-services::us-west-1",
|
|
617
620
|
tags=["terraform"])
|
|
@@ -630,6 +633,7 @@ class Instance(pulumi.CustomResource):
|
|
|
630
633
|
import pulumi_cloudamqp as cloudamqp
|
|
631
634
|
|
|
632
635
|
instance = cloudamqp.Instance("instance",
|
|
636
|
+
name="terraform-cloudamqp-instance",
|
|
633
637
|
plan="bunny-1",
|
|
634
638
|
region="amazon-web-services::us-west-1",
|
|
635
639
|
tags=["terraform"],
|
|
@@ -649,7 +653,8 @@ class Instance(pulumi.CustomResource):
|
|
|
649
653
|
import pulumi_cloudamqp as cloudamqp
|
|
650
654
|
|
|
651
655
|
# Dedicated instance that also creates VPC
|
|
652
|
-
instance01 = cloudamqp.Instance("
|
|
656
|
+
instance01 = cloudamqp.Instance("instance_01",
|
|
657
|
+
name="terraform-cloudamqp-instance-01",
|
|
653
658
|
plan="bunny-1",
|
|
654
659
|
region="amazon-web-services::us-west-1",
|
|
655
660
|
tags=["terraform"],
|
|
@@ -666,11 +671,13 @@ class Instance(pulumi.CustomResource):
|
|
|
666
671
|
|
|
667
672
|
# Imported managed VPC
|
|
668
673
|
vpc = cloudamqp.Vpc("vpc",
|
|
674
|
+
name="<vpc-name>",
|
|
669
675
|
region="amazon-web-services::us-east-1",
|
|
670
676
|
subnet="10.56.72.0/24",
|
|
671
677
|
tags=[])
|
|
672
678
|
# Add vpc_id and keep_associated_vpc attributes
|
|
673
|
-
instance01 = cloudamqp.Instance("
|
|
679
|
+
instance01 = cloudamqp.Instance("instance_01",
|
|
680
|
+
name="terraform-cloudamqp-instance-01",
|
|
674
681
|
plan="bunny-1",
|
|
675
682
|
region="amazon-web-services::us-west-1",
|
|
676
683
|
tags=["terraform"],
|
|
@@ -692,18 +699,21 @@ class Instance(pulumi.CustomResource):
|
|
|
692
699
|
|
|
693
700
|
# Managed VPC
|
|
694
701
|
vpc = cloudamqp.Vpc("vpc",
|
|
702
|
+
name="<vpc-name>",
|
|
695
703
|
region="amazon-web-services::us-east-1",
|
|
696
704
|
subnet="10.56.72.0/24",
|
|
697
705
|
tags=[])
|
|
698
706
|
# First instance added to managed VPC
|
|
699
|
-
instance01 = cloudamqp.Instance("
|
|
707
|
+
instance01 = cloudamqp.Instance("instance_01",
|
|
708
|
+
name="terraform-cloudamqp-instance-01",
|
|
700
709
|
plan="bunny-1",
|
|
701
710
|
region="amazon-web-services::us-west-1",
|
|
702
711
|
tags=["terraform"],
|
|
703
712
|
vpc_id=vpc.id,
|
|
704
713
|
keep_associated_vpc=True)
|
|
705
714
|
# Second instance added to managed VPC
|
|
706
|
-
instance02 = cloudamqp.Instance("
|
|
715
|
+
instance02 = cloudamqp.Instance("instance_02",
|
|
716
|
+
name="terraform-cloudamqp-instance-02",
|
|
707
717
|
plan="bunny-1",
|
|
708
718
|
region="amazon-web-services::us-west-1",
|
|
709
719
|
tags=["terraform"],
|
|
@@ -713,47 +723,6 @@ class Instance(pulumi.CustomResource):
|
|
|
713
723
|
|
|
714
724
|
Set attribute `keep_associated_vpc` to true, will keep managed VPC when deleting the instances.
|
|
715
725
|
</details>
|
|
716
|
-
## Upgrade and downgrade
|
|
717
|
-
|
|
718
|
-
It's possible to upgrade or downgrade your subscription plan, this will either increase or decrease the underlying resource used for by the CloudAMQP instance. To do this, change the argument `plan` in the configuration and apply the changes. See available plans.
|
|
719
|
-
|
|
720
|
-
<details>
|
|
721
|
-
<summary>
|
|
722
|
-
<b>
|
|
723
|
-
<i>Upgrade the subscription plan</i>
|
|
724
|
-
</b>
|
|
725
|
-
</summary>
|
|
726
|
-
|
|
727
|
-
```python
|
|
728
|
-
import pulumi
|
|
729
|
-
import pulumi_cloudamqp as cloudamqp
|
|
730
|
-
|
|
731
|
-
# Upgraded CloudAMQP instance configuration
|
|
732
|
-
instance = cloudamqp.Instance("instance",
|
|
733
|
-
plan="bunny-1",
|
|
734
|
-
region="amazon-web-services::us-west-1",
|
|
735
|
-
tags=["terraform"])
|
|
736
|
-
```
|
|
737
|
-
</details>
|
|
738
|
-
|
|
739
|
-
<details>
|
|
740
|
-
<summary>
|
|
741
|
-
<b>
|
|
742
|
-
<i>Downgrade number of nodes from 3 to 1</i>
|
|
743
|
-
</b>
|
|
744
|
-
</summary>
|
|
745
|
-
|
|
746
|
-
```python
|
|
747
|
-
import pulumi
|
|
748
|
-
import pulumi_cloudamqp as cloudamqp
|
|
749
|
-
|
|
750
|
-
# Downgraded CloudAMQP instance configuration
|
|
751
|
-
instance = cloudamqp.Instance("instance",
|
|
752
|
-
plan="bunny-1",
|
|
753
|
-
region="amazon-web-services::us-west-1",
|
|
754
|
-
tags=["terraform"])
|
|
755
|
-
```
|
|
756
|
-
</details>
|
|
757
726
|
|
|
758
727
|
## Copy settings to a new dedicated instance
|
|
759
728
|
|
|
@@ -774,13 +743,14 @@ class Instance(pulumi.CustomResource):
|
|
|
774
743
|
import pulumi
|
|
775
744
|
import pulumi_cloudamqp as cloudamqp
|
|
776
745
|
|
|
777
|
-
instance02 = cloudamqp.Instance("
|
|
746
|
+
instance02 = cloudamqp.Instance("instance_02",
|
|
747
|
+
name="terraform-cloudamqp-instance-02",
|
|
778
748
|
plan="squirrel-1",
|
|
779
749
|
region="amazon-web-services::us-west-1",
|
|
780
750
|
rmq_version="3.12.2",
|
|
781
751
|
tags=["terraform"],
|
|
782
752
|
copy_settings=[cloudamqp.InstanceCopySettingArgs(
|
|
783
|
-
subscription_id=
|
|
753
|
+
subscription_id=instance_id,
|
|
784
754
|
settings=[
|
|
785
755
|
"alarms",
|
|
786
756
|
"config",
|
|
@@ -802,7 +772,7 @@ class Instance(pulumi.CustomResource):
|
|
|
802
772
|
$ pulumi import cloudamqp:index/instance:Instance instance <id>`
|
|
803
773
|
```
|
|
804
774
|
|
|
805
|
-
|
|
775
|
+
To retrieve the identifier for an instance, either use [CloudAMQP customer API](https://docs.cloudamqp.com/#list-instances) or use the data source [`cloudamqp_account`](./data-sources/account.md) to list all available instances for an account.
|
|
806
776
|
|
|
807
777
|
:param str resource_name: The name of the resource.
|
|
808
778
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -859,17 +829,20 @@ class Instance(pulumi.CustomResource):
|
|
|
859
829
|
import pulumi_cloudamqp as cloudamqp
|
|
860
830
|
|
|
861
831
|
# Minimum free lemur instance running RabbitMQ
|
|
862
|
-
lemur_instance = cloudamqp.Instance("
|
|
832
|
+
lemur_instance = cloudamqp.Instance("lemur_instance",
|
|
833
|
+
name="cloudamqp-free-instance",
|
|
863
834
|
plan="lemur",
|
|
864
835
|
region="amazon-web-services::us-west-1",
|
|
865
836
|
tags=["rabbitmq"])
|
|
866
837
|
# Minimum free lemming instance running LavinMQ
|
|
867
|
-
lemming_instance = cloudamqp.Instance("
|
|
838
|
+
lemming_instance = cloudamqp.Instance("lemming_instance",
|
|
839
|
+
name="cloudamqp-free-instance",
|
|
868
840
|
plan="lemming",
|
|
869
841
|
region="amazon-web-services::us-west-1",
|
|
870
842
|
tags=["lavinmq"])
|
|
871
843
|
# New dedicated bunny instance running RabbitMQ
|
|
872
844
|
instance = cloudamqp.Instance("instance",
|
|
845
|
+
name="terraform-cloudamqp-instance",
|
|
873
846
|
plan="bunny-1",
|
|
874
847
|
region="amazon-web-services::us-west-1",
|
|
875
848
|
tags=["terraform"])
|
|
@@ -888,6 +861,7 @@ class Instance(pulumi.CustomResource):
|
|
|
888
861
|
import pulumi_cloudamqp as cloudamqp
|
|
889
862
|
|
|
890
863
|
instance = cloudamqp.Instance("instance",
|
|
864
|
+
name="terraform-cloudamqp-instance",
|
|
891
865
|
plan="bunny-1",
|
|
892
866
|
region="amazon-web-services::us-west-1",
|
|
893
867
|
tags=["terraform"],
|
|
@@ -907,7 +881,8 @@ class Instance(pulumi.CustomResource):
|
|
|
907
881
|
import pulumi_cloudamqp as cloudamqp
|
|
908
882
|
|
|
909
883
|
# Dedicated instance that also creates VPC
|
|
910
|
-
instance01 = cloudamqp.Instance("
|
|
884
|
+
instance01 = cloudamqp.Instance("instance_01",
|
|
885
|
+
name="terraform-cloudamqp-instance-01",
|
|
911
886
|
plan="bunny-1",
|
|
912
887
|
region="amazon-web-services::us-west-1",
|
|
913
888
|
tags=["terraform"],
|
|
@@ -924,11 +899,13 @@ class Instance(pulumi.CustomResource):
|
|
|
924
899
|
|
|
925
900
|
# Imported managed VPC
|
|
926
901
|
vpc = cloudamqp.Vpc("vpc",
|
|
902
|
+
name="<vpc-name>",
|
|
927
903
|
region="amazon-web-services::us-east-1",
|
|
928
904
|
subnet="10.56.72.0/24",
|
|
929
905
|
tags=[])
|
|
930
906
|
# Add vpc_id and keep_associated_vpc attributes
|
|
931
|
-
instance01 = cloudamqp.Instance("
|
|
907
|
+
instance01 = cloudamqp.Instance("instance_01",
|
|
908
|
+
name="terraform-cloudamqp-instance-01",
|
|
932
909
|
plan="bunny-1",
|
|
933
910
|
region="amazon-web-services::us-west-1",
|
|
934
911
|
tags=["terraform"],
|
|
@@ -950,18 +927,21 @@ class Instance(pulumi.CustomResource):
|
|
|
950
927
|
|
|
951
928
|
# Managed VPC
|
|
952
929
|
vpc = cloudamqp.Vpc("vpc",
|
|
930
|
+
name="<vpc-name>",
|
|
953
931
|
region="amazon-web-services::us-east-1",
|
|
954
932
|
subnet="10.56.72.0/24",
|
|
955
933
|
tags=[])
|
|
956
934
|
# First instance added to managed VPC
|
|
957
|
-
instance01 = cloudamqp.Instance("
|
|
935
|
+
instance01 = cloudamqp.Instance("instance_01",
|
|
936
|
+
name="terraform-cloudamqp-instance-01",
|
|
958
937
|
plan="bunny-1",
|
|
959
938
|
region="amazon-web-services::us-west-1",
|
|
960
939
|
tags=["terraform"],
|
|
961
940
|
vpc_id=vpc.id,
|
|
962
941
|
keep_associated_vpc=True)
|
|
963
942
|
# Second instance added to managed VPC
|
|
964
|
-
instance02 = cloudamqp.Instance("
|
|
943
|
+
instance02 = cloudamqp.Instance("instance_02",
|
|
944
|
+
name="terraform-cloudamqp-instance-02",
|
|
965
945
|
plan="bunny-1",
|
|
966
946
|
region="amazon-web-services::us-west-1",
|
|
967
947
|
tags=["terraform"],
|
|
@@ -971,47 +951,6 @@ class Instance(pulumi.CustomResource):
|
|
|
971
951
|
|
|
972
952
|
Set attribute `keep_associated_vpc` to true, will keep managed VPC when deleting the instances.
|
|
973
953
|
</details>
|
|
974
|
-
## Upgrade and downgrade
|
|
975
|
-
|
|
976
|
-
It's possible to upgrade or downgrade your subscription plan, this will either increase or decrease the underlying resource used for by the CloudAMQP instance. To do this, change the argument `plan` in the configuration and apply the changes. See available plans.
|
|
977
|
-
|
|
978
|
-
<details>
|
|
979
|
-
<summary>
|
|
980
|
-
<b>
|
|
981
|
-
<i>Upgrade the subscription plan</i>
|
|
982
|
-
</b>
|
|
983
|
-
</summary>
|
|
984
|
-
|
|
985
|
-
```python
|
|
986
|
-
import pulumi
|
|
987
|
-
import pulumi_cloudamqp as cloudamqp
|
|
988
|
-
|
|
989
|
-
# Upgraded CloudAMQP instance configuration
|
|
990
|
-
instance = cloudamqp.Instance("instance",
|
|
991
|
-
plan="bunny-1",
|
|
992
|
-
region="amazon-web-services::us-west-1",
|
|
993
|
-
tags=["terraform"])
|
|
994
|
-
```
|
|
995
|
-
</details>
|
|
996
|
-
|
|
997
|
-
<details>
|
|
998
|
-
<summary>
|
|
999
|
-
<b>
|
|
1000
|
-
<i>Downgrade number of nodes from 3 to 1</i>
|
|
1001
|
-
</b>
|
|
1002
|
-
</summary>
|
|
1003
|
-
|
|
1004
|
-
```python
|
|
1005
|
-
import pulumi
|
|
1006
|
-
import pulumi_cloudamqp as cloudamqp
|
|
1007
|
-
|
|
1008
|
-
# Downgraded CloudAMQP instance configuration
|
|
1009
|
-
instance = cloudamqp.Instance("instance",
|
|
1010
|
-
plan="bunny-1",
|
|
1011
|
-
region="amazon-web-services::us-west-1",
|
|
1012
|
-
tags=["terraform"])
|
|
1013
|
-
```
|
|
1014
|
-
</details>
|
|
1015
954
|
|
|
1016
955
|
## Copy settings to a new dedicated instance
|
|
1017
956
|
|
|
@@ -1032,13 +971,14 @@ class Instance(pulumi.CustomResource):
|
|
|
1032
971
|
import pulumi
|
|
1033
972
|
import pulumi_cloudamqp as cloudamqp
|
|
1034
973
|
|
|
1035
|
-
instance02 = cloudamqp.Instance("
|
|
974
|
+
instance02 = cloudamqp.Instance("instance_02",
|
|
975
|
+
name="terraform-cloudamqp-instance-02",
|
|
1036
976
|
plan="squirrel-1",
|
|
1037
977
|
region="amazon-web-services::us-west-1",
|
|
1038
978
|
rmq_version="3.12.2",
|
|
1039
979
|
tags=["terraform"],
|
|
1040
980
|
copy_settings=[cloudamqp.InstanceCopySettingArgs(
|
|
1041
|
-
subscription_id=
|
|
981
|
+
subscription_id=instance_id,
|
|
1042
982
|
settings=[
|
|
1043
983
|
"alarms",
|
|
1044
984
|
"config",
|
|
@@ -1060,7 +1000,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1060
1000
|
$ pulumi import cloudamqp:index/instance:Instance instance <id>`
|
|
1061
1001
|
```
|
|
1062
1002
|
|
|
1063
|
-
|
|
1003
|
+
To retrieve the identifier for an instance, either use [CloudAMQP customer API](https://docs.cloudamqp.com/#list-instances) or use the data source [`cloudamqp_account`](./data-sources/account.md) to list all available instances for an account.
|
|
1064
1004
|
|
|
1065
1005
|
:param str resource_name: The name of the resource.
|
|
1066
1006
|
:param InstanceArgs args: The arguments to use to populate this resource's properties.
|
|
@@ -257,11 +257,12 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
|
|
|
257
257
|
import pulumi_cloudamqp as cloudamqp
|
|
258
258
|
|
|
259
259
|
instance = cloudamqp.Instance("instance",
|
|
260
|
+
name="Test instance",
|
|
260
261
|
plan="squirrel-1",
|
|
261
262
|
region="amazon-web-services::us-west-1",
|
|
262
263
|
rmq_version="3.11.5",
|
|
263
264
|
tags=["aws"])
|
|
264
|
-
aws_eventbridge = cloudamqp.IntegrationAwsEventbridge("
|
|
265
|
+
aws_eventbridge = cloudamqp.IntegrationAwsEventbridge("aws_eventbridge",
|
|
265
266
|
instance_id=instance.id,
|
|
266
267
|
vhost=instance.vhost,
|
|
267
268
|
queue="<QUEUE-NAME>",
|
|
@@ -269,6 +270,7 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
|
|
|
269
270
|
aws_region="us-west-1",
|
|
270
271
|
with_headers=True)
|
|
271
272
|
```
|
|
273
|
+
|
|
272
274
|
## Argument references
|
|
273
275
|
|
|
274
276
|
The following arguments are supported:
|
|
@@ -322,11 +324,12 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
|
|
|
322
324
|
import pulumi_cloudamqp as cloudamqp
|
|
323
325
|
|
|
324
326
|
instance = cloudamqp.Instance("instance",
|
|
327
|
+
name="Test instance",
|
|
325
328
|
plan="squirrel-1",
|
|
326
329
|
region="amazon-web-services::us-west-1",
|
|
327
330
|
rmq_version="3.11.5",
|
|
328
331
|
tags=["aws"])
|
|
329
|
-
aws_eventbridge = cloudamqp.IntegrationAwsEventbridge("
|
|
332
|
+
aws_eventbridge = cloudamqp.IntegrationAwsEventbridge("aws_eventbridge",
|
|
330
333
|
instance_id=instance.id,
|
|
331
334
|
vhost=instance.vhost,
|
|
332
335
|
queue="<QUEUE-NAME>",
|
|
@@ -334,6 +337,7 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
|
|
|
334
337
|
aws_region="us-west-1",
|
|
335
338
|
with_headers=True)
|
|
336
339
|
```
|
|
340
|
+
|
|
337
341
|
## Argument references
|
|
338
342
|
|
|
339
343
|
The following arguments are supported:
|