pulumi-cloudamqp 3.21.0a1743571485__py3-none-any.whl → 3.21.0a1744082841__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/__init__.py +9 -0
- pulumi_cloudamqp/_inputs.py +28 -9
- pulumi_cloudamqp/account_action.py +14 -7
- pulumi_cloudamqp/alarm.py +90 -30
- pulumi_cloudamqp/custom_domain.py +52 -10
- pulumi_cloudamqp/extra_disk_size.py +117 -101
- pulumi_cloudamqp/get_account.py +8 -2
- pulumi_cloudamqp/get_account_vpcs.py +13 -40
- pulumi_cloudamqp/get_alarm.py +50 -44
- pulumi_cloudamqp/get_credentials.py +10 -18
- pulumi_cloudamqp/get_instance.py +51 -2
- pulumi_cloudamqp/get_nodes.py +3 -50
- pulumi_cloudamqp/get_notification.py +17 -20
- pulumi_cloudamqp/get_plugins.py +15 -42
- pulumi_cloudamqp/get_plugins_community.py +16 -40
- pulumi_cloudamqp/get_upgradable_versions.py +10 -16
- pulumi_cloudamqp/get_vpc_gcp_info.py +23 -118
- pulumi_cloudamqp/get_vpc_info.py +18 -112
- pulumi_cloudamqp/instance.py +400 -177
- pulumi_cloudamqp/integration_aws_eventbridge.py +90 -26
- pulumi_cloudamqp/integration_log.py +135 -50
- pulumi_cloudamqp/integration_metric.py +50 -2
- pulumi_cloudamqp/maintenance_window.py +515 -0
- pulumi_cloudamqp/node_actions.py +32 -10
- pulumi_cloudamqp/notification.py +103 -22
- pulumi_cloudamqp/outputs.py +118 -28
- pulumi_cloudamqp/plugin.py +89 -25
- pulumi_cloudamqp/plugin_community.py +87 -27
- pulumi_cloudamqp/privatelink_aws.py +62 -270
- pulumi_cloudamqp/privatelink_azure.py +64 -268
- pulumi_cloudamqp/pulumi-plugin.json +1 -1
- pulumi_cloudamqp/rabbit_configuration.py +209 -86
- pulumi_cloudamqp/security_firewall.py +76 -23
- pulumi_cloudamqp/upgrade_lavinmq.py +0 -74
- pulumi_cloudamqp/upgrade_rabbitmq.py +14 -261
- pulumi_cloudamqp/vpc.py +48 -16
- pulumi_cloudamqp/vpc_connect.py +111 -499
- pulumi_cloudamqp/vpc_gcp_peering.py +141 -506
- pulumi_cloudamqp/vpc_peering.py +50 -36
- pulumi_cloudamqp/webhook.py +48 -9
- {pulumi_cloudamqp-3.21.0a1743571485.dist-info → pulumi_cloudamqp-3.21.0a1744082841.dist-info}/METADATA +1 -1
- pulumi_cloudamqp-3.21.0a1744082841.dist-info/RECORD +50 -0
- pulumi_cloudamqp-3.21.0a1743571485.dist-info/RECORD +0 -49
- {pulumi_cloudamqp-3.21.0a1743571485.dist-info → pulumi_cloudamqp-3.21.0a1744082841.dist-info}/WHEEL +0 -0
- {pulumi_cloudamqp-3.21.0a1743571485.dist-info → pulumi_cloudamqp-3.21.0a1744082841.dist-info}/top_level.txt +0 -0
|
@@ -28,13 +28,17 @@ class ExtraDiskSizeArgs:
|
|
|
28
28
|
timeout: Optional[pulumi.Input[int]] = None):
|
|
29
29
|
"""
|
|
30
30
|
The set of arguments for constructing a ExtraDiskSize resource.
|
|
31
|
-
:param pulumi.Input[int] extra_disk_size: Extra disk size in GB. Supported values: 0, 25, 50, 100,
|
|
31
|
+
:param pulumi.Input[int] extra_disk_size: Extra disk size in GB. Supported values: 0, 25, 50, 100,
|
|
32
|
+
250, 500, 1000, 2000
|
|
32
33
|
:param pulumi.Input[int] instance_id: The CloudAMQP instance ID.
|
|
33
|
-
:param pulumi.Input[bool] allow_downtime: When resizing the disk, allow cluster downtime if necessary.
|
|
34
|
-
|
|
35
|
-
:param pulumi.Input[int]
|
|
34
|
+
:param pulumi.Input[bool] allow_downtime: When resizing the disk, allow cluster downtime if necessary.
|
|
35
|
+
Default set to false.
|
|
36
|
+
:param pulumi.Input[int] sleep: Configurable sleep time in seconds between retries for resizing the
|
|
37
|
+
disk. Default set to 30 seconds.
|
|
38
|
+
:param pulumi.Input[int] timeout: Configurable timeout time in seconds for resizing the disk. Default
|
|
39
|
+
set to 1800 seconds.
|
|
36
40
|
|
|
37
|
-
***Note:*** `allow_downtime`, `sleep`, `timeout` only available from v1.25.0.
|
|
41
|
+
***Note:*** `allow_downtime`, `sleep`, `timeout` only available from [v1.25.0].
|
|
38
42
|
"""
|
|
39
43
|
pulumi.set(__self__, "extra_disk_size", extra_disk_size)
|
|
40
44
|
pulumi.set(__self__, "instance_id", instance_id)
|
|
@@ -49,7 +53,8 @@ class ExtraDiskSizeArgs:
|
|
|
49
53
|
@pulumi.getter(name="extraDiskSize")
|
|
50
54
|
def extra_disk_size(self) -> pulumi.Input[int]:
|
|
51
55
|
"""
|
|
52
|
-
Extra disk size in GB. Supported values: 0, 25, 50, 100,
|
|
56
|
+
Extra disk size in GB. Supported values: 0, 25, 50, 100,
|
|
57
|
+
250, 500, 1000, 2000
|
|
53
58
|
"""
|
|
54
59
|
return pulumi.get(self, "extra_disk_size")
|
|
55
60
|
|
|
@@ -73,7 +78,8 @@ class ExtraDiskSizeArgs:
|
|
|
73
78
|
@pulumi.getter(name="allowDowntime")
|
|
74
79
|
def allow_downtime(self) -> Optional[pulumi.Input[bool]]:
|
|
75
80
|
"""
|
|
76
|
-
When resizing the disk, allow cluster downtime if necessary.
|
|
81
|
+
When resizing the disk, allow cluster downtime if necessary.
|
|
82
|
+
Default set to false.
|
|
77
83
|
"""
|
|
78
84
|
return pulumi.get(self, "allow_downtime")
|
|
79
85
|
|
|
@@ -85,7 +91,8 @@ class ExtraDiskSizeArgs:
|
|
|
85
91
|
@pulumi.getter
|
|
86
92
|
def sleep(self) -> Optional[pulumi.Input[int]]:
|
|
87
93
|
"""
|
|
88
|
-
Configurable sleep time in seconds between retries for resizing the
|
|
94
|
+
Configurable sleep time in seconds between retries for resizing the
|
|
95
|
+
disk. Default set to 30 seconds.
|
|
89
96
|
"""
|
|
90
97
|
return pulumi.get(self, "sleep")
|
|
91
98
|
|
|
@@ -97,9 +104,10 @@ class ExtraDiskSizeArgs:
|
|
|
97
104
|
@pulumi.getter
|
|
98
105
|
def timeout(self) -> Optional[pulumi.Input[int]]:
|
|
99
106
|
"""
|
|
100
|
-
Configurable timeout time in seconds for resizing the disk. Default
|
|
107
|
+
Configurable timeout time in seconds for resizing the disk. Default
|
|
108
|
+
set to 1800 seconds.
|
|
101
109
|
|
|
102
|
-
***Note:*** `allow_downtime`, `sleep`, `timeout` only available from v1.25.0.
|
|
110
|
+
***Note:*** `allow_downtime`, `sleep`, `timeout` only available from [v1.25.0].
|
|
103
111
|
"""
|
|
104
112
|
return pulumi.get(self, "timeout")
|
|
105
113
|
|
|
@@ -119,13 +127,18 @@ class _ExtraDiskSizeState:
|
|
|
119
127
|
timeout: Optional[pulumi.Input[int]] = None):
|
|
120
128
|
"""
|
|
121
129
|
Input properties used for looking up and filtering ExtraDiskSize resources.
|
|
122
|
-
:param pulumi.Input[bool] allow_downtime: When resizing the disk, allow cluster downtime if necessary.
|
|
123
|
-
|
|
130
|
+
:param pulumi.Input[bool] allow_downtime: When resizing the disk, allow cluster downtime if necessary.
|
|
131
|
+
Default set to false.
|
|
132
|
+
:param pulumi.Input[int] extra_disk_size: Extra disk size in GB. Supported values: 0, 25, 50, 100,
|
|
133
|
+
250, 500, 1000, 2000
|
|
124
134
|
:param pulumi.Input[int] instance_id: The CloudAMQP instance ID.
|
|
125
|
-
:param pulumi.Input[
|
|
126
|
-
:param pulumi.Input[int]
|
|
135
|
+
:param pulumi.Input[Sequence[pulumi.Input['ExtraDiskSizeNodeArgs']]] nodes: An array of node information. Each `nodes` block consists of the fields documented below.
|
|
136
|
+
:param pulumi.Input[int] sleep: Configurable sleep time in seconds between retries for resizing the
|
|
137
|
+
disk. Default set to 30 seconds.
|
|
138
|
+
:param pulumi.Input[int] timeout: Configurable timeout time in seconds for resizing the disk. Default
|
|
139
|
+
set to 1800 seconds.
|
|
127
140
|
|
|
128
|
-
***Note:*** `allow_downtime`, `sleep`, `timeout` only available from v1.25.0.
|
|
141
|
+
***Note:*** `allow_downtime`, `sleep`, `timeout` only available from [v1.25.0].
|
|
129
142
|
"""
|
|
130
143
|
if allow_downtime is not None:
|
|
131
144
|
pulumi.set(__self__, "allow_downtime", allow_downtime)
|
|
@@ -144,7 +157,8 @@ class _ExtraDiskSizeState:
|
|
|
144
157
|
@pulumi.getter(name="allowDowntime")
|
|
145
158
|
def allow_downtime(self) -> Optional[pulumi.Input[bool]]:
|
|
146
159
|
"""
|
|
147
|
-
When resizing the disk, allow cluster downtime if necessary.
|
|
160
|
+
When resizing the disk, allow cluster downtime if necessary.
|
|
161
|
+
Default set to false.
|
|
148
162
|
"""
|
|
149
163
|
return pulumi.get(self, "allow_downtime")
|
|
150
164
|
|
|
@@ -156,7 +170,8 @@ class _ExtraDiskSizeState:
|
|
|
156
170
|
@pulumi.getter(name="extraDiskSize")
|
|
157
171
|
def extra_disk_size(self) -> Optional[pulumi.Input[int]]:
|
|
158
172
|
"""
|
|
159
|
-
Extra disk size in GB. Supported values: 0, 25, 50, 100,
|
|
173
|
+
Extra disk size in GB. Supported values: 0, 25, 50, 100,
|
|
174
|
+
250, 500, 1000, 2000
|
|
160
175
|
"""
|
|
161
176
|
return pulumi.get(self, "extra_disk_size")
|
|
162
177
|
|
|
@@ -179,6 +194,9 @@ class _ExtraDiskSizeState:
|
|
|
179
194
|
@property
|
|
180
195
|
@pulumi.getter
|
|
181
196
|
def nodes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ExtraDiskSizeNodeArgs']]]]:
|
|
197
|
+
"""
|
|
198
|
+
An array of node information. Each `nodes` block consists of the fields documented below.
|
|
199
|
+
"""
|
|
182
200
|
return pulumi.get(self, "nodes")
|
|
183
201
|
|
|
184
202
|
@nodes.setter
|
|
@@ -189,7 +207,8 @@ class _ExtraDiskSizeState:
|
|
|
189
207
|
@pulumi.getter
|
|
190
208
|
def sleep(self) -> Optional[pulumi.Input[int]]:
|
|
191
209
|
"""
|
|
192
|
-
Configurable sleep time in seconds between retries for resizing the
|
|
210
|
+
Configurable sleep time in seconds between retries for resizing the
|
|
211
|
+
disk. Default set to 30 seconds.
|
|
193
212
|
"""
|
|
194
213
|
return pulumi.get(self, "sleep")
|
|
195
214
|
|
|
@@ -201,9 +220,10 @@ class _ExtraDiskSizeState:
|
|
|
201
220
|
@pulumi.getter
|
|
202
221
|
def timeout(self) -> Optional[pulumi.Input[int]]:
|
|
203
222
|
"""
|
|
204
|
-
Configurable timeout time in seconds for resizing the disk. Default
|
|
223
|
+
Configurable timeout time in seconds for resizing the disk. Default
|
|
224
|
+
set to 1800 seconds.
|
|
205
225
|
|
|
206
|
-
***Note:*** `allow_downtime`, `sleep`, `timeout` only available from v1.25.0.
|
|
226
|
+
***Note:*** `allow_downtime`, `sleep`, `timeout` only available from [v1.25.0].
|
|
207
227
|
"""
|
|
208
228
|
return pulumi.get(self, "timeout")
|
|
209
229
|
|
|
@@ -230,22 +250,26 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
230
250
|
|
|
231
251
|
***From v1.25.0***: Google Compute Engine (GCE) and Azure available.
|
|
232
252
|
|
|
233
|
-
Introducing a new optional argument called `allow_downtime`.
|
|
234
|
-
|
|
253
|
+
Introducing a new optional argument called `allow_downtime`. Leaving it out or set it to false will
|
|
254
|
+
proceed to try and resize the disk without downtime, available for *AWS*, *GCE* and *Azure*.
|
|
235
255
|
|
|
236
256
|
`allow_downtime` also makes it possible to circumvent the time rate limit or shrinking the disk.
|
|
237
257
|
|
|
238
|
-
| Cloud Platform | allow_downtime=false | allow_downtime=true |
|
|
239
|
-
|
|
240
|
-
| amazon-web-services | Expand current disk* | Try to expand, otherwise swap |
|
|
241
|
-
| google-compute-engine | Expand current disk* | Try to expand, otherwise swap |
|
|
242
|
-
| azure-arm |
|
|
258
|
+
| Cloud Platform | allow_downtime=false | allow_downtime=true | Possible to resize |
|
|
259
|
+
|-----------------------|----------------------|-------------------------------|--------------------|
|
|
260
|
+
| amazon-web-services | Expand current disk* | Try to expand, otherwise swap | Every 6 hour |
|
|
261
|
+
| google-compute-engine | Expand current disk* | Try to expand, otherwise swap | Every 4 hour |
|
|
262
|
+
| azure-arm | Expand current disk* | Expand current disk | No time rate limit |
|
|
243
263
|
|
|
244
264
|
*Preferable method to use.
|
|
245
265
|
|
|
246
|
-
> **
|
|
266
|
+
> **Note:** Due to restrictions from cloud providers, it's only possible to resize the disk after
|
|
267
|
+
the rate time limit. See `Possible to resize` column above for the different cloud platforms.
|
|
247
268
|
|
|
248
|
-
|
|
269
|
+
> **Note:** Shrinking the disk will always need to swap the old disk to a new one and require
|
|
270
|
+
`allow_downtime` set to *true*.
|
|
271
|
+
|
|
272
|
+
Pricing is available at [CloudAMQP] and only available for dedicated subscription plans.
|
|
249
273
|
|
|
250
274
|
## Example Usage
|
|
251
275
|
|
|
@@ -263,7 +287,7 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
263
287
|
# Instance
|
|
264
288
|
instance = cloudamqp.Instance("instance",
|
|
265
289
|
name="Instance",
|
|
266
|
-
plan="
|
|
290
|
+
plan="penguin-1",
|
|
267
291
|
region="amazon-web-services::us-west-2")
|
|
268
292
|
# Resize disk with 25 extra GB
|
|
269
293
|
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
@@ -290,7 +314,7 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
290
314
|
# Instance
|
|
291
315
|
instance = cloudamqp.Instance("instance",
|
|
292
316
|
name="Instance",
|
|
293
|
-
plan="
|
|
317
|
+
plan="penguin-1",
|
|
294
318
|
region="amazon-web-services::us-west-2")
|
|
295
319
|
# Resize disk with 25 extra GB, without downtime
|
|
296
320
|
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
@@ -317,7 +341,7 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
317
341
|
# Instance
|
|
318
342
|
instance = cloudamqp.Instance("instance",
|
|
319
343
|
name="Instance",
|
|
320
|
-
plan="
|
|
344
|
+
plan="penguin-1",
|
|
321
345
|
region="google-compute-engine::us-central1")
|
|
322
346
|
# Resize disk with 25 extra GB, without downtime
|
|
323
347
|
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
@@ -333,7 +357,7 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
333
357
|
<details>
|
|
334
358
|
<summary>
|
|
335
359
|
<b>
|
|
336
|
-
<i>Azure extra disk size
|
|
360
|
+
<i>Azure extra disk size without downtime</i>
|
|
337
361
|
</b>
|
|
338
362
|
</summary>
|
|
339
363
|
|
|
@@ -344,13 +368,12 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
344
368
|
# Instance
|
|
345
369
|
instance = cloudamqp.Instance("instance",
|
|
346
370
|
name="Instance",
|
|
347
|
-
plan="
|
|
371
|
+
plan="penguin-1",
|
|
348
372
|
region="azure-arm::centralus")
|
|
349
373
|
# Resize disk with 25 extra GB, with downtime
|
|
350
374
|
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
351
375
|
instance_id=instance.id,
|
|
352
|
-
extra_disk_size=25
|
|
353
|
-
allow_downtime=True)
|
|
376
|
+
extra_disk_size=25)
|
|
354
377
|
# Optional, refresh nodes info after disk resize by adding dependency
|
|
355
378
|
# to cloudamqp_extra_disk_size.resize_disk resource
|
|
356
379
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
@@ -358,23 +381,6 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
358
381
|
|
|
359
382
|
</details>
|
|
360
383
|
|
|
361
|
-
## Attributes reference
|
|
362
|
-
|
|
363
|
-
All attributes reference are computed
|
|
364
|
-
|
|
365
|
-
* `id` - The identifier for this resource.
|
|
366
|
-
* `nodes` - An array of node information. Each `nodes` block consists of the fields documented below.
|
|
367
|
-
|
|
368
|
-
***
|
|
369
|
-
|
|
370
|
-
The `nodes` block consist of
|
|
371
|
-
|
|
372
|
-
* `name` - Name of the node.
|
|
373
|
-
* `disk_size` - Subscription plan disk size
|
|
374
|
-
* `additional_disk_size` - Additional added disk size
|
|
375
|
-
|
|
376
|
-
***Note:*** *Total disk size = disk_size + additional_disk_size*
|
|
377
|
-
|
|
378
384
|
## Dependency
|
|
379
385
|
|
|
380
386
|
This data source depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
|
|
@@ -383,15 +389,23 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
383
389
|
|
|
384
390
|
Not possible to import this resource.
|
|
385
391
|
|
|
392
|
+
[CloudAMQP]: https://www.cloudamqp.com/
|
|
393
|
+
|
|
394
|
+
[v1.25.0]: https://github.com/cloudamqp/terraform-provider-cloudamqp/releases/tag/v1.25.0
|
|
395
|
+
|
|
386
396
|
:param str resource_name: The name of the resource.
|
|
387
397
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
388
|
-
:param pulumi.Input[bool] allow_downtime: When resizing the disk, allow cluster downtime if necessary.
|
|
389
|
-
|
|
398
|
+
:param pulumi.Input[bool] allow_downtime: When resizing the disk, allow cluster downtime if necessary.
|
|
399
|
+
Default set to false.
|
|
400
|
+
:param pulumi.Input[int] extra_disk_size: Extra disk size in GB. Supported values: 0, 25, 50, 100,
|
|
401
|
+
250, 500, 1000, 2000
|
|
390
402
|
:param pulumi.Input[int] instance_id: The CloudAMQP instance ID.
|
|
391
|
-
:param pulumi.Input[int] sleep: Configurable sleep time in seconds between retries for resizing the
|
|
392
|
-
|
|
403
|
+
:param pulumi.Input[int] sleep: Configurable sleep time in seconds between retries for resizing the
|
|
404
|
+
disk. Default set to 30 seconds.
|
|
405
|
+
:param pulumi.Input[int] timeout: Configurable timeout time in seconds for resizing the disk. Default
|
|
406
|
+
set to 1800 seconds.
|
|
393
407
|
|
|
394
|
-
***Note:*** `allow_downtime`, `sleep`, `timeout` only available from v1.25.0.
|
|
408
|
+
***Note:*** `allow_downtime`, `sleep`, `timeout` only available from [v1.25.0].
|
|
395
409
|
"""
|
|
396
410
|
...
|
|
397
411
|
@overload
|
|
@@ -406,22 +420,26 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
406
420
|
|
|
407
421
|
***From v1.25.0***: Google Compute Engine (GCE) and Azure available.
|
|
408
422
|
|
|
409
|
-
Introducing a new optional argument called `allow_downtime`.
|
|
410
|
-
|
|
423
|
+
Introducing a new optional argument called `allow_downtime`. Leaving it out or set it to false will
|
|
424
|
+
proceed to try and resize the disk without downtime, available for *AWS*, *GCE* and *Azure*.
|
|
411
425
|
|
|
412
426
|
`allow_downtime` also makes it possible to circumvent the time rate limit or shrinking the disk.
|
|
413
427
|
|
|
414
|
-
| Cloud Platform | allow_downtime=false | allow_downtime=true |
|
|
415
|
-
|
|
416
|
-
| amazon-web-services | Expand current disk* | Try to expand, otherwise swap |
|
|
417
|
-
| google-compute-engine | Expand current disk* | Try to expand, otherwise swap |
|
|
418
|
-
| azure-arm |
|
|
428
|
+
| Cloud Platform | allow_downtime=false | allow_downtime=true | Possible to resize |
|
|
429
|
+
|-----------------------|----------------------|-------------------------------|--------------------|
|
|
430
|
+
| amazon-web-services | Expand current disk* | Try to expand, otherwise swap | Every 6 hour |
|
|
431
|
+
| google-compute-engine | Expand current disk* | Try to expand, otherwise swap | Every 4 hour |
|
|
432
|
+
| azure-arm | Expand current disk* | Expand current disk | No time rate limit |
|
|
419
433
|
|
|
420
434
|
*Preferable method to use.
|
|
421
435
|
|
|
422
|
-
> **
|
|
436
|
+
> **Note:** Due to restrictions from cloud providers, it's only possible to resize the disk after
|
|
437
|
+
the rate time limit. See `Possible to resize` column above for the different cloud platforms.
|
|
423
438
|
|
|
424
|
-
|
|
439
|
+
> **Note:** Shrinking the disk will always need to swap the old disk to a new one and require
|
|
440
|
+
`allow_downtime` set to *true*.
|
|
441
|
+
|
|
442
|
+
Pricing is available at [CloudAMQP] and only available for dedicated subscription plans.
|
|
425
443
|
|
|
426
444
|
## Example Usage
|
|
427
445
|
|
|
@@ -439,7 +457,7 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
439
457
|
# Instance
|
|
440
458
|
instance = cloudamqp.Instance("instance",
|
|
441
459
|
name="Instance",
|
|
442
|
-
plan="
|
|
460
|
+
plan="penguin-1",
|
|
443
461
|
region="amazon-web-services::us-west-2")
|
|
444
462
|
# Resize disk with 25 extra GB
|
|
445
463
|
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
@@ -466,7 +484,7 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
466
484
|
# Instance
|
|
467
485
|
instance = cloudamqp.Instance("instance",
|
|
468
486
|
name="Instance",
|
|
469
|
-
plan="
|
|
487
|
+
plan="penguin-1",
|
|
470
488
|
region="amazon-web-services::us-west-2")
|
|
471
489
|
# Resize disk with 25 extra GB, without downtime
|
|
472
490
|
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
@@ -493,7 +511,7 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
493
511
|
# Instance
|
|
494
512
|
instance = cloudamqp.Instance("instance",
|
|
495
513
|
name="Instance",
|
|
496
|
-
plan="
|
|
514
|
+
plan="penguin-1",
|
|
497
515
|
region="google-compute-engine::us-central1")
|
|
498
516
|
# Resize disk with 25 extra GB, without downtime
|
|
499
517
|
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
@@ -509,7 +527,7 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
509
527
|
<details>
|
|
510
528
|
<summary>
|
|
511
529
|
<b>
|
|
512
|
-
<i>Azure extra disk size
|
|
530
|
+
<i>Azure extra disk size without downtime</i>
|
|
513
531
|
</b>
|
|
514
532
|
</summary>
|
|
515
533
|
|
|
@@ -520,13 +538,12 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
520
538
|
# Instance
|
|
521
539
|
instance = cloudamqp.Instance("instance",
|
|
522
540
|
name="Instance",
|
|
523
|
-
plan="
|
|
541
|
+
plan="penguin-1",
|
|
524
542
|
region="azure-arm::centralus")
|
|
525
543
|
# Resize disk with 25 extra GB, with downtime
|
|
526
544
|
resize_disk = cloudamqp.ExtraDiskSize("resize_disk",
|
|
527
545
|
instance_id=instance.id,
|
|
528
|
-
extra_disk_size=25
|
|
529
|
-
allow_downtime=True)
|
|
546
|
+
extra_disk_size=25)
|
|
530
547
|
# Optional, refresh nodes info after disk resize by adding dependency
|
|
531
548
|
# to cloudamqp_extra_disk_size.resize_disk resource
|
|
532
549
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
@@ -534,23 +551,6 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
534
551
|
|
|
535
552
|
</details>
|
|
536
553
|
|
|
537
|
-
## Attributes reference
|
|
538
|
-
|
|
539
|
-
All attributes reference are computed
|
|
540
|
-
|
|
541
|
-
* `id` - The identifier for this resource.
|
|
542
|
-
* `nodes` - An array of node information. Each `nodes` block consists of the fields documented below.
|
|
543
|
-
|
|
544
|
-
***
|
|
545
|
-
|
|
546
|
-
The `nodes` block consist of
|
|
547
|
-
|
|
548
|
-
* `name` - Name of the node.
|
|
549
|
-
* `disk_size` - Subscription plan disk size
|
|
550
|
-
* `additional_disk_size` - Additional added disk size
|
|
551
|
-
|
|
552
|
-
***Note:*** *Total disk size = disk_size + additional_disk_size*
|
|
553
|
-
|
|
554
554
|
## Dependency
|
|
555
555
|
|
|
556
556
|
This data source depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
|
|
@@ -559,6 +559,10 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
559
559
|
|
|
560
560
|
Not possible to import this resource.
|
|
561
561
|
|
|
562
|
+
[CloudAMQP]: https://www.cloudamqp.com/
|
|
563
|
+
|
|
564
|
+
[v1.25.0]: https://github.com/cloudamqp/terraform-provider-cloudamqp/releases/tag/v1.25.0
|
|
565
|
+
|
|
562
566
|
:param str resource_name: The name of the resource.
|
|
563
567
|
:param ExtraDiskSizeArgs args: The arguments to use to populate this resource's properties.
|
|
564
568
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -621,13 +625,18 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
621
625
|
:param str resource_name: The unique name of the resulting resource.
|
|
622
626
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
623
627
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
624
|
-
:param pulumi.Input[bool] allow_downtime: When resizing the disk, allow cluster downtime if necessary.
|
|
625
|
-
|
|
628
|
+
:param pulumi.Input[bool] allow_downtime: When resizing the disk, allow cluster downtime if necessary.
|
|
629
|
+
Default set to false.
|
|
630
|
+
:param pulumi.Input[int] extra_disk_size: Extra disk size in GB. Supported values: 0, 25, 50, 100,
|
|
631
|
+
250, 500, 1000, 2000
|
|
626
632
|
:param pulumi.Input[int] instance_id: The CloudAMQP instance ID.
|
|
627
|
-
:param pulumi.Input[
|
|
628
|
-
:param pulumi.Input[int]
|
|
633
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ExtraDiskSizeNodeArgs', 'ExtraDiskSizeNodeArgsDict']]]] nodes: An array of node information. Each `nodes` block consists of the fields documented below.
|
|
634
|
+
:param pulumi.Input[int] sleep: Configurable sleep time in seconds between retries for resizing the
|
|
635
|
+
disk. Default set to 30 seconds.
|
|
636
|
+
:param pulumi.Input[int] timeout: Configurable timeout time in seconds for resizing the disk. Default
|
|
637
|
+
set to 1800 seconds.
|
|
629
638
|
|
|
630
|
-
***Note:*** `allow_downtime`, `sleep`, `timeout` only available from v1.25.0.
|
|
639
|
+
***Note:*** `allow_downtime`, `sleep`, `timeout` only available from [v1.25.0].
|
|
631
640
|
"""
|
|
632
641
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
633
642
|
|
|
@@ -645,7 +654,8 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
645
654
|
@pulumi.getter(name="allowDowntime")
|
|
646
655
|
def allow_downtime(self) -> pulumi.Output[Optional[bool]]:
|
|
647
656
|
"""
|
|
648
|
-
When resizing the disk, allow cluster downtime if necessary.
|
|
657
|
+
When resizing the disk, allow cluster downtime if necessary.
|
|
658
|
+
Default set to false.
|
|
649
659
|
"""
|
|
650
660
|
return pulumi.get(self, "allow_downtime")
|
|
651
661
|
|
|
@@ -653,7 +663,8 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
653
663
|
@pulumi.getter(name="extraDiskSize")
|
|
654
664
|
def extra_disk_size(self) -> pulumi.Output[int]:
|
|
655
665
|
"""
|
|
656
|
-
Extra disk size in GB. Supported values: 0, 25, 50, 100,
|
|
666
|
+
Extra disk size in GB. Supported values: 0, 25, 50, 100,
|
|
667
|
+
250, 500, 1000, 2000
|
|
657
668
|
"""
|
|
658
669
|
return pulumi.get(self, "extra_disk_size")
|
|
659
670
|
|
|
@@ -668,13 +679,17 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
668
679
|
@property
|
|
669
680
|
@pulumi.getter
|
|
670
681
|
def nodes(self) -> pulumi.Output[Sequence['outputs.ExtraDiskSizeNode']]:
|
|
682
|
+
"""
|
|
683
|
+
An array of node information. Each `nodes` block consists of the fields documented below.
|
|
684
|
+
"""
|
|
671
685
|
return pulumi.get(self, "nodes")
|
|
672
686
|
|
|
673
687
|
@property
|
|
674
688
|
@pulumi.getter
|
|
675
689
|
def sleep(self) -> pulumi.Output[Optional[int]]:
|
|
676
690
|
"""
|
|
677
|
-
Configurable sleep time in seconds between retries for resizing the
|
|
691
|
+
Configurable sleep time in seconds between retries for resizing the
|
|
692
|
+
disk. Default set to 30 seconds.
|
|
678
693
|
"""
|
|
679
694
|
return pulumi.get(self, "sleep")
|
|
680
695
|
|
|
@@ -682,9 +697,10 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
682
697
|
@pulumi.getter
|
|
683
698
|
def timeout(self) -> pulumi.Output[Optional[int]]:
|
|
684
699
|
"""
|
|
685
|
-
Configurable timeout time in seconds for resizing the disk. Default
|
|
700
|
+
Configurable timeout time in seconds for resizing the disk. Default
|
|
701
|
+
set to 1800 seconds.
|
|
686
702
|
|
|
687
|
-
***Note:*** `allow_downtime`, `sleep`, `timeout` only available from v1.25.0.
|
|
703
|
+
***Note:*** `allow_downtime`, `sleep`, `timeout` only available from [v1.25.0].
|
|
688
704
|
"""
|
|
689
705
|
return pulumi.get(self, "timeout")
|
|
690
706
|
|
pulumi_cloudamqp/get_account.py
CHANGED
|
@@ -46,6 +46,10 @@ class GetAccountResult:
|
|
|
46
46
|
@property
|
|
47
47
|
@pulumi.getter
|
|
48
48
|
def instances(self) -> Sequence['outputs.GetAccountInstanceResult']:
|
|
49
|
+
"""
|
|
50
|
+
An array of instances. Each `instances` block consists of the fields documented
|
|
51
|
+
below.
|
|
52
|
+
"""
|
|
49
53
|
return pulumi.get(self, "instances")
|
|
50
54
|
|
|
51
55
|
|
|
@@ -61,7 +65,8 @@ class AwaitableGetAccountResult(GetAccountResult):
|
|
|
61
65
|
|
|
62
66
|
def get_account(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAccountResult:
|
|
63
67
|
"""
|
|
64
|
-
Use this data source to retrieve basic information about all instances available for an account.
|
|
68
|
+
Use this data source to retrieve basic information about all instances available for an account.
|
|
69
|
+
Uses the included apikey in provider configuration, to determine which account to read from.
|
|
65
70
|
"""
|
|
66
71
|
__args__ = dict()
|
|
67
72
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
@@ -72,7 +77,8 @@ def get_account(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAcco
|
|
|
72
77
|
instances=pulumi.get(__ret__, 'instances'))
|
|
73
78
|
def get_account_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAccountResult]:
|
|
74
79
|
"""
|
|
75
|
-
Use this data source to retrieve basic information about all instances available for an account.
|
|
80
|
+
Use this data source to retrieve basic information about all instances available for an account.
|
|
81
|
+
Uses the included apikey in provider configuration, to determine which account to read from.
|
|
76
82
|
"""
|
|
77
83
|
__args__ = dict()
|
|
78
84
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
@@ -46,6 +46,9 @@ class GetAccountVpcsResult:
|
|
|
46
46
|
@property
|
|
47
47
|
@pulumi.getter
|
|
48
48
|
def vpcs(self) -> Sequence['outputs.GetAccountVpcsVpcResult']:
|
|
49
|
+
"""
|
|
50
|
+
An array of VPCs. Each `vpcs` block consists of the fields documented below.
|
|
51
|
+
"""
|
|
49
52
|
return pulumi.get(self, "vpcs")
|
|
50
53
|
|
|
51
54
|
|
|
@@ -61,11 +64,14 @@ class AwaitableGetAccountVpcsResult(GetAccountVpcsResult):
|
|
|
61
64
|
|
|
62
65
|
def get_account_vpcs(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAccountVpcsResult:
|
|
63
66
|
"""
|
|
64
|
-
Use this data source to retrieve basic information about all standalone VPCs available for an
|
|
67
|
+
Use this data source to retrieve basic information about all standalone VPCs available for an
|
|
68
|
+
account. Uses the included apikey in provider configuration to determine which account to read from.
|
|
65
69
|
|
|
66
70
|
## Example Usage
|
|
67
71
|
|
|
68
|
-
Can be used in other resources/data sources when the VPC identifier is unknown, while other
|
|
72
|
+
Can be used in other resources/data sources when the VPC identifier is unknown, while other
|
|
73
|
+
attributes are known. E.g. find correct VPC using the `name` you gave your VPC. Then iterate over
|
|
74
|
+
VPCs to find the matching one and extract the VPC identifier.
|
|
69
75
|
|
|
70
76
|
```python
|
|
71
77
|
import pulumi
|
|
@@ -76,24 +82,6 @@ def get_account_vpcs(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGe
|
|
|
76
82
|
pulumi.export("vpcId", [vpc for vpc in vpc_list.vpcs if vpc.name == my_vpc_name][0].id)
|
|
77
83
|
```
|
|
78
84
|
|
|
79
|
-
## Attributes reference
|
|
80
|
-
|
|
81
|
-
All attributes reference are computed
|
|
82
|
-
|
|
83
|
-
* `id` - The identifier for this data source. Set to `na` since there is no unique identifier.
|
|
84
|
-
* `vpcs` - An array of VPCs. Each `vpcs` block consists of the fields documented below.
|
|
85
|
-
|
|
86
|
-
***
|
|
87
|
-
|
|
88
|
-
The `vpcs` block consist of
|
|
89
|
-
|
|
90
|
-
* `id` - The VPC identifier.
|
|
91
|
-
* `name` - The VPC instance name.
|
|
92
|
-
* `region` - The region the VPC is hosted in.
|
|
93
|
-
* `subnet` - The VPC subnet.
|
|
94
|
-
* `tags` - Optional tags set for the VPC.
|
|
95
|
-
* `vpc_name` - VPC name given when hosted at the cloud provider.
|
|
96
|
-
|
|
97
85
|
## Dependency
|
|
98
86
|
|
|
99
87
|
This data source depends on apikey set in the provider configuration.
|
|
@@ -107,11 +95,14 @@ def get_account_vpcs(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGe
|
|
|
107
95
|
vpcs=pulumi.get(__ret__, 'vpcs'))
|
|
108
96
|
def get_account_vpcs_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAccountVpcsResult]:
|
|
109
97
|
"""
|
|
110
|
-
Use this data source to retrieve basic information about all standalone VPCs available for an
|
|
98
|
+
Use this data source to retrieve basic information about all standalone VPCs available for an
|
|
99
|
+
account. Uses the included apikey in provider configuration to determine which account to read from.
|
|
111
100
|
|
|
112
101
|
## Example Usage
|
|
113
102
|
|
|
114
|
-
Can be used in other resources/data sources when the VPC identifier is unknown, while other
|
|
103
|
+
Can be used in other resources/data sources when the VPC identifier is unknown, while other
|
|
104
|
+
attributes are known. E.g. find correct VPC using the `name` you gave your VPC. Then iterate over
|
|
105
|
+
VPCs to find the matching one and extract the VPC identifier.
|
|
115
106
|
|
|
116
107
|
```python
|
|
117
108
|
import pulumi
|
|
@@ -122,24 +113,6 @@ def get_account_vpcs_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.In
|
|
|
122
113
|
pulumi.export("vpcId", [vpc for vpc in vpc_list.vpcs if vpc.name == my_vpc_name][0].id)
|
|
123
114
|
```
|
|
124
115
|
|
|
125
|
-
## Attributes reference
|
|
126
|
-
|
|
127
|
-
All attributes reference are computed
|
|
128
|
-
|
|
129
|
-
* `id` - The identifier for this data source. Set to `na` since there is no unique identifier.
|
|
130
|
-
* `vpcs` - An array of VPCs. Each `vpcs` block consists of the fields documented below.
|
|
131
|
-
|
|
132
|
-
***
|
|
133
|
-
|
|
134
|
-
The `vpcs` block consist of
|
|
135
|
-
|
|
136
|
-
* `id` - The VPC identifier.
|
|
137
|
-
* `name` - The VPC instance name.
|
|
138
|
-
* `region` - The region the VPC is hosted in.
|
|
139
|
-
* `subnet` - The VPC subnet.
|
|
140
|
-
* `tags` - Optional tags set for the VPC.
|
|
141
|
-
* `vpc_name` - VPC name given when hosted at the cloud provider.
|
|
142
|
-
|
|
143
116
|
## Dependency
|
|
144
117
|
|
|
145
118
|
This data source depends on apikey set in the provider configuration.
|