pulumi-cloudamqp 3.19.0a1724217936__tar.gz → 3.19.0a1724238815__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.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/PKG-INFO +1 -1
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/pulumi-plugin.json +1 -1
- pulumi_cloudamqp-3.19.0a1724238815/pulumi_cloudamqp/upgrade_rabbitmq.py +498 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp.egg-info/PKG-INFO +1 -1
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pyproject.toml +1 -1
- pulumi_cloudamqp-3.19.0a1724217936/pulumi_cloudamqp/upgrade_rabbitmq.py +0 -236
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/README.md +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/__init__.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/_inputs.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/_utilities.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/account_action.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/alarm.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/config/__init__.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/config/__init__.pyi +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/config/vars.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/custom_domain.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/extra_disk_size.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/get_account.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/get_account_vpcs.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/get_alarm.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/get_credentials.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/get_instance.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/get_nodes.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/get_notification.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/get_plugins.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/get_plugins_community.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/get_upgradable_versions.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/get_vpc_gcp_info.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/get_vpc_info.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/instance.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/integration_aws_eventbridge.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/integration_log.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/integration_metric.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/node_actions.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/notification.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/outputs.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/plugin.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/plugin_community.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/privatelink_aws.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/privatelink_azure.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/provider.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/py.typed +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/rabbit_configuration.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/security_firewall.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/vpc.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/vpc_connect.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/vpc_gcp_peering.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/vpc_peering.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/webhook.py +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp.egg-info/SOURCES.txt +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp.egg-info/dependency_links.txt +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp.egg-info/requires.txt +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp.egg-info/top_level.txt +0 -0
- {pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/setup.cfg +0 -0
|
@@ -0,0 +1,498 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import pulumi
|
|
8
|
+
import pulumi.runtime
|
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
|
+
from . import _utilities
|
|
11
|
+
|
|
12
|
+
__all__ = ['UpgradeRabbitmqArgs', 'UpgradeRabbitmq']
|
|
13
|
+
|
|
14
|
+
@pulumi.input_type
|
|
15
|
+
class UpgradeRabbitmqArgs:
|
|
16
|
+
def __init__(__self__, *,
|
|
17
|
+
instance_id: pulumi.Input[int],
|
|
18
|
+
current_version: Optional[pulumi.Input[str]] = None,
|
|
19
|
+
new_version: Optional[pulumi.Input[str]] = None):
|
|
20
|
+
"""
|
|
21
|
+
The set of arguments for constructing a UpgradeRabbitmq resource.
|
|
22
|
+
:param pulumi.Input[int] instance_id: The CloudAMQP instance identifier
|
|
23
|
+
:param pulumi.Input[str] current_version: Helper argument to change upgrade behaviour to latest possible version
|
|
24
|
+
:param pulumi.Input[str] new_version: The new version to upgrade to
|
|
25
|
+
"""
|
|
26
|
+
pulumi.set(__self__, "instance_id", instance_id)
|
|
27
|
+
if current_version is not None:
|
|
28
|
+
pulumi.set(__self__, "current_version", current_version)
|
|
29
|
+
if new_version is not None:
|
|
30
|
+
pulumi.set(__self__, "new_version", new_version)
|
|
31
|
+
|
|
32
|
+
@property
|
|
33
|
+
@pulumi.getter(name="instanceId")
|
|
34
|
+
def instance_id(self) -> pulumi.Input[int]:
|
|
35
|
+
"""
|
|
36
|
+
The CloudAMQP instance identifier
|
|
37
|
+
"""
|
|
38
|
+
return pulumi.get(self, "instance_id")
|
|
39
|
+
|
|
40
|
+
@instance_id.setter
|
|
41
|
+
def instance_id(self, value: pulumi.Input[int]):
|
|
42
|
+
pulumi.set(self, "instance_id", value)
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
@pulumi.getter(name="currentVersion")
|
|
46
|
+
def current_version(self) -> Optional[pulumi.Input[str]]:
|
|
47
|
+
"""
|
|
48
|
+
Helper argument to change upgrade behaviour to latest possible version
|
|
49
|
+
"""
|
|
50
|
+
return pulumi.get(self, "current_version")
|
|
51
|
+
|
|
52
|
+
@current_version.setter
|
|
53
|
+
def current_version(self, value: Optional[pulumi.Input[str]]):
|
|
54
|
+
pulumi.set(self, "current_version", value)
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
@pulumi.getter(name="newVersion")
|
|
58
|
+
def new_version(self) -> Optional[pulumi.Input[str]]:
|
|
59
|
+
"""
|
|
60
|
+
The new version to upgrade to
|
|
61
|
+
"""
|
|
62
|
+
return pulumi.get(self, "new_version")
|
|
63
|
+
|
|
64
|
+
@new_version.setter
|
|
65
|
+
def new_version(self, value: Optional[pulumi.Input[str]]):
|
|
66
|
+
pulumi.set(self, "new_version", value)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
@pulumi.input_type
|
|
70
|
+
class _UpgradeRabbitmqState:
|
|
71
|
+
def __init__(__self__, *,
|
|
72
|
+
current_version: Optional[pulumi.Input[str]] = None,
|
|
73
|
+
instance_id: Optional[pulumi.Input[int]] = None,
|
|
74
|
+
new_version: Optional[pulumi.Input[str]] = None):
|
|
75
|
+
"""
|
|
76
|
+
Input properties used for looking up and filtering UpgradeRabbitmq resources.
|
|
77
|
+
:param pulumi.Input[str] current_version: Helper argument to change upgrade behaviour to latest possible version
|
|
78
|
+
:param pulumi.Input[int] instance_id: The CloudAMQP instance identifier
|
|
79
|
+
:param pulumi.Input[str] new_version: The new version to upgrade to
|
|
80
|
+
"""
|
|
81
|
+
if current_version is not None:
|
|
82
|
+
pulumi.set(__self__, "current_version", current_version)
|
|
83
|
+
if instance_id is not None:
|
|
84
|
+
pulumi.set(__self__, "instance_id", instance_id)
|
|
85
|
+
if new_version is not None:
|
|
86
|
+
pulumi.set(__self__, "new_version", new_version)
|
|
87
|
+
|
|
88
|
+
@property
|
|
89
|
+
@pulumi.getter(name="currentVersion")
|
|
90
|
+
def current_version(self) -> Optional[pulumi.Input[str]]:
|
|
91
|
+
"""
|
|
92
|
+
Helper argument to change upgrade behaviour to latest possible version
|
|
93
|
+
"""
|
|
94
|
+
return pulumi.get(self, "current_version")
|
|
95
|
+
|
|
96
|
+
@current_version.setter
|
|
97
|
+
def current_version(self, value: Optional[pulumi.Input[str]]):
|
|
98
|
+
pulumi.set(self, "current_version", value)
|
|
99
|
+
|
|
100
|
+
@property
|
|
101
|
+
@pulumi.getter(name="instanceId")
|
|
102
|
+
def instance_id(self) -> Optional[pulumi.Input[int]]:
|
|
103
|
+
"""
|
|
104
|
+
The CloudAMQP instance identifier
|
|
105
|
+
"""
|
|
106
|
+
return pulumi.get(self, "instance_id")
|
|
107
|
+
|
|
108
|
+
@instance_id.setter
|
|
109
|
+
def instance_id(self, value: Optional[pulumi.Input[int]]):
|
|
110
|
+
pulumi.set(self, "instance_id", value)
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
@pulumi.getter(name="newVersion")
|
|
114
|
+
def new_version(self) -> Optional[pulumi.Input[str]]:
|
|
115
|
+
"""
|
|
116
|
+
The new version to upgrade to
|
|
117
|
+
"""
|
|
118
|
+
return pulumi.get(self, "new_version")
|
|
119
|
+
|
|
120
|
+
@new_version.setter
|
|
121
|
+
def new_version(self, value: Optional[pulumi.Input[str]]):
|
|
122
|
+
pulumi.set(self, "new_version", value)
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
class UpgradeRabbitmq(pulumi.CustomResource):
|
|
126
|
+
@overload
|
|
127
|
+
def __init__(__self__,
|
|
128
|
+
resource_name: str,
|
|
129
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
130
|
+
current_version: Optional[pulumi.Input[str]] = None,
|
|
131
|
+
instance_id: Optional[pulumi.Input[int]] = None,
|
|
132
|
+
new_version: Optional[pulumi.Input[str]] = None,
|
|
133
|
+
__props__=None):
|
|
134
|
+
"""
|
|
135
|
+
This resource allows you to upgrade RabbitMQ version. Depending on initial versions of RabbitMQ and Erlang of the CloudAMQP instance, multiple runs may be needed to get to the latest or wanted version. Reason for this is certain supported RabbitMQ version will also automatically upgrade Erlang version.
|
|
136
|
+
|
|
137
|
+
There is three different ways to trigger the version upgrade
|
|
138
|
+
|
|
139
|
+
> - Specify RabbitMQ version to upgrade to
|
|
140
|
+
> - Upgrade to latest RabbitMQ version
|
|
141
|
+
> - Old behaviour to upgrade to latest RabbitMQ version
|
|
142
|
+
|
|
143
|
+
See, below example usage for the difference.
|
|
144
|
+
|
|
145
|
+
Only available for dedicated subscription plans running ***RabbitMQ***.
|
|
146
|
+
|
|
147
|
+
## Example Usage
|
|
148
|
+
|
|
149
|
+
<details>
|
|
150
|
+
<summary>
|
|
151
|
+
<b>
|
|
152
|
+
<i>Specify version upgrade, from v1.40.0</i>
|
|
153
|
+
</b>
|
|
154
|
+
</summary>
|
|
155
|
+
|
|
156
|
+
Specify the version to upgrade to. List available upgradable versions, use [CloudAMQP API](https://docs.cloudamqp.com/cloudamqp_api.html#get-available-versions).
|
|
157
|
+
After the upgrade finished, there can still be newer versions available.
|
|
158
|
+
|
|
159
|
+
```python
|
|
160
|
+
import pulumi
|
|
161
|
+
import pulumi_cloudamqp as cloudamqp
|
|
162
|
+
|
|
163
|
+
instance = cloudamqp.Instance("instance",
|
|
164
|
+
name="rabbitmq-version-upgrade-test",
|
|
165
|
+
plan="bunny-1",
|
|
166
|
+
region="amazon-web-services::us-west-1")
|
|
167
|
+
upgrade = cloudamqp.UpgradeRabbitmq("upgrade",
|
|
168
|
+
instance_id=instance.id,
|
|
169
|
+
new_version="3.13.2")
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
</details>
|
|
173
|
+
|
|
174
|
+
<details>
|
|
175
|
+
<summary>
|
|
176
|
+
<b>
|
|
177
|
+
<i>Upgrade to latest possible version, from v1.40.0</i>
|
|
178
|
+
</b>
|
|
179
|
+
</summary>
|
|
180
|
+
|
|
181
|
+
This will upgrade RabbitMQ to the latest possible version detected by the data source `get_upgradable_versions`.
|
|
182
|
+
Multiple runs can be needed to upgrade the version even further.
|
|
183
|
+
|
|
184
|
+
```python
|
|
185
|
+
import pulumi
|
|
186
|
+
import pulumi_cloudamqp as cloudamqp
|
|
187
|
+
|
|
188
|
+
instance = cloudamqp.Instance("instance",
|
|
189
|
+
name="rabbitmq-version-upgrade-test",
|
|
190
|
+
plan="bunny-1",
|
|
191
|
+
region="amazon-web-services::us-west-1")
|
|
192
|
+
upgradable_versions = instance.id.apply(lambda id: cloudamqp.get_upgradable_versions_output(instance_id=id))
|
|
193
|
+
upgrade = cloudamqp.UpgradeRabbitmq("upgrade",
|
|
194
|
+
instance_id=instance.id,
|
|
195
|
+
current_version=instance.rmq_version,
|
|
196
|
+
new_version=upgradable_versions.new_rabbitmq_version)
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
</details>
|
|
200
|
+
|
|
201
|
+
<details>
|
|
202
|
+
<summary>
|
|
203
|
+
<b>
|
|
204
|
+
<i>Upgrade to latest possible version, before v1.40.0</i>
|
|
205
|
+
</b>
|
|
206
|
+
</summary>
|
|
207
|
+
|
|
208
|
+
Old behaviour of the upgrading the RabbitMQ version. No longer recommended.
|
|
209
|
+
|
|
210
|
+
```python
|
|
211
|
+
import pulumi
|
|
212
|
+
import pulumi_cloudamqp as cloudamqp
|
|
213
|
+
|
|
214
|
+
# Retrieve latest possible upgradable versions for RabbitMQ and Erlang
|
|
215
|
+
versions = cloudamqp.get_upgradable_versions(instance_id=instance["id"])
|
|
216
|
+
# Invoke automatically upgrade to latest possible upgradable versions for RabbitMQ and Erlang
|
|
217
|
+
upgrade = cloudamqp.UpgradeRabbitmq("upgrade", instance_id=instance["id"])
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
```python
|
|
221
|
+
import pulumi
|
|
222
|
+
import pulumi_cloudamqp as cloudamqp
|
|
223
|
+
|
|
224
|
+
# Retrieve latest possible upgradable versions for RabbitMQ and Erlang
|
|
225
|
+
versions = cloudamqp.get_upgradable_versions(instance_id=instance["id"])
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
If newer version is still available to be upgradable in the data source, re-run again.
|
|
229
|
+
|
|
230
|
+
```python
|
|
231
|
+
import pulumi
|
|
232
|
+
import pulumi_cloudamqp as cloudamqp
|
|
233
|
+
|
|
234
|
+
# Retrieve latest possible upgradable versions for RabbitMQ and Erlang
|
|
235
|
+
versions = cloudamqp.get_upgradable_versions(instance_id=instance["id"])
|
|
236
|
+
# Invoke automatically upgrade to latest possible upgradable versions for RabbitMQ and Erlang
|
|
237
|
+
upgrade = cloudamqp.UpgradeRabbitmq("upgrade", instance_id=instance["id"])
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
</details>
|
|
241
|
+
|
|
242
|
+
## Important Upgrade Information
|
|
243
|
+
|
|
244
|
+
> - All single node upgrades will require some downtime since RabbitMQ needs a restart.
|
|
245
|
+
> - From RabbitMQ version 3.9, rolling upgrades between minor versions (e.g. 3.9 to 3.10), in a multi-node cluster are possible without downtime. This means that one node is upgraded at a time while the other nodes are still running. For versions older than 3.9, patch version upgrades (e.g. 3.8.x to 3.8.y) are possible without downtime in a multi-node cluster, but minor version upgrades will require downtime.
|
|
246
|
+
> - Auto delete queues (queues that are marked AD) will be deleted during the update.
|
|
247
|
+
> - Any custom plugins support has installed on your behalf will be disabled and you need to contact support@cloudamqp.com and ask to have them re-installed.
|
|
248
|
+
> - TLS 1.0 and 1.1 will not be supported after the update.
|
|
249
|
+
|
|
250
|
+
## Multiple runs
|
|
251
|
+
|
|
252
|
+
Depending on initial versions of RabbitMQ and Erlang of the CloudAMQP instance, multiple runs may be needed to get to the latest or wanted version.
|
|
253
|
+
|
|
254
|
+
Example steps needed when starting at RabbitMQ version 3.12.2
|
|
255
|
+
|
|
256
|
+
| Version | Supported upgrading versions | Min version to upgrade Erlang |
|
|
257
|
+
|------------------|-------------------------------------------|-------------------------------|
|
|
258
|
+
| 3.12.2 | 3.12.4, 3.12.6, 3.12.10, 3.12.12, 3.12.13 | 3.12.13 |
|
|
259
|
+
| 3.12.13 | 3.13.2 | 3.13.2 |
|
|
260
|
+
| 3.13.2 | - | - |
|
|
261
|
+
|
|
262
|
+
## Import
|
|
263
|
+
|
|
264
|
+
Not possible to import this resource.
|
|
265
|
+
|
|
266
|
+
:param str resource_name: The name of the resource.
|
|
267
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
268
|
+
:param pulumi.Input[str] current_version: Helper argument to change upgrade behaviour to latest possible version
|
|
269
|
+
:param pulumi.Input[int] instance_id: The CloudAMQP instance identifier
|
|
270
|
+
:param pulumi.Input[str] new_version: The new version to upgrade to
|
|
271
|
+
"""
|
|
272
|
+
...
|
|
273
|
+
@overload
|
|
274
|
+
def __init__(__self__,
|
|
275
|
+
resource_name: str,
|
|
276
|
+
args: UpgradeRabbitmqArgs,
|
|
277
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
278
|
+
"""
|
|
279
|
+
This resource allows you to upgrade RabbitMQ version. Depending on initial versions of RabbitMQ and Erlang of the CloudAMQP instance, multiple runs may be needed to get to the latest or wanted version. Reason for this is certain supported RabbitMQ version will also automatically upgrade Erlang version.
|
|
280
|
+
|
|
281
|
+
There is three different ways to trigger the version upgrade
|
|
282
|
+
|
|
283
|
+
> - Specify RabbitMQ version to upgrade to
|
|
284
|
+
> - Upgrade to latest RabbitMQ version
|
|
285
|
+
> - Old behaviour to upgrade to latest RabbitMQ version
|
|
286
|
+
|
|
287
|
+
See, below example usage for the difference.
|
|
288
|
+
|
|
289
|
+
Only available for dedicated subscription plans running ***RabbitMQ***.
|
|
290
|
+
|
|
291
|
+
## Example Usage
|
|
292
|
+
|
|
293
|
+
<details>
|
|
294
|
+
<summary>
|
|
295
|
+
<b>
|
|
296
|
+
<i>Specify version upgrade, from v1.40.0</i>
|
|
297
|
+
</b>
|
|
298
|
+
</summary>
|
|
299
|
+
|
|
300
|
+
Specify the version to upgrade to. List available upgradable versions, use [CloudAMQP API](https://docs.cloudamqp.com/cloudamqp_api.html#get-available-versions).
|
|
301
|
+
After the upgrade finished, there can still be newer versions available.
|
|
302
|
+
|
|
303
|
+
```python
|
|
304
|
+
import pulumi
|
|
305
|
+
import pulumi_cloudamqp as cloudamqp
|
|
306
|
+
|
|
307
|
+
instance = cloudamqp.Instance("instance",
|
|
308
|
+
name="rabbitmq-version-upgrade-test",
|
|
309
|
+
plan="bunny-1",
|
|
310
|
+
region="amazon-web-services::us-west-1")
|
|
311
|
+
upgrade = cloudamqp.UpgradeRabbitmq("upgrade",
|
|
312
|
+
instance_id=instance.id,
|
|
313
|
+
new_version="3.13.2")
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
</details>
|
|
317
|
+
|
|
318
|
+
<details>
|
|
319
|
+
<summary>
|
|
320
|
+
<b>
|
|
321
|
+
<i>Upgrade to latest possible version, from v1.40.0</i>
|
|
322
|
+
</b>
|
|
323
|
+
</summary>
|
|
324
|
+
|
|
325
|
+
This will upgrade RabbitMQ to the latest possible version detected by the data source `get_upgradable_versions`.
|
|
326
|
+
Multiple runs can be needed to upgrade the version even further.
|
|
327
|
+
|
|
328
|
+
```python
|
|
329
|
+
import pulumi
|
|
330
|
+
import pulumi_cloudamqp as cloudamqp
|
|
331
|
+
|
|
332
|
+
instance = cloudamqp.Instance("instance",
|
|
333
|
+
name="rabbitmq-version-upgrade-test",
|
|
334
|
+
plan="bunny-1",
|
|
335
|
+
region="amazon-web-services::us-west-1")
|
|
336
|
+
upgradable_versions = instance.id.apply(lambda id: cloudamqp.get_upgradable_versions_output(instance_id=id))
|
|
337
|
+
upgrade = cloudamqp.UpgradeRabbitmq("upgrade",
|
|
338
|
+
instance_id=instance.id,
|
|
339
|
+
current_version=instance.rmq_version,
|
|
340
|
+
new_version=upgradable_versions.new_rabbitmq_version)
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
</details>
|
|
344
|
+
|
|
345
|
+
<details>
|
|
346
|
+
<summary>
|
|
347
|
+
<b>
|
|
348
|
+
<i>Upgrade to latest possible version, before v1.40.0</i>
|
|
349
|
+
</b>
|
|
350
|
+
</summary>
|
|
351
|
+
|
|
352
|
+
Old behaviour of the upgrading the RabbitMQ version. No longer recommended.
|
|
353
|
+
|
|
354
|
+
```python
|
|
355
|
+
import pulumi
|
|
356
|
+
import pulumi_cloudamqp as cloudamqp
|
|
357
|
+
|
|
358
|
+
# Retrieve latest possible upgradable versions for RabbitMQ and Erlang
|
|
359
|
+
versions = cloudamqp.get_upgradable_versions(instance_id=instance["id"])
|
|
360
|
+
# Invoke automatically upgrade to latest possible upgradable versions for RabbitMQ and Erlang
|
|
361
|
+
upgrade = cloudamqp.UpgradeRabbitmq("upgrade", instance_id=instance["id"])
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
```python
|
|
365
|
+
import pulumi
|
|
366
|
+
import pulumi_cloudamqp as cloudamqp
|
|
367
|
+
|
|
368
|
+
# Retrieve latest possible upgradable versions for RabbitMQ and Erlang
|
|
369
|
+
versions = cloudamqp.get_upgradable_versions(instance_id=instance["id"])
|
|
370
|
+
```
|
|
371
|
+
|
|
372
|
+
If newer version is still available to be upgradable in the data source, re-run again.
|
|
373
|
+
|
|
374
|
+
```python
|
|
375
|
+
import pulumi
|
|
376
|
+
import pulumi_cloudamqp as cloudamqp
|
|
377
|
+
|
|
378
|
+
# Retrieve latest possible upgradable versions for RabbitMQ and Erlang
|
|
379
|
+
versions = cloudamqp.get_upgradable_versions(instance_id=instance["id"])
|
|
380
|
+
# Invoke automatically upgrade to latest possible upgradable versions for RabbitMQ and Erlang
|
|
381
|
+
upgrade = cloudamqp.UpgradeRabbitmq("upgrade", instance_id=instance["id"])
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
</details>
|
|
385
|
+
|
|
386
|
+
## Important Upgrade Information
|
|
387
|
+
|
|
388
|
+
> - All single node upgrades will require some downtime since RabbitMQ needs a restart.
|
|
389
|
+
> - From RabbitMQ version 3.9, rolling upgrades between minor versions (e.g. 3.9 to 3.10), in a multi-node cluster are possible without downtime. This means that one node is upgraded at a time while the other nodes are still running. For versions older than 3.9, patch version upgrades (e.g. 3.8.x to 3.8.y) are possible without downtime in a multi-node cluster, but minor version upgrades will require downtime.
|
|
390
|
+
> - Auto delete queues (queues that are marked AD) will be deleted during the update.
|
|
391
|
+
> - Any custom plugins support has installed on your behalf will be disabled and you need to contact support@cloudamqp.com and ask to have them re-installed.
|
|
392
|
+
> - TLS 1.0 and 1.1 will not be supported after the update.
|
|
393
|
+
|
|
394
|
+
## Multiple runs
|
|
395
|
+
|
|
396
|
+
Depending on initial versions of RabbitMQ and Erlang of the CloudAMQP instance, multiple runs may be needed to get to the latest or wanted version.
|
|
397
|
+
|
|
398
|
+
Example steps needed when starting at RabbitMQ version 3.12.2
|
|
399
|
+
|
|
400
|
+
| Version | Supported upgrading versions | Min version to upgrade Erlang |
|
|
401
|
+
|------------------|-------------------------------------------|-------------------------------|
|
|
402
|
+
| 3.12.2 | 3.12.4, 3.12.6, 3.12.10, 3.12.12, 3.12.13 | 3.12.13 |
|
|
403
|
+
| 3.12.13 | 3.13.2 | 3.13.2 |
|
|
404
|
+
| 3.13.2 | - | - |
|
|
405
|
+
|
|
406
|
+
## Import
|
|
407
|
+
|
|
408
|
+
Not possible to import this resource.
|
|
409
|
+
|
|
410
|
+
:param str resource_name: The name of the resource.
|
|
411
|
+
:param UpgradeRabbitmqArgs args: The arguments to use to populate this resource's properties.
|
|
412
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
413
|
+
"""
|
|
414
|
+
...
|
|
415
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
416
|
+
resource_args, opts = _utilities.get_resource_args_opts(UpgradeRabbitmqArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
417
|
+
if resource_args is not None:
|
|
418
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
419
|
+
else:
|
|
420
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
421
|
+
|
|
422
|
+
def _internal_init(__self__,
|
|
423
|
+
resource_name: str,
|
|
424
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
425
|
+
current_version: Optional[pulumi.Input[str]] = None,
|
|
426
|
+
instance_id: Optional[pulumi.Input[int]] = None,
|
|
427
|
+
new_version: Optional[pulumi.Input[str]] = None,
|
|
428
|
+
__props__=None):
|
|
429
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
430
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
431
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
432
|
+
if opts.id is None:
|
|
433
|
+
if __props__ is not None:
|
|
434
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
435
|
+
__props__ = UpgradeRabbitmqArgs.__new__(UpgradeRabbitmqArgs)
|
|
436
|
+
|
|
437
|
+
__props__.__dict__["current_version"] = current_version
|
|
438
|
+
if instance_id is None and not opts.urn:
|
|
439
|
+
raise TypeError("Missing required property 'instance_id'")
|
|
440
|
+
__props__.__dict__["instance_id"] = instance_id
|
|
441
|
+
__props__.__dict__["new_version"] = new_version
|
|
442
|
+
super(UpgradeRabbitmq, __self__).__init__(
|
|
443
|
+
'cloudamqp:index/upgradeRabbitmq:UpgradeRabbitmq',
|
|
444
|
+
resource_name,
|
|
445
|
+
__props__,
|
|
446
|
+
opts)
|
|
447
|
+
|
|
448
|
+
@staticmethod
|
|
449
|
+
def get(resource_name: str,
|
|
450
|
+
id: pulumi.Input[str],
|
|
451
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
452
|
+
current_version: Optional[pulumi.Input[str]] = None,
|
|
453
|
+
instance_id: Optional[pulumi.Input[int]] = None,
|
|
454
|
+
new_version: Optional[pulumi.Input[str]] = None) -> 'UpgradeRabbitmq':
|
|
455
|
+
"""
|
|
456
|
+
Get an existing UpgradeRabbitmq resource's state with the given name, id, and optional extra
|
|
457
|
+
properties used to qualify the lookup.
|
|
458
|
+
|
|
459
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
460
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
461
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
462
|
+
:param pulumi.Input[str] current_version: Helper argument to change upgrade behaviour to latest possible version
|
|
463
|
+
:param pulumi.Input[int] instance_id: The CloudAMQP instance identifier
|
|
464
|
+
:param pulumi.Input[str] new_version: The new version to upgrade to
|
|
465
|
+
"""
|
|
466
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
467
|
+
|
|
468
|
+
__props__ = _UpgradeRabbitmqState.__new__(_UpgradeRabbitmqState)
|
|
469
|
+
|
|
470
|
+
__props__.__dict__["current_version"] = current_version
|
|
471
|
+
__props__.__dict__["instance_id"] = instance_id
|
|
472
|
+
__props__.__dict__["new_version"] = new_version
|
|
473
|
+
return UpgradeRabbitmq(resource_name, opts=opts, __props__=__props__)
|
|
474
|
+
|
|
475
|
+
@property
|
|
476
|
+
@pulumi.getter(name="currentVersion")
|
|
477
|
+
def current_version(self) -> pulumi.Output[Optional[str]]:
|
|
478
|
+
"""
|
|
479
|
+
Helper argument to change upgrade behaviour to latest possible version
|
|
480
|
+
"""
|
|
481
|
+
return pulumi.get(self, "current_version")
|
|
482
|
+
|
|
483
|
+
@property
|
|
484
|
+
@pulumi.getter(name="instanceId")
|
|
485
|
+
def instance_id(self) -> pulumi.Output[int]:
|
|
486
|
+
"""
|
|
487
|
+
The CloudAMQP instance identifier
|
|
488
|
+
"""
|
|
489
|
+
return pulumi.get(self, "instance_id")
|
|
490
|
+
|
|
491
|
+
@property
|
|
492
|
+
@pulumi.getter(name="newVersion")
|
|
493
|
+
def new_version(self) -> pulumi.Output[Optional[str]]:
|
|
494
|
+
"""
|
|
495
|
+
The new version to upgrade to
|
|
496
|
+
"""
|
|
497
|
+
return pulumi.get(self, "new_version")
|
|
498
|
+
|
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
-
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
-
|
|
5
|
-
import copy
|
|
6
|
-
import warnings
|
|
7
|
-
import pulumi
|
|
8
|
-
import pulumi.runtime
|
|
9
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
|
-
from . import _utilities
|
|
11
|
-
|
|
12
|
-
__all__ = ['UpgradeRabbitmqArgs', 'UpgradeRabbitmq']
|
|
13
|
-
|
|
14
|
-
@pulumi.input_type
|
|
15
|
-
class UpgradeRabbitmqArgs:
|
|
16
|
-
def __init__(__self__, *,
|
|
17
|
-
instance_id: pulumi.Input[int]):
|
|
18
|
-
"""
|
|
19
|
-
The set of arguments for constructing a UpgradeRabbitmq resource.
|
|
20
|
-
:param pulumi.Input[int] instance_id: The CloudAMQP instance identifier
|
|
21
|
-
"""
|
|
22
|
-
pulumi.set(__self__, "instance_id", instance_id)
|
|
23
|
-
|
|
24
|
-
@property
|
|
25
|
-
@pulumi.getter(name="instanceId")
|
|
26
|
-
def instance_id(self) -> pulumi.Input[int]:
|
|
27
|
-
"""
|
|
28
|
-
The CloudAMQP instance identifier
|
|
29
|
-
"""
|
|
30
|
-
return pulumi.get(self, "instance_id")
|
|
31
|
-
|
|
32
|
-
@instance_id.setter
|
|
33
|
-
def instance_id(self, value: pulumi.Input[int]):
|
|
34
|
-
pulumi.set(self, "instance_id", value)
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
@pulumi.input_type
|
|
38
|
-
class _UpgradeRabbitmqState:
|
|
39
|
-
def __init__(__self__, *,
|
|
40
|
-
instance_id: Optional[pulumi.Input[int]] = None):
|
|
41
|
-
"""
|
|
42
|
-
Input properties used for looking up and filtering UpgradeRabbitmq resources.
|
|
43
|
-
:param pulumi.Input[int] instance_id: The CloudAMQP instance identifier
|
|
44
|
-
"""
|
|
45
|
-
if instance_id is not None:
|
|
46
|
-
pulumi.set(__self__, "instance_id", instance_id)
|
|
47
|
-
|
|
48
|
-
@property
|
|
49
|
-
@pulumi.getter(name="instanceId")
|
|
50
|
-
def instance_id(self) -> Optional[pulumi.Input[int]]:
|
|
51
|
-
"""
|
|
52
|
-
The CloudAMQP instance identifier
|
|
53
|
-
"""
|
|
54
|
-
return pulumi.get(self, "instance_id")
|
|
55
|
-
|
|
56
|
-
@instance_id.setter
|
|
57
|
-
def instance_id(self, value: Optional[pulumi.Input[int]]):
|
|
58
|
-
pulumi.set(self, "instance_id", value)
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
class UpgradeRabbitmq(pulumi.CustomResource):
|
|
62
|
-
@overload
|
|
63
|
-
def __init__(__self__,
|
|
64
|
-
resource_name: str,
|
|
65
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
|
66
|
-
instance_id: Optional[pulumi.Input[int]] = None,
|
|
67
|
-
__props__=None):
|
|
68
|
-
"""
|
|
69
|
-
This resource allows you to automatically upgrade to the latest possible upgradable versions for RabbitMQ and Erlang. Depending on initial versions of RabbitMQ and Erlang of the CloudAMQP instance, multiple runs may be needed to get to the latest versions. After completed upgrade, check data source `get_upgradable_versions` to see if newer versions is available. Then delete `UpgradeRabbitmq` and create it again to invoke the upgrade.
|
|
70
|
-
|
|
71
|
-
> **Important Upgrade Information**
|
|
72
|
-
> - All single node upgrades will require some downtime since RabbitMQ needs a restart.
|
|
73
|
-
> - From RabbitMQ version 3.9, rolling upgrades between minor versions (e.g. 3.9 to 3.10), in a multi-node cluster are possible without downtime. This means that one node is upgraded at a time while the other nodes are still running. For versions older than 3.9, patch version upgrades (e.g. 3.8.x to 3.8.y) are possible without downtime in a multi-node cluster, but minor version upgrades will require downtime.
|
|
74
|
-
> - Auto delete queues (queues that are marked AD) will be deleted during the update.
|
|
75
|
-
> - Any custom plugins support has installed on your behalf will be disabled and you need to contact support@cloudamqp.com and ask to have them re-installed.
|
|
76
|
-
> - TLS 1.0 and 1.1 will not be supported after the update.
|
|
77
|
-
|
|
78
|
-
Only available for dedicated subscription plans running ***RabbitMQ***.
|
|
79
|
-
|
|
80
|
-
## Example Usage
|
|
81
|
-
|
|
82
|
-
```python
|
|
83
|
-
import pulumi
|
|
84
|
-
import pulumi_cloudamqp as cloudamqp
|
|
85
|
-
|
|
86
|
-
# Retrieve latest possible upgradable versions for RabbitMQ and Erlang
|
|
87
|
-
versions = cloudamqp.get_upgradable_versions(instance_id=instance["id"])
|
|
88
|
-
# Invoke automatically upgrade to latest possible upgradable versions for RabbitMQ and Erlang
|
|
89
|
-
upgrade = cloudamqp.UpgradeRabbitmq("upgrade", instance_id=instance["id"])
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
```python
|
|
93
|
-
import pulumi
|
|
94
|
-
import pulumi_cloudamqp as cloudamqp
|
|
95
|
-
|
|
96
|
-
# Retrieve latest possible upgradable versions for RabbitMQ and Erlang
|
|
97
|
-
versions = cloudamqp.get_upgradable_versions(instance_id=instance["id"])
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
If newer version is still available to be upgradable in the data source, re-run again.
|
|
101
|
-
|
|
102
|
-
```python
|
|
103
|
-
import pulumi
|
|
104
|
-
import pulumi_cloudamqp as cloudamqp
|
|
105
|
-
|
|
106
|
-
# Retrieve latest possible upgradable versions for RabbitMQ and Erlang
|
|
107
|
-
versions = cloudamqp.get_upgradable_versions(instance_id=instance["id"])
|
|
108
|
-
# Invoke automatically upgrade to latest possible upgradable versions for RabbitMQ and Erlang
|
|
109
|
-
upgrade = cloudamqp.UpgradeRabbitmq("upgrade", instance_id=instance["id"])
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
## Import
|
|
113
|
-
|
|
114
|
-
Not possible to import this resource.
|
|
115
|
-
|
|
116
|
-
:param str resource_name: The name of the resource.
|
|
117
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
118
|
-
:param pulumi.Input[int] instance_id: The CloudAMQP instance identifier
|
|
119
|
-
"""
|
|
120
|
-
...
|
|
121
|
-
@overload
|
|
122
|
-
def __init__(__self__,
|
|
123
|
-
resource_name: str,
|
|
124
|
-
args: UpgradeRabbitmqArgs,
|
|
125
|
-
opts: Optional[pulumi.ResourceOptions] = None):
|
|
126
|
-
"""
|
|
127
|
-
This resource allows you to automatically upgrade to the latest possible upgradable versions for RabbitMQ and Erlang. Depending on initial versions of RabbitMQ and Erlang of the CloudAMQP instance, multiple runs may be needed to get to the latest versions. After completed upgrade, check data source `get_upgradable_versions` to see if newer versions is available. Then delete `UpgradeRabbitmq` and create it again to invoke the upgrade.
|
|
128
|
-
|
|
129
|
-
> **Important Upgrade Information**
|
|
130
|
-
> - All single node upgrades will require some downtime since RabbitMQ needs a restart.
|
|
131
|
-
> - From RabbitMQ version 3.9, rolling upgrades between minor versions (e.g. 3.9 to 3.10), in a multi-node cluster are possible without downtime. This means that one node is upgraded at a time while the other nodes are still running. For versions older than 3.9, patch version upgrades (e.g. 3.8.x to 3.8.y) are possible without downtime in a multi-node cluster, but minor version upgrades will require downtime.
|
|
132
|
-
> - Auto delete queues (queues that are marked AD) will be deleted during the update.
|
|
133
|
-
> - Any custom plugins support has installed on your behalf will be disabled and you need to contact support@cloudamqp.com and ask to have them re-installed.
|
|
134
|
-
> - TLS 1.0 and 1.1 will not be supported after the update.
|
|
135
|
-
|
|
136
|
-
Only available for dedicated subscription plans running ***RabbitMQ***.
|
|
137
|
-
|
|
138
|
-
## Example Usage
|
|
139
|
-
|
|
140
|
-
```python
|
|
141
|
-
import pulumi
|
|
142
|
-
import pulumi_cloudamqp as cloudamqp
|
|
143
|
-
|
|
144
|
-
# Retrieve latest possible upgradable versions for RabbitMQ and Erlang
|
|
145
|
-
versions = cloudamqp.get_upgradable_versions(instance_id=instance["id"])
|
|
146
|
-
# Invoke automatically upgrade to latest possible upgradable versions for RabbitMQ and Erlang
|
|
147
|
-
upgrade = cloudamqp.UpgradeRabbitmq("upgrade", instance_id=instance["id"])
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
```python
|
|
151
|
-
import pulumi
|
|
152
|
-
import pulumi_cloudamqp as cloudamqp
|
|
153
|
-
|
|
154
|
-
# Retrieve latest possible upgradable versions for RabbitMQ and Erlang
|
|
155
|
-
versions = cloudamqp.get_upgradable_versions(instance_id=instance["id"])
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
If newer version is still available to be upgradable in the data source, re-run again.
|
|
159
|
-
|
|
160
|
-
```python
|
|
161
|
-
import pulumi
|
|
162
|
-
import pulumi_cloudamqp as cloudamqp
|
|
163
|
-
|
|
164
|
-
# Retrieve latest possible upgradable versions for RabbitMQ and Erlang
|
|
165
|
-
versions = cloudamqp.get_upgradable_versions(instance_id=instance["id"])
|
|
166
|
-
# Invoke automatically upgrade to latest possible upgradable versions for RabbitMQ and Erlang
|
|
167
|
-
upgrade = cloudamqp.UpgradeRabbitmq("upgrade", instance_id=instance["id"])
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
## Import
|
|
171
|
-
|
|
172
|
-
Not possible to import this resource.
|
|
173
|
-
|
|
174
|
-
:param str resource_name: The name of the resource.
|
|
175
|
-
:param UpgradeRabbitmqArgs args: The arguments to use to populate this resource's properties.
|
|
176
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
177
|
-
"""
|
|
178
|
-
...
|
|
179
|
-
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
180
|
-
resource_args, opts = _utilities.get_resource_args_opts(UpgradeRabbitmqArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
181
|
-
if resource_args is not None:
|
|
182
|
-
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
183
|
-
else:
|
|
184
|
-
__self__._internal_init(resource_name, *args, **kwargs)
|
|
185
|
-
|
|
186
|
-
def _internal_init(__self__,
|
|
187
|
-
resource_name: str,
|
|
188
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
|
189
|
-
instance_id: Optional[pulumi.Input[int]] = None,
|
|
190
|
-
__props__=None):
|
|
191
|
-
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
192
|
-
if not isinstance(opts, pulumi.ResourceOptions):
|
|
193
|
-
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
194
|
-
if opts.id is None:
|
|
195
|
-
if __props__ is not None:
|
|
196
|
-
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
197
|
-
__props__ = UpgradeRabbitmqArgs.__new__(UpgradeRabbitmqArgs)
|
|
198
|
-
|
|
199
|
-
if instance_id is None and not opts.urn:
|
|
200
|
-
raise TypeError("Missing required property 'instance_id'")
|
|
201
|
-
__props__.__dict__["instance_id"] = instance_id
|
|
202
|
-
super(UpgradeRabbitmq, __self__).__init__(
|
|
203
|
-
'cloudamqp:index/upgradeRabbitmq:UpgradeRabbitmq',
|
|
204
|
-
resource_name,
|
|
205
|
-
__props__,
|
|
206
|
-
opts)
|
|
207
|
-
|
|
208
|
-
@staticmethod
|
|
209
|
-
def get(resource_name: str,
|
|
210
|
-
id: pulumi.Input[str],
|
|
211
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
|
212
|
-
instance_id: Optional[pulumi.Input[int]] = None) -> 'UpgradeRabbitmq':
|
|
213
|
-
"""
|
|
214
|
-
Get an existing UpgradeRabbitmq resource's state with the given name, id, and optional extra
|
|
215
|
-
properties used to qualify the lookup.
|
|
216
|
-
|
|
217
|
-
:param str resource_name: The unique name of the resulting resource.
|
|
218
|
-
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
219
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
220
|
-
:param pulumi.Input[int] instance_id: The CloudAMQP instance identifier
|
|
221
|
-
"""
|
|
222
|
-
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
223
|
-
|
|
224
|
-
__props__ = _UpgradeRabbitmqState.__new__(_UpgradeRabbitmqState)
|
|
225
|
-
|
|
226
|
-
__props__.__dict__["instance_id"] = instance_id
|
|
227
|
-
return UpgradeRabbitmq(resource_name, opts=opts, __props__=__props__)
|
|
228
|
-
|
|
229
|
-
@property
|
|
230
|
-
@pulumi.getter(name="instanceId")
|
|
231
|
-
def instance_id(self) -> pulumi.Output[int]:
|
|
232
|
-
"""
|
|
233
|
-
The CloudAMQP instance identifier
|
|
234
|
-
"""
|
|
235
|
-
return pulumi.get(self, "instance_id")
|
|
236
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/alarm.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/plugin.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/py.typed
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulumi_cloudamqp-3.19.0a1724217936 → pulumi_cloudamqp-3.19.0a1724238815}/pulumi_cloudamqp/vpc.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|