pulumi-cloudamqp 3.18.0a1713331232__py3-none-any.whl → 3.18.0a1713897271__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/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.18.0a1713331232.dist-info → pulumi_cloudamqp-3.18.0a1713897271.dist-info}/METADATA +1 -1
- pulumi_cloudamqp-3.18.0a1713897271.dist-info/RECORD +48 -0
- pulumi_cloudamqp-3.18.0a1713331232.dist-info/RECORD +0 -48
- {pulumi_cloudamqp-3.18.0a1713331232.dist-info → pulumi_cloudamqp-3.18.0a1713897271.dist-info}/WHEEL +0 -0
- {pulumi_cloudamqp-3.18.0a1713331232.dist-info → pulumi_cloudamqp-3.18.0a1713897271.dist-info}/top_level.txt +0 -0
|
@@ -917,21 +917,20 @@ class IntegrationLog(pulumi.CustomResource):
|
|
|
917
917
|
</b>
|
|
918
918
|
</summary>
|
|
919
919
|
|
|
920
|
-
<!--Start PulumiCodeChooser -->
|
|
921
920
|
```python
|
|
922
921
|
import pulumi
|
|
923
922
|
import pulumi_cloudamqp as cloudamqp
|
|
924
923
|
|
|
925
|
-
azure_monitor = cloudamqp.IntegrationLog("
|
|
926
|
-
instance_id=
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
924
|
+
azure_monitor = cloudamqp.IntegrationLog("azure_monitor",
|
|
925
|
+
instance_id=instance["id"],
|
|
926
|
+
name="azure_monitor",
|
|
927
|
+
tenant_id=azm_tentant_id,
|
|
928
|
+
application_id=azm_application_id,
|
|
929
|
+
application_secret=azm_application_secret,
|
|
930
|
+
dce_uri=azm_dce_uri,
|
|
931
|
+
table=azm_table,
|
|
932
|
+
dcr_id=azm_dcr_id)
|
|
933
933
|
```
|
|
934
|
-
<!--End PulumiCodeChooser -->
|
|
935
934
|
|
|
936
935
|
</details>
|
|
937
936
|
|
|
@@ -942,18 +941,17 @@ class IntegrationLog(pulumi.CustomResource):
|
|
|
942
941
|
</b>
|
|
943
942
|
</summary>
|
|
944
943
|
|
|
945
|
-
<!--Start PulumiCodeChooser -->
|
|
946
944
|
```python
|
|
947
945
|
import pulumi
|
|
948
946
|
import pulumi_cloudamqp as cloudamqp
|
|
949
947
|
|
|
950
948
|
cloudwatch = cloudamqp.IntegrationLog("cloudwatch",
|
|
951
|
-
instance_id=
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
949
|
+
instance_id=instance["id"],
|
|
950
|
+
name="cloudwatchlog",
|
|
951
|
+
access_key_id=aws_access_key_id,
|
|
952
|
+
secret_access_key=aws_secret_access_key,
|
|
953
|
+
region=aws_region)
|
|
955
954
|
```
|
|
956
|
-
<!--End PulumiCodeChooser -->
|
|
957
955
|
|
|
958
956
|
</details>
|
|
959
957
|
|
|
@@ -964,19 +962,18 @@ class IntegrationLog(pulumi.CustomResource):
|
|
|
964
962
|
</b>
|
|
965
963
|
</summary>
|
|
966
964
|
|
|
967
|
-
<!--Start PulumiCodeChooser -->
|
|
968
965
|
```python
|
|
969
966
|
import pulumi
|
|
970
967
|
import pulumi_cloudamqp as cloudamqp
|
|
971
968
|
|
|
972
969
|
coralogix = cloudamqp.IntegrationLog("coralogix",
|
|
973
|
-
instance_id=
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
970
|
+
instance_id=instance["id"],
|
|
971
|
+
name="coralogix",
|
|
972
|
+
private_key=coralogix_send_data_key,
|
|
973
|
+
endpoint=coralogix_endpoint,
|
|
974
|
+
application=coralogix_application,
|
|
975
|
+
subsystem=instance["host"])
|
|
978
976
|
```
|
|
979
|
-
<!--End PulumiCodeChooser -->
|
|
980
977
|
|
|
981
978
|
</details>
|
|
982
979
|
|
|
@@ -987,18 +984,17 @@ class IntegrationLog(pulumi.CustomResource):
|
|
|
987
984
|
</b>
|
|
988
985
|
</summary>
|
|
989
986
|
|
|
990
|
-
<!--Start PulumiCodeChooser -->
|
|
991
987
|
```python
|
|
992
988
|
import pulumi
|
|
993
989
|
import pulumi_cloudamqp as cloudamqp
|
|
994
990
|
|
|
995
991
|
datadog = cloudamqp.IntegrationLog("datadog",
|
|
996
|
-
instance_id=
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
992
|
+
instance_id=instance["id"],
|
|
993
|
+
name="datadog",
|
|
994
|
+
region=datadog_region,
|
|
995
|
+
api_key=datadog_api_key,
|
|
996
|
+
tags=datadog_tags)
|
|
1000
997
|
```
|
|
1001
|
-
<!--End PulumiCodeChooser -->
|
|
1002
998
|
|
|
1003
999
|
</details>
|
|
1004
1000
|
|
|
@@ -1009,16 +1005,15 @@ class IntegrationLog(pulumi.CustomResource):
|
|
|
1009
1005
|
</b>
|
|
1010
1006
|
</summary>
|
|
1011
1007
|
|
|
1012
|
-
<!--Start PulumiCodeChooser -->
|
|
1013
1008
|
```python
|
|
1014
1009
|
import pulumi
|
|
1015
1010
|
import pulumi_cloudamqp as cloudamqp
|
|
1016
1011
|
|
|
1017
1012
|
logentries = cloudamqp.IntegrationLog("logentries",
|
|
1018
|
-
instance_id=
|
|
1019
|
-
|
|
1013
|
+
instance_id=instance["id"],
|
|
1014
|
+
name="logentries",
|
|
1015
|
+
token=logentries_token)
|
|
1020
1016
|
```
|
|
1021
|
-
<!--End PulumiCodeChooser -->
|
|
1022
1017
|
|
|
1023
1018
|
</details>
|
|
1024
1019
|
|
|
@@ -1029,16 +1024,15 @@ class IntegrationLog(pulumi.CustomResource):
|
|
|
1029
1024
|
</b>
|
|
1030
1025
|
</summary>
|
|
1031
1026
|
|
|
1032
|
-
<!--Start PulumiCodeChooser -->
|
|
1033
1027
|
```python
|
|
1034
1028
|
import pulumi
|
|
1035
1029
|
import pulumi_cloudamqp as cloudamqp
|
|
1036
1030
|
|
|
1037
1031
|
loggly = cloudamqp.IntegrationLog("loggly",
|
|
1038
|
-
instance_id=
|
|
1039
|
-
|
|
1032
|
+
instance_id=instance["id"],
|
|
1033
|
+
name="loggly",
|
|
1034
|
+
token=loggly_token)
|
|
1040
1035
|
```
|
|
1041
|
-
<!--End PulumiCodeChooser -->
|
|
1042
1036
|
</details>
|
|
1043
1037
|
|
|
1044
1038
|
<details>
|
|
@@ -1048,16 +1042,15 @@ class IntegrationLog(pulumi.CustomResource):
|
|
|
1048
1042
|
</b>
|
|
1049
1043
|
</summary>
|
|
1050
1044
|
|
|
1051
|
-
<!--Start PulumiCodeChooser -->
|
|
1052
1045
|
```python
|
|
1053
1046
|
import pulumi
|
|
1054
1047
|
import pulumi_cloudamqp as cloudamqp
|
|
1055
1048
|
|
|
1056
1049
|
papertrail = cloudamqp.IntegrationLog("papertrail",
|
|
1057
|
-
instance_id=
|
|
1058
|
-
|
|
1050
|
+
instance_id=instance["id"],
|
|
1051
|
+
name="papertrail",
|
|
1052
|
+
url=papertrail_url)
|
|
1059
1053
|
```
|
|
1060
|
-
<!--End PulumiCodeChooser -->
|
|
1061
1054
|
|
|
1062
1055
|
</details>
|
|
1063
1056
|
|
|
@@ -1068,17 +1061,16 @@ class IntegrationLog(pulumi.CustomResource):
|
|
|
1068
1061
|
</b>
|
|
1069
1062
|
</summary>
|
|
1070
1063
|
|
|
1071
|
-
<!--Start PulumiCodeChooser -->
|
|
1072
1064
|
```python
|
|
1073
1065
|
import pulumi
|
|
1074
1066
|
import pulumi_cloudamqp as cloudamqp
|
|
1075
1067
|
|
|
1076
1068
|
scalyr = cloudamqp.IntegrationLog("scalyr",
|
|
1077
|
-
instance_id=
|
|
1078
|
-
|
|
1079
|
-
|
|
1069
|
+
instance_id=instance["id"],
|
|
1070
|
+
name="scalyr",
|
|
1071
|
+
token=scalyr_token,
|
|
1072
|
+
host=scalyr_host)
|
|
1080
1073
|
```
|
|
1081
|
-
<!--End PulumiCodeChooser -->
|
|
1082
1074
|
|
|
1083
1075
|
<details>
|
|
1084
1076
|
<summary>
|
|
@@ -1087,18 +1079,17 @@ class IntegrationLog(pulumi.CustomResource):
|
|
|
1087
1079
|
</b>
|
|
1088
1080
|
</summary>
|
|
1089
1081
|
|
|
1090
|
-
<!--Start PulumiCodeChooser -->
|
|
1091
1082
|
```python
|
|
1092
1083
|
import pulumi
|
|
1093
1084
|
import pulumi_cloudamqp as cloudamqp
|
|
1094
1085
|
|
|
1095
1086
|
splunk = cloudamqp.IntegrationLog("splunk",
|
|
1096
|
-
instance_id=
|
|
1097
|
-
|
|
1098
|
-
|
|
1087
|
+
instance_id=instance["id"],
|
|
1088
|
+
name="splunk",
|
|
1089
|
+
token=splunk_token,
|
|
1090
|
+
host_port=splunk_host_port,
|
|
1099
1091
|
source_type="generic_single_line")
|
|
1100
1092
|
```
|
|
1101
|
-
<!--End PulumiCodeChooser -->
|
|
1102
1093
|
|
|
1103
1094
|
</details>
|
|
1104
1095
|
|
|
@@ -1113,18 +1104,17 @@ class IntegrationLog(pulumi.CustomResource):
|
|
|
1113
1104
|
|
|
1114
1105
|
Use variable file populated with project_id, private_key and client_email
|
|
1115
1106
|
|
|
1116
|
-
<!--Start PulumiCodeChooser -->
|
|
1117
1107
|
```python
|
|
1118
1108
|
import pulumi
|
|
1119
1109
|
import pulumi_cloudamqp as cloudamqp
|
|
1120
1110
|
|
|
1121
1111
|
stackdriver = cloudamqp.IntegrationLog("stackdriver",
|
|
1122
|
-
instance_id=
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1112
|
+
instance_id=instance["id"],
|
|
1113
|
+
name="stackdriver",
|
|
1114
|
+
project_id=stackdriver_project_id,
|
|
1115
|
+
private_key=stackdriver_private_key,
|
|
1116
|
+
client_email=stackdriver_client_email)
|
|
1126
1117
|
```
|
|
1127
|
-
<!--End PulumiCodeChooser -->
|
|
1128
1118
|
|
|
1129
1119
|
or by using google_service_account_key resource from Google provider
|
|
1130
1120
|
|
|
@@ -1189,21 +1179,20 @@ class IntegrationLog(pulumi.CustomResource):
|
|
|
1189
1179
|
</b>
|
|
1190
1180
|
</summary>
|
|
1191
1181
|
|
|
1192
|
-
<!--Start PulumiCodeChooser -->
|
|
1193
1182
|
```python
|
|
1194
1183
|
import pulumi
|
|
1195
1184
|
import pulumi_cloudamqp as cloudamqp
|
|
1196
1185
|
|
|
1197
|
-
azure_monitor = cloudamqp.IntegrationLog("
|
|
1198
|
-
instance_id=
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1186
|
+
azure_monitor = cloudamqp.IntegrationLog("azure_monitor",
|
|
1187
|
+
instance_id=instance["id"],
|
|
1188
|
+
name="azure_monitor",
|
|
1189
|
+
tenant_id=azm_tentant_id,
|
|
1190
|
+
application_id=azm_application_id,
|
|
1191
|
+
application_secret=azm_application_secret,
|
|
1192
|
+
dce_uri=azm_dce_uri,
|
|
1193
|
+
table=azm_table,
|
|
1194
|
+
dcr_id=azm_dcr_id)
|
|
1205
1195
|
```
|
|
1206
|
-
<!--End PulumiCodeChooser -->
|
|
1207
1196
|
|
|
1208
1197
|
</details>
|
|
1209
1198
|
|
|
@@ -1214,18 +1203,17 @@ class IntegrationLog(pulumi.CustomResource):
|
|
|
1214
1203
|
</b>
|
|
1215
1204
|
</summary>
|
|
1216
1205
|
|
|
1217
|
-
<!--Start PulumiCodeChooser -->
|
|
1218
1206
|
```python
|
|
1219
1207
|
import pulumi
|
|
1220
1208
|
import pulumi_cloudamqp as cloudamqp
|
|
1221
1209
|
|
|
1222
1210
|
cloudwatch = cloudamqp.IntegrationLog("cloudwatch",
|
|
1223
|
-
instance_id=
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1211
|
+
instance_id=instance["id"],
|
|
1212
|
+
name="cloudwatchlog",
|
|
1213
|
+
access_key_id=aws_access_key_id,
|
|
1214
|
+
secret_access_key=aws_secret_access_key,
|
|
1215
|
+
region=aws_region)
|
|
1227
1216
|
```
|
|
1228
|
-
<!--End PulumiCodeChooser -->
|
|
1229
1217
|
|
|
1230
1218
|
</details>
|
|
1231
1219
|
|
|
@@ -1236,19 +1224,18 @@ class IntegrationLog(pulumi.CustomResource):
|
|
|
1236
1224
|
</b>
|
|
1237
1225
|
</summary>
|
|
1238
1226
|
|
|
1239
|
-
<!--Start PulumiCodeChooser -->
|
|
1240
1227
|
```python
|
|
1241
1228
|
import pulumi
|
|
1242
1229
|
import pulumi_cloudamqp as cloudamqp
|
|
1243
1230
|
|
|
1244
1231
|
coralogix = cloudamqp.IntegrationLog("coralogix",
|
|
1245
|
-
instance_id=
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1232
|
+
instance_id=instance["id"],
|
|
1233
|
+
name="coralogix",
|
|
1234
|
+
private_key=coralogix_send_data_key,
|
|
1235
|
+
endpoint=coralogix_endpoint,
|
|
1236
|
+
application=coralogix_application,
|
|
1237
|
+
subsystem=instance["host"])
|
|
1250
1238
|
```
|
|
1251
|
-
<!--End PulumiCodeChooser -->
|
|
1252
1239
|
|
|
1253
1240
|
</details>
|
|
1254
1241
|
|
|
@@ -1259,18 +1246,17 @@ class IntegrationLog(pulumi.CustomResource):
|
|
|
1259
1246
|
</b>
|
|
1260
1247
|
</summary>
|
|
1261
1248
|
|
|
1262
|
-
<!--Start PulumiCodeChooser -->
|
|
1263
1249
|
```python
|
|
1264
1250
|
import pulumi
|
|
1265
1251
|
import pulumi_cloudamqp as cloudamqp
|
|
1266
1252
|
|
|
1267
1253
|
datadog = cloudamqp.IntegrationLog("datadog",
|
|
1268
|
-
instance_id=
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1254
|
+
instance_id=instance["id"],
|
|
1255
|
+
name="datadog",
|
|
1256
|
+
region=datadog_region,
|
|
1257
|
+
api_key=datadog_api_key,
|
|
1258
|
+
tags=datadog_tags)
|
|
1272
1259
|
```
|
|
1273
|
-
<!--End PulumiCodeChooser -->
|
|
1274
1260
|
|
|
1275
1261
|
</details>
|
|
1276
1262
|
|
|
@@ -1281,16 +1267,15 @@ class IntegrationLog(pulumi.CustomResource):
|
|
|
1281
1267
|
</b>
|
|
1282
1268
|
</summary>
|
|
1283
1269
|
|
|
1284
|
-
<!--Start PulumiCodeChooser -->
|
|
1285
1270
|
```python
|
|
1286
1271
|
import pulumi
|
|
1287
1272
|
import pulumi_cloudamqp as cloudamqp
|
|
1288
1273
|
|
|
1289
1274
|
logentries = cloudamqp.IntegrationLog("logentries",
|
|
1290
|
-
instance_id=
|
|
1291
|
-
|
|
1275
|
+
instance_id=instance["id"],
|
|
1276
|
+
name="logentries",
|
|
1277
|
+
token=logentries_token)
|
|
1292
1278
|
```
|
|
1293
|
-
<!--End PulumiCodeChooser -->
|
|
1294
1279
|
|
|
1295
1280
|
</details>
|
|
1296
1281
|
|
|
@@ -1301,16 +1286,15 @@ class IntegrationLog(pulumi.CustomResource):
|
|
|
1301
1286
|
</b>
|
|
1302
1287
|
</summary>
|
|
1303
1288
|
|
|
1304
|
-
<!--Start PulumiCodeChooser -->
|
|
1305
1289
|
```python
|
|
1306
1290
|
import pulumi
|
|
1307
1291
|
import pulumi_cloudamqp as cloudamqp
|
|
1308
1292
|
|
|
1309
1293
|
loggly = cloudamqp.IntegrationLog("loggly",
|
|
1310
|
-
instance_id=
|
|
1311
|
-
|
|
1294
|
+
instance_id=instance["id"],
|
|
1295
|
+
name="loggly",
|
|
1296
|
+
token=loggly_token)
|
|
1312
1297
|
```
|
|
1313
|
-
<!--End PulumiCodeChooser -->
|
|
1314
1298
|
</details>
|
|
1315
1299
|
|
|
1316
1300
|
<details>
|
|
@@ -1320,16 +1304,15 @@ class IntegrationLog(pulumi.CustomResource):
|
|
|
1320
1304
|
</b>
|
|
1321
1305
|
</summary>
|
|
1322
1306
|
|
|
1323
|
-
<!--Start PulumiCodeChooser -->
|
|
1324
1307
|
```python
|
|
1325
1308
|
import pulumi
|
|
1326
1309
|
import pulumi_cloudamqp as cloudamqp
|
|
1327
1310
|
|
|
1328
1311
|
papertrail = cloudamqp.IntegrationLog("papertrail",
|
|
1329
|
-
instance_id=
|
|
1330
|
-
|
|
1312
|
+
instance_id=instance["id"],
|
|
1313
|
+
name="papertrail",
|
|
1314
|
+
url=papertrail_url)
|
|
1331
1315
|
```
|
|
1332
|
-
<!--End PulumiCodeChooser -->
|
|
1333
1316
|
|
|
1334
1317
|
</details>
|
|
1335
1318
|
|
|
@@ -1340,17 +1323,16 @@ class IntegrationLog(pulumi.CustomResource):
|
|
|
1340
1323
|
</b>
|
|
1341
1324
|
</summary>
|
|
1342
1325
|
|
|
1343
|
-
<!--Start PulumiCodeChooser -->
|
|
1344
1326
|
```python
|
|
1345
1327
|
import pulumi
|
|
1346
1328
|
import pulumi_cloudamqp as cloudamqp
|
|
1347
1329
|
|
|
1348
1330
|
scalyr = cloudamqp.IntegrationLog("scalyr",
|
|
1349
|
-
instance_id=
|
|
1350
|
-
|
|
1351
|
-
|
|
1331
|
+
instance_id=instance["id"],
|
|
1332
|
+
name="scalyr",
|
|
1333
|
+
token=scalyr_token,
|
|
1334
|
+
host=scalyr_host)
|
|
1352
1335
|
```
|
|
1353
|
-
<!--End PulumiCodeChooser -->
|
|
1354
1336
|
|
|
1355
1337
|
<details>
|
|
1356
1338
|
<summary>
|
|
@@ -1359,18 +1341,17 @@ class IntegrationLog(pulumi.CustomResource):
|
|
|
1359
1341
|
</b>
|
|
1360
1342
|
</summary>
|
|
1361
1343
|
|
|
1362
|
-
<!--Start PulumiCodeChooser -->
|
|
1363
1344
|
```python
|
|
1364
1345
|
import pulumi
|
|
1365
1346
|
import pulumi_cloudamqp as cloudamqp
|
|
1366
1347
|
|
|
1367
1348
|
splunk = cloudamqp.IntegrationLog("splunk",
|
|
1368
|
-
instance_id=
|
|
1369
|
-
|
|
1370
|
-
|
|
1349
|
+
instance_id=instance["id"],
|
|
1350
|
+
name="splunk",
|
|
1351
|
+
token=splunk_token,
|
|
1352
|
+
host_port=splunk_host_port,
|
|
1371
1353
|
source_type="generic_single_line")
|
|
1372
1354
|
```
|
|
1373
|
-
<!--End PulumiCodeChooser -->
|
|
1374
1355
|
|
|
1375
1356
|
</details>
|
|
1376
1357
|
|
|
@@ -1385,18 +1366,17 @@ class IntegrationLog(pulumi.CustomResource):
|
|
|
1385
1366
|
|
|
1386
1367
|
Use variable file populated with project_id, private_key and client_email
|
|
1387
1368
|
|
|
1388
|
-
<!--Start PulumiCodeChooser -->
|
|
1389
1369
|
```python
|
|
1390
1370
|
import pulumi
|
|
1391
1371
|
import pulumi_cloudamqp as cloudamqp
|
|
1392
1372
|
|
|
1393
1373
|
stackdriver = cloudamqp.IntegrationLog("stackdriver",
|
|
1394
|
-
instance_id=
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1374
|
+
instance_id=instance["id"],
|
|
1375
|
+
name="stackdriver",
|
|
1376
|
+
project_id=stackdriver_project_id,
|
|
1377
|
+
private_key=stackdriver_private_key,
|
|
1378
|
+
client_email=stackdriver_client_email)
|
|
1398
1379
|
```
|
|
1399
|
-
<!--End PulumiCodeChooser -->
|
|
1400
1380
|
|
|
1401
1381
|
or by using google_service_account_key resource from Google provider
|
|
1402
1382
|
|
pulumi_cloudamqp/node_actions.py
CHANGED
|
@@ -159,18 +159,16 @@ class NodeActions(pulumi.CustomResource):
|
|
|
159
159
|
</b>
|
|
160
160
|
</summary>
|
|
161
161
|
|
|
162
|
-
<!--Start PulumiCodeChooser -->
|
|
163
162
|
```python
|
|
164
163
|
import pulumi
|
|
165
164
|
import pulumi_cloudamqp as cloudamqp
|
|
166
165
|
|
|
167
166
|
# New recipient to receieve notifications
|
|
168
|
-
node_action = cloudamqp.NodeActions("
|
|
169
|
-
instance_id=
|
|
167
|
+
node_action = cloudamqp.NodeActions("node_action",
|
|
168
|
+
instance_id=instance["id"],
|
|
170
169
|
node_name="<node name>",
|
|
171
170
|
action="restart")
|
|
172
171
|
```
|
|
173
|
-
<!--End PulumiCodeChooser -->
|
|
174
172
|
</details>
|
|
175
173
|
|
|
176
174
|
Using data source `get_nodes` to restart RabbitMQ on all nodes.</br>
|
|
@@ -183,23 +181,22 @@ class NodeActions(pulumi.CustomResource):
|
|
|
183
181
|
</b>
|
|
184
182
|
</summary>
|
|
185
183
|
|
|
186
|
-
<!--Start PulumiCodeChooser -->
|
|
187
184
|
```python
|
|
188
185
|
import pulumi
|
|
189
186
|
import pulumi_cloudamqp as cloudamqp
|
|
190
187
|
|
|
191
|
-
list_nodes = cloudamqp.get_nodes(instance_id=
|
|
192
|
-
restart01 = cloudamqp.NodeActions("
|
|
193
|
-
instance_id=
|
|
188
|
+
list_nodes = cloudamqp.get_nodes(instance_id=instance["id"])
|
|
189
|
+
restart01 = cloudamqp.NodeActions("restart_01",
|
|
190
|
+
instance_id=instance["id"],
|
|
194
191
|
action="restart",
|
|
195
192
|
node_name=list_nodes.nodes[0].name)
|
|
196
|
-
restart02 = cloudamqp.NodeActions("
|
|
197
|
-
instance_id=
|
|
193
|
+
restart02 = cloudamqp.NodeActions("restart_02",
|
|
194
|
+
instance_id=instance["id"],
|
|
198
195
|
action="restart",
|
|
199
196
|
node_name=list_nodes.nodes[1].name,
|
|
200
197
|
opts=pulumi.ResourceOptions(depends_on=[restart01]))
|
|
201
|
-
restart03 = cloudamqp.NodeActions("
|
|
202
|
-
instance_id=
|
|
198
|
+
restart03 = cloudamqp.NodeActions("restart_03",
|
|
199
|
+
instance_id=instance["id"],
|
|
203
200
|
action="restart",
|
|
204
201
|
node_name=list_nodes.nodes[2].name,
|
|
205
202
|
opts=pulumi.ResourceOptions(depends_on=[
|
|
@@ -207,7 +204,6 @@ class NodeActions(pulumi.CustomResource):
|
|
|
207
204
|
restart02,
|
|
208
205
|
]))
|
|
209
206
|
```
|
|
210
|
-
<!--End PulumiCodeChooser -->
|
|
211
207
|
</details>
|
|
212
208
|
|
|
213
209
|
<details>
|
|
@@ -217,30 +213,29 @@ class NodeActions(pulumi.CustomResource):
|
|
|
217
213
|
</b>
|
|
218
214
|
</summary>
|
|
219
215
|
|
|
220
|
-
<!--Start PulumiCodeChooser -->
|
|
221
216
|
```python
|
|
222
217
|
import pulumi
|
|
223
218
|
import pulumi_cloudamqp as cloudamqp
|
|
224
219
|
|
|
225
|
-
list_nodes = cloudamqp.get_nodes(instance_id=
|
|
226
|
-
rabbitmq_config = cloudamqp.RabbitConfiguration("
|
|
227
|
-
instance_id=
|
|
220
|
+
list_nodes = cloudamqp.get_nodes(instance_id=instance["id"])
|
|
221
|
+
rabbitmq_config = cloudamqp.RabbitConfiguration("rabbitmq_config",
|
|
222
|
+
instance_id=instance["id"],
|
|
228
223
|
log_exchange_level="info")
|
|
229
|
-
restart01 = cloudamqp.NodeActions("
|
|
230
|
-
instance_id=
|
|
224
|
+
restart01 = cloudamqp.NodeActions("restart_01",
|
|
225
|
+
instance_id=instance["id"],
|
|
231
226
|
action="restart",
|
|
232
227
|
node_name=list_nodes.nodes[0].name,
|
|
233
228
|
opts=pulumi.ResourceOptions(depends_on=[rabbitmq_config]))
|
|
234
|
-
restart02 = cloudamqp.NodeActions("
|
|
235
|
-
instance_id=
|
|
229
|
+
restart02 = cloudamqp.NodeActions("restart_02",
|
|
230
|
+
instance_id=instance["id"],
|
|
236
231
|
action="restart",
|
|
237
232
|
node_name=list_nodes.nodes[1].name,
|
|
238
233
|
opts=pulumi.ResourceOptions(depends_on=[
|
|
239
234
|
rabbitmq_config,
|
|
240
235
|
restart01,
|
|
241
236
|
]))
|
|
242
|
-
restart03 = cloudamqp.NodeActions("
|
|
243
|
-
instance_id=
|
|
237
|
+
restart03 = cloudamqp.NodeActions("restart_03",
|
|
238
|
+
instance_id=instance["id"],
|
|
244
239
|
action="restart",
|
|
245
240
|
node_name=list_nodes.nodes[2].name,
|
|
246
241
|
opts=pulumi.ResourceOptions(depends_on=[
|
|
@@ -249,7 +244,6 @@ class NodeActions(pulumi.CustomResource):
|
|
|
249
244
|
restart02,
|
|
250
245
|
]))
|
|
251
246
|
```
|
|
252
|
-
<!--End PulumiCodeChooser -->
|
|
253
247
|
</details>
|
|
254
248
|
|
|
255
249
|
## Action reference
|
|
@@ -298,18 +292,16 @@ class NodeActions(pulumi.CustomResource):
|
|
|
298
292
|
</b>
|
|
299
293
|
</summary>
|
|
300
294
|
|
|
301
|
-
<!--Start PulumiCodeChooser -->
|
|
302
295
|
```python
|
|
303
296
|
import pulumi
|
|
304
297
|
import pulumi_cloudamqp as cloudamqp
|
|
305
298
|
|
|
306
299
|
# New recipient to receieve notifications
|
|
307
|
-
node_action = cloudamqp.NodeActions("
|
|
308
|
-
instance_id=
|
|
300
|
+
node_action = cloudamqp.NodeActions("node_action",
|
|
301
|
+
instance_id=instance["id"],
|
|
309
302
|
node_name="<node name>",
|
|
310
303
|
action="restart")
|
|
311
304
|
```
|
|
312
|
-
<!--End PulumiCodeChooser -->
|
|
313
305
|
</details>
|
|
314
306
|
|
|
315
307
|
Using data source `get_nodes` to restart RabbitMQ on all nodes.</br>
|
|
@@ -322,23 +314,22 @@ class NodeActions(pulumi.CustomResource):
|
|
|
322
314
|
</b>
|
|
323
315
|
</summary>
|
|
324
316
|
|
|
325
|
-
<!--Start PulumiCodeChooser -->
|
|
326
317
|
```python
|
|
327
318
|
import pulumi
|
|
328
319
|
import pulumi_cloudamqp as cloudamqp
|
|
329
320
|
|
|
330
|
-
list_nodes = cloudamqp.get_nodes(instance_id=
|
|
331
|
-
restart01 = cloudamqp.NodeActions("
|
|
332
|
-
instance_id=
|
|
321
|
+
list_nodes = cloudamqp.get_nodes(instance_id=instance["id"])
|
|
322
|
+
restart01 = cloudamqp.NodeActions("restart_01",
|
|
323
|
+
instance_id=instance["id"],
|
|
333
324
|
action="restart",
|
|
334
325
|
node_name=list_nodes.nodes[0].name)
|
|
335
|
-
restart02 = cloudamqp.NodeActions("
|
|
336
|
-
instance_id=
|
|
326
|
+
restart02 = cloudamqp.NodeActions("restart_02",
|
|
327
|
+
instance_id=instance["id"],
|
|
337
328
|
action="restart",
|
|
338
329
|
node_name=list_nodes.nodes[1].name,
|
|
339
330
|
opts=pulumi.ResourceOptions(depends_on=[restart01]))
|
|
340
|
-
restart03 = cloudamqp.NodeActions("
|
|
341
|
-
instance_id=
|
|
331
|
+
restart03 = cloudamqp.NodeActions("restart_03",
|
|
332
|
+
instance_id=instance["id"],
|
|
342
333
|
action="restart",
|
|
343
334
|
node_name=list_nodes.nodes[2].name,
|
|
344
335
|
opts=pulumi.ResourceOptions(depends_on=[
|
|
@@ -346,7 +337,6 @@ class NodeActions(pulumi.CustomResource):
|
|
|
346
337
|
restart02,
|
|
347
338
|
]))
|
|
348
339
|
```
|
|
349
|
-
<!--End PulumiCodeChooser -->
|
|
350
340
|
</details>
|
|
351
341
|
|
|
352
342
|
<details>
|
|
@@ -356,30 +346,29 @@ class NodeActions(pulumi.CustomResource):
|
|
|
356
346
|
</b>
|
|
357
347
|
</summary>
|
|
358
348
|
|
|
359
|
-
<!--Start PulumiCodeChooser -->
|
|
360
349
|
```python
|
|
361
350
|
import pulumi
|
|
362
351
|
import pulumi_cloudamqp as cloudamqp
|
|
363
352
|
|
|
364
|
-
list_nodes = cloudamqp.get_nodes(instance_id=
|
|
365
|
-
rabbitmq_config = cloudamqp.RabbitConfiguration("
|
|
366
|
-
instance_id=
|
|
353
|
+
list_nodes = cloudamqp.get_nodes(instance_id=instance["id"])
|
|
354
|
+
rabbitmq_config = cloudamqp.RabbitConfiguration("rabbitmq_config",
|
|
355
|
+
instance_id=instance["id"],
|
|
367
356
|
log_exchange_level="info")
|
|
368
|
-
restart01 = cloudamqp.NodeActions("
|
|
369
|
-
instance_id=
|
|
357
|
+
restart01 = cloudamqp.NodeActions("restart_01",
|
|
358
|
+
instance_id=instance["id"],
|
|
370
359
|
action="restart",
|
|
371
360
|
node_name=list_nodes.nodes[0].name,
|
|
372
361
|
opts=pulumi.ResourceOptions(depends_on=[rabbitmq_config]))
|
|
373
|
-
restart02 = cloudamqp.NodeActions("
|
|
374
|
-
instance_id=
|
|
362
|
+
restart02 = cloudamqp.NodeActions("restart_02",
|
|
363
|
+
instance_id=instance["id"],
|
|
375
364
|
action="restart",
|
|
376
365
|
node_name=list_nodes.nodes[1].name,
|
|
377
366
|
opts=pulumi.ResourceOptions(depends_on=[
|
|
378
367
|
rabbitmq_config,
|
|
379
368
|
restart01,
|
|
380
369
|
]))
|
|
381
|
-
restart03 = cloudamqp.NodeActions("
|
|
382
|
-
instance_id=
|
|
370
|
+
restart03 = cloudamqp.NodeActions("restart_03",
|
|
371
|
+
instance_id=instance["id"],
|
|
383
372
|
action="restart",
|
|
384
373
|
node_name=list_nodes.nodes[2].name,
|
|
385
374
|
opts=pulumi.ResourceOptions(depends_on=[
|
|
@@ -388,7 +377,6 @@ class NodeActions(pulumi.CustomResource):
|
|
|
388
377
|
restart02,
|
|
389
378
|
]))
|
|
390
379
|
```
|
|
391
|
-
<!--End PulumiCodeChooser -->
|
|
392
380
|
</details>
|
|
393
381
|
|
|
394
382
|
## Action reference
|