@pulumi/cloudamqp 3.26.1 → 3.27.0-alpha.1770934853
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.
- package/alarm.d.ts +120 -12
- package/alarm.js +120 -12
- package/alarm.js.map +1 -1
- package/config/vars.d.ts +3 -0
- package/config/vars.js.map +1 -1
- package/customDomain.d.ts +0 -26
- package/customDomain.js +0 -26
- package/customDomain.js.map +1 -1
- package/extraDiskSize.d.ts +0 -1
- package/extraDiskSize.js +0 -1
- package/extraDiskSize.js.map +1 -1
- package/getVpcGcpInfo.d.ts +108 -0
- package/getVpcGcpInfo.js +108 -0
- package/getVpcGcpInfo.js.map +1 -1
- package/getVpcInfo.d.ts +108 -0
- package/getVpcInfo.js +108 -0
- package/getVpcInfo.js.map +1 -1
- package/instance.d.ts +0 -24
- package/instance.js +0 -24
- package/instance.js.map +1 -1
- package/integrationAwsEventbridge.d.ts +0 -34
- package/integrationAwsEventbridge.js +0 -34
- package/integrationAwsEventbridge.js.map +1 -1
- package/integrationLog.d.ts +0 -44
- package/integrationLog.js +0 -44
- package/integrationLog.js.map +1 -1
- package/integrationMetric.d.ts +0 -34
- package/integrationMetric.js +0 -34
- package/integrationMetric.js.map +1 -1
- package/integrationMetricPrometheus.d.ts +2 -40
- package/integrationMetricPrometheus.js +2 -40
- package/integrationMetricPrometheus.js.map +1 -1
- package/maintenanceWindow.d.ts +0 -28
- package/maintenanceWindow.js +0 -28
- package/maintenanceWindow.js.map +1 -1
- package/notification.d.ts +0 -28
- package/notification.js +0 -28
- package/notification.js.map +1 -1
- package/oauth2Configuration.d.ts +0 -22
- package/oauth2Configuration.js +0 -22
- package/oauth2Configuration.js.map +1 -1
- package/package.json +2 -2
- package/plugin.d.ts +128 -13
- package/plugin.js +128 -13
- package/plugin.js.map +1 -1
- package/pluginCommunity.d.ts +50 -14
- package/pluginCommunity.js +50 -14
- package/pluginCommunity.js.map +1 -1
- package/privatelinkAws.d.ts +139 -12
- package/privatelinkAws.js +139 -12
- package/privatelinkAws.js.map +1 -1
- package/privatelinkAzure.d.ts +138 -13
- package/privatelinkAzure.js +138 -13
- package/privatelinkAzure.js.map +1 -1
- package/provider.d.ts +3 -0
- package/rabbitConfiguration.d.ts +293 -12
- package/rabbitConfiguration.js +293 -12
- package/rabbitConfiguration.js.map +1 -1
- package/securityFirewall.d.ts +157 -12
- package/securityFirewall.js +157 -12
- package/securityFirewall.js.map +1 -1
- package/trustStore.d.ts +0 -24
- package/trustStore.js +0 -24
- package/trustStore.js.map +1 -1
- package/upgradeLavinmq.d.ts +41 -0
- package/upgradeLavinmq.js +41 -0
- package/upgradeLavinmq.js.map +1 -1
- package/upgradeRabbitmq.d.ts +152 -0
- package/upgradeRabbitmq.js +152 -0
- package/upgradeRabbitmq.js.map +1 -1
- package/vpc.d.ts +0 -28
- package/vpc.js +0 -28
- package/vpc.js.map +1 -1
- package/vpcConnect.d.ts +220 -12
- package/vpcConnect.js +220 -12
- package/vpcConnect.js.map +1 -1
- package/vpcGcpPeering.d.ts +252 -6
- package/vpcGcpPeering.js +252 -6
- package/vpcGcpPeering.js.map +1 -1
- package/vpcPeering.d.ts +305 -5
- package/vpcPeering.js +305 -5
- package/vpcPeering.js.map +1 -1
- package/webhook.d.ts +94 -12
- package/webhook.js +94 -12
- package/webhook.js.map +1 -1
package/rabbitConfiguration.d.ts
CHANGED
|
@@ -1,28 +1,309 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* This resource allows you update RabbitMQ config.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* Only available for dedicated subscription plans running ***RabbitMQ***.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* ## Example Usage
|
|
8
8
|
*
|
|
9
|
-
*
|
|
9
|
+
* <details>
|
|
10
|
+
* <summary>
|
|
11
|
+
* <b>
|
|
12
|
+
* <i>RabbitMQ configuration and using 0 values</i>
|
|
13
|
+
* </b>
|
|
14
|
+
* </summary>
|
|
10
15
|
*
|
|
11
|
-
*
|
|
16
|
+
* From [v1.35.0] and migrating this resource to Terraform plugin Framework.
|
|
17
|
+
* It's now possible to use 0 values in the configuration.
|
|
12
18
|
*
|
|
13
|
-
*
|
|
19
|
+
* ```typescript
|
|
20
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
21
|
+
* import * as cloudamqp from "@pulumi/cloudamqp";
|
|
14
22
|
*
|
|
15
|
-
*
|
|
23
|
+
* const rabbitmqConfig = new cloudamqp.RabbitConfiguration("rabbitmq_config", {
|
|
24
|
+
* instanceId: instance.id,
|
|
25
|
+
* heartbeat: 0,
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* </details>
|
|
30
|
+
*
|
|
31
|
+
* <details>
|
|
32
|
+
* <summary>
|
|
33
|
+
* <b>
|
|
34
|
+
* <i>RabbitMQ configuration with default values</i>
|
|
35
|
+
* </b>
|
|
36
|
+
* </summary>
|
|
37
|
+
*
|
|
38
|
+
* ```typescript
|
|
39
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
40
|
+
* import * as cloudamqp from "@pulumi/cloudamqp";
|
|
41
|
+
*
|
|
42
|
+
* const rabbitmqConfig = new cloudamqp.RabbitConfiguration("rabbitmq_config", {
|
|
43
|
+
* instanceId: instance.id,
|
|
44
|
+
* channelMax: 0,
|
|
45
|
+
* connectionMax: -1,
|
|
46
|
+
* consumerTimeout: 7200000,
|
|
47
|
+
* heartbeat: 120,
|
|
48
|
+
* logExchangeLevel: "error",
|
|
49
|
+
* maxMessageSize: 134217728,
|
|
50
|
+
* queueIndexEmbedMsgsBelow: 4096,
|
|
51
|
+
* vmMemoryHighWatermark: 0.81,
|
|
52
|
+
* clusterPartitionHandling: "autoheal",
|
|
53
|
+
* });
|
|
54
|
+
* ```
|
|
16
55
|
*
|
|
17
|
-
*
|
|
56
|
+
* </details>
|
|
18
57
|
*
|
|
19
|
-
*
|
|
58
|
+
* <details>
|
|
59
|
+
* <summary>
|
|
60
|
+
* <b>
|
|
61
|
+
* <i>Change log level and combine `cloudamqp.NodeActions` for RabbitMQ restart</i>
|
|
62
|
+
* </b>
|
|
63
|
+
* </summary>
|
|
20
64
|
*
|
|
21
|
-
*
|
|
65
|
+
* ```typescript
|
|
66
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
67
|
+
* import * as cloudamqp from "@pulumi/cloudamqp";
|
|
22
68
|
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
69
|
+
* const rabbitmqConfig = new cloudamqp.RabbitConfiguration("rabbitmq_config", {
|
|
70
|
+
* instanceId: instance.id,
|
|
71
|
+
* channelMax: 0,
|
|
72
|
+
* connectionMax: -1,
|
|
73
|
+
* consumerTimeout: 7200000,
|
|
74
|
+
* heartbeat: 120,
|
|
75
|
+
* logExchangeLevel: "info",
|
|
76
|
+
* maxMessageSize: 134217728,
|
|
77
|
+
* queueIndexEmbedMsgsBelow: 4096,
|
|
78
|
+
* vmMemoryHighWatermark: 0.81,
|
|
79
|
+
* clusterPartitionHandling: "autoheal",
|
|
80
|
+
* });
|
|
81
|
+
* const listNodes = cloudamqp.getNodes({
|
|
82
|
+
* instanceId: instance.id,
|
|
83
|
+
* });
|
|
84
|
+
* const nodeAction = new cloudamqp.NodeActions("node_action", {
|
|
85
|
+
* instanceId: instance.id,
|
|
86
|
+
* action: "cluster.restart",
|
|
87
|
+
* }, {
|
|
88
|
+
* dependsOn: [rabbitmqConfig],
|
|
89
|
+
* });
|
|
25
90
|
* ```
|
|
91
|
+
*
|
|
92
|
+
* </details>
|
|
93
|
+
*
|
|
94
|
+
* <details>
|
|
95
|
+
* <summary>
|
|
96
|
+
* <b>
|
|
97
|
+
* <i>
|
|
98
|
+
* Only change log level for exchange. All other values will be read from the RabbitMQ
|
|
99
|
+
* configuration.
|
|
100
|
+
* </i>
|
|
101
|
+
* </b>
|
|
102
|
+
* </summary>
|
|
103
|
+
*
|
|
104
|
+
* ```typescript
|
|
105
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
106
|
+
* import * as cloudamqp from "@pulumi/cloudamqp";
|
|
107
|
+
*
|
|
108
|
+
* const rabbitConfig = new cloudamqp.RabbitConfiguration("rabbit_config", {
|
|
109
|
+
* instanceId: instance.id,
|
|
110
|
+
* logExchangeLevel: "info",
|
|
111
|
+
* });
|
|
112
|
+
* ```
|
|
113
|
+
*
|
|
114
|
+
* </details>
|
|
115
|
+
*
|
|
116
|
+
* <details>
|
|
117
|
+
* <summary>
|
|
118
|
+
* <b>
|
|
119
|
+
* <i>
|
|
120
|
+
* MQTT and SSL configuration and combine `cloudamqp.NodeActions` for RabbitMQ restart
|
|
121
|
+
* </i>
|
|
122
|
+
* </b>
|
|
123
|
+
* </summary>
|
|
124
|
+
*
|
|
125
|
+
* SSL certificate-based authentication for MQTT connections requires peer certificate verification.
|
|
126
|
+
* Set the following when enabling `mqttSslCertLogin`:
|
|
127
|
+
*
|
|
128
|
+
* - `sslOptionsFailIfNoPeerCert` = ***true***
|
|
129
|
+
* - `sslOptionsVerify` = ***verify_peer***
|
|
130
|
+
*
|
|
131
|
+
* ```typescript
|
|
132
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
133
|
+
* import * as cloudamqp from "@pulumi/cloudamqp";
|
|
134
|
+
*
|
|
135
|
+
* const rabbitmqConfig = new cloudamqp.RabbitConfiguration("rabbitmq_config", {
|
|
136
|
+
* instanceId: instance.id,
|
|
137
|
+
* mqttVhost: instance.vhost,
|
|
138
|
+
* mqttExchange: "amq.topic",
|
|
139
|
+
* mqttSslCertLogin: true,
|
|
140
|
+
* sslOptionsFailIfNoPeerCert: true,
|
|
141
|
+
* sslOptionsVerify: "verify_peer",
|
|
142
|
+
* });
|
|
143
|
+
* const nodes = cloudamqp.getNodes({
|
|
144
|
+
* instanceId: instance.id,
|
|
145
|
+
* });
|
|
146
|
+
* const nodeAction = new cloudamqp.NodeActions("node_action", {
|
|
147
|
+
* instanceId: instance.id,
|
|
148
|
+
* nodeName: nodes.then(nodes => nodes.nodes?.[0]?.name),
|
|
149
|
+
* action: "restart",
|
|
150
|
+
* }, {
|
|
151
|
+
* dependsOn: [rabbitmqConfig],
|
|
152
|
+
* });
|
|
153
|
+
* ```
|
|
154
|
+
*
|
|
155
|
+
* </details>
|
|
156
|
+
*
|
|
157
|
+
* ## Argument threshold values
|
|
158
|
+
*
|
|
159
|
+
* ### heartbeat
|
|
160
|
+
*
|
|
161
|
+
* | Type | Default | Min | Affect |
|
|
162
|
+
* |---|---|---|---|
|
|
163
|
+
* | int | 120 | 0 | Only effects new connection |
|
|
164
|
+
*
|
|
165
|
+
* ### connectionMax
|
|
166
|
+
*
|
|
167
|
+
* | Type | Default | Min | Affect |
|
|
168
|
+
* |---|---|---|---|
|
|
169
|
+
* | int | -1 | 1 | Applied immediately (RabbitMQ restart required before 3.11.13) |
|
|
170
|
+
*
|
|
171
|
+
* Note: -1 in the provider corresponds to INFINITY in the RabbitMQ config
|
|
172
|
+
*
|
|
173
|
+
* ### channelMax
|
|
174
|
+
*
|
|
175
|
+
* | Type | Default | Min | Affect |
|
|
176
|
+
* |---|---|---|---|
|
|
177
|
+
* | int | 128 | 0 | Only effects new connections |
|
|
178
|
+
*
|
|
179
|
+
* Note: 0 means "no limit"
|
|
180
|
+
*
|
|
181
|
+
* ### consumerTimeout
|
|
182
|
+
*
|
|
183
|
+
* | Type | Default | Min | Max | Unit | Affect |
|
|
184
|
+
* |---|---|---|---|---|---|
|
|
185
|
+
* | int | 7200000 | 10000 | 86400000 | milliseconds | Only effects new channels |
|
|
186
|
+
*
|
|
187
|
+
* Note: -1 in the provider corresponds to false (disable) in the RabbitMQ config
|
|
188
|
+
*
|
|
189
|
+
* ### vmMemoryHighWatermark
|
|
190
|
+
*
|
|
191
|
+
* | Type | Default | Min | Max | Affect |
|
|
192
|
+
* |---|---|---|---|---|
|
|
193
|
+
* | float | 0.81 | 0.4 | 0.9 | Applied immediately |
|
|
194
|
+
*
|
|
195
|
+
* ### queueIndexEmbedMsgsBelow
|
|
196
|
+
*
|
|
197
|
+
* | Type | Default | Min | Max | Unit | Affect |
|
|
198
|
+
* |---|---|---|---|---|---|
|
|
199
|
+
* | int | 4096 | 0 | 10485760 | bytes | Applied immediately for new queues |
|
|
200
|
+
*
|
|
201
|
+
* Note: Existing queues requires restart
|
|
202
|
+
*
|
|
203
|
+
* ### maxMessageSize
|
|
204
|
+
*
|
|
205
|
+
* | Type | Default | Min | Max | Unit | Affect |
|
|
206
|
+
* |---|---|---|---|---|---|
|
|
207
|
+
* | int | 134217728 | 1 | 536870912 | bytes | Only effects new channels |
|
|
208
|
+
*
|
|
209
|
+
* ### logExchangeLevel
|
|
210
|
+
*
|
|
211
|
+
* | Type | Default | Affect | Allowed values |
|
|
212
|
+
* |---|---|---| --- |
|
|
213
|
+
* | string | error | RabbitMQ restart required | `debug, info, warning, error, critical, none` |
|
|
214
|
+
*
|
|
215
|
+
* ### clusterPartitionHandling
|
|
216
|
+
*
|
|
217
|
+
* | Type | Affect | Allowed values |
|
|
218
|
+
* |---|---|---|
|
|
219
|
+
* | string | Applied immediately | `autoheal, pause_minority, ignore` |
|
|
220
|
+
*
|
|
221
|
+
* Recommended setting for cluster_partition_handling: `autoheal` for cluster with 1-2
|
|
222
|
+
* nodes, `pauseMinority` for cluster with 3 or more nodes. While `ignore` setting is not recommended.
|
|
223
|
+
*
|
|
224
|
+
* ### messageInterceptorsTimestampOverwrite
|
|
225
|
+
*
|
|
226
|
+
* | Type | Affect | Allowed values |
|
|
227
|
+
* |---|---|---|
|
|
228
|
+
* | string | RabbitMQ restart required | `enabled_with_overwrite, enabled, disabled` |
|
|
229
|
+
*
|
|
230
|
+
* Note: Corresponds to setting `message_interceptors.incoming.set_header_timestamp.overwrite`
|
|
231
|
+
*
|
|
232
|
+
* ### mqttVhost
|
|
233
|
+
*
|
|
234
|
+
* | Type | Affect |
|
|
235
|
+
* | --- | --- |
|
|
236
|
+
* | string | Only affects new connections |
|
|
237
|
+
*
|
|
238
|
+
* Note: A vhost is automatically created when `cloudamqp.Instance` is created. This attribute defaults to that vhost (I.e. `cloudamqp_instance.instance.vhost`).
|
|
239
|
+
*
|
|
240
|
+
* ### mqttExchange
|
|
241
|
+
*
|
|
242
|
+
* | Type | Affect |
|
|
243
|
+
* | --- | --- |
|
|
244
|
+
* | string | Only affects new connections |
|
|
245
|
+
*
|
|
246
|
+
* ### mqttSslCertLogin
|
|
247
|
+
*
|
|
248
|
+
* | Type | Affect |
|
|
249
|
+
* | --- | --- |
|
|
250
|
+
* | bool | RabbitMQ restart required |
|
|
251
|
+
*
|
|
252
|
+
* Note: When enabled, `rabbit.ssl_options.fail_if_no_peer_cert` should be set to ***true*** and
|
|
253
|
+
* `rabbit.ssl_options.verify` should be set to ***verify_peer*** for it to work properly.
|
|
254
|
+
*
|
|
255
|
+
* ### sslCertLoginFrom
|
|
256
|
+
*
|
|
257
|
+
* | Type | Affect | Allowed values |
|
|
258
|
+
* | --- | --- | --- |
|
|
259
|
+
* | string | Only affects new connections | `commonName`, `distinguishedName` |
|
|
260
|
+
*
|
|
261
|
+
* ### sslOptionsFailIfNoPeerCert
|
|
262
|
+
*
|
|
263
|
+
* | Type | Affect |
|
|
264
|
+
* | --- | --- |
|
|
265
|
+
* | string | RabbitMQ restart required |
|
|
266
|
+
*
|
|
267
|
+
* Note: When enabled, `rabbit.ssl_options.verify` must be set to ***verify_peer***.
|
|
268
|
+
*
|
|
269
|
+
* ### sslOptionsVerify
|
|
270
|
+
*
|
|
271
|
+
* | Type | Affect | Allowed values |
|
|
272
|
+
* | --- | --- | --- |
|
|
273
|
+
* | string | RabbitMQ restart required | `verifyNone`, `verifyPeer` |
|
|
274
|
+
*
|
|
275
|
+
* Note: `verifyPeer` validates the client's certificate chain, `verifyNone` disables verification.
|
|
276
|
+
*
|
|
277
|
+
* ## Dependency
|
|
278
|
+
*
|
|
279
|
+
* This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
|
|
280
|
+
*
|
|
281
|
+
* ## Known issues
|
|
282
|
+
*
|
|
283
|
+
* <details>
|
|
284
|
+
* <summary>Cannot set heartbeat=0 when creating this resource</summary>
|
|
285
|
+
*
|
|
286
|
+
* > **Note:** This is no longer the case from [v1.35.0].
|
|
287
|
+
*
|
|
288
|
+
* The provider is built by older `Terraform Plugin SDK` which doesn't support nullable configuration
|
|
289
|
+
* values. Instead the values will be set to it's default value based on it's schema primitive type.
|
|
290
|
+
*
|
|
291
|
+
* * schema.TypeString = ""
|
|
292
|
+
* * schema.TypeInt = 0
|
|
293
|
+
* * schema.TypeFloat = 0.0
|
|
294
|
+
* * schema.TypeBool = false
|
|
295
|
+
*
|
|
296
|
+
* During initial create of this resource, we need to exclude all arguments that can take these default
|
|
297
|
+
* values. Argument such as `hearbeat`, `channelMax`, etc. cannot be set to its default value, 0 in
|
|
298
|
+
* these cases. Current workaround is to use the default value in the initial create run, then change
|
|
299
|
+
* to the wanted value in the re-run.
|
|
300
|
+
*
|
|
301
|
+
* Will be solved once we migrate the current provider to `Terraform Plugin Framework`.
|
|
302
|
+
*
|
|
303
|
+
* </details>
|
|
304
|
+
*
|
|
305
|
+
* [CloudAMQP API list intances]: https://docs.cloudamqp.com/index.html#tag/instances/get/instances
|
|
306
|
+
* [v1.35.0]: https://github.com/cloudamqp/terraform-provider-cloudamqp/releases/tag/v1.35.0
|
|
26
307
|
*/
|
|
27
308
|
export declare class RabbitConfiguration extends pulumi.CustomResource {
|
|
28
309
|
/**
|
package/rabbitConfiguration.js
CHANGED
|
@@ -6,29 +6,310 @@ exports.RabbitConfiguration = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* This resource allows you update RabbitMQ config.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* Only available for dedicated subscription plans running ***RabbitMQ***.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
13
|
+
* ## Example Usage
|
|
14
14
|
*
|
|
15
|
-
*
|
|
15
|
+
* <details>
|
|
16
|
+
* <summary>
|
|
17
|
+
* <b>
|
|
18
|
+
* <i>RabbitMQ configuration and using 0 values</i>
|
|
19
|
+
* </b>
|
|
20
|
+
* </summary>
|
|
16
21
|
*
|
|
17
|
-
*
|
|
22
|
+
* From [v1.35.0] and migrating this resource to Terraform plugin Framework.
|
|
23
|
+
* It's now possible to use 0 values in the configuration.
|
|
18
24
|
*
|
|
19
|
-
*
|
|
25
|
+
* ```typescript
|
|
26
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
27
|
+
* import * as cloudamqp from "@pulumi/cloudamqp";
|
|
20
28
|
*
|
|
21
|
-
*
|
|
29
|
+
* const rabbitmqConfig = new cloudamqp.RabbitConfiguration("rabbitmq_config", {
|
|
30
|
+
* instanceId: instance.id,
|
|
31
|
+
* heartbeat: 0,
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* </details>
|
|
36
|
+
*
|
|
37
|
+
* <details>
|
|
38
|
+
* <summary>
|
|
39
|
+
* <b>
|
|
40
|
+
* <i>RabbitMQ configuration with default values</i>
|
|
41
|
+
* </b>
|
|
42
|
+
* </summary>
|
|
43
|
+
*
|
|
44
|
+
* ```typescript
|
|
45
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
46
|
+
* import * as cloudamqp from "@pulumi/cloudamqp";
|
|
47
|
+
*
|
|
48
|
+
* const rabbitmqConfig = new cloudamqp.RabbitConfiguration("rabbitmq_config", {
|
|
49
|
+
* instanceId: instance.id,
|
|
50
|
+
* channelMax: 0,
|
|
51
|
+
* connectionMax: -1,
|
|
52
|
+
* consumerTimeout: 7200000,
|
|
53
|
+
* heartbeat: 120,
|
|
54
|
+
* logExchangeLevel: "error",
|
|
55
|
+
* maxMessageSize: 134217728,
|
|
56
|
+
* queueIndexEmbedMsgsBelow: 4096,
|
|
57
|
+
* vmMemoryHighWatermark: 0.81,
|
|
58
|
+
* clusterPartitionHandling: "autoheal",
|
|
59
|
+
* });
|
|
60
|
+
* ```
|
|
22
61
|
*
|
|
23
|
-
*
|
|
62
|
+
* </details>
|
|
24
63
|
*
|
|
25
|
-
*
|
|
64
|
+
* <details>
|
|
65
|
+
* <summary>
|
|
66
|
+
* <b>
|
|
67
|
+
* <i>Change log level and combine `cloudamqp.NodeActions` for RabbitMQ restart</i>
|
|
68
|
+
* </b>
|
|
69
|
+
* </summary>
|
|
26
70
|
*
|
|
27
|
-
*
|
|
71
|
+
* ```typescript
|
|
72
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
73
|
+
* import * as cloudamqp from "@pulumi/cloudamqp";
|
|
28
74
|
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
75
|
+
* const rabbitmqConfig = new cloudamqp.RabbitConfiguration("rabbitmq_config", {
|
|
76
|
+
* instanceId: instance.id,
|
|
77
|
+
* channelMax: 0,
|
|
78
|
+
* connectionMax: -1,
|
|
79
|
+
* consumerTimeout: 7200000,
|
|
80
|
+
* heartbeat: 120,
|
|
81
|
+
* logExchangeLevel: "info",
|
|
82
|
+
* maxMessageSize: 134217728,
|
|
83
|
+
* queueIndexEmbedMsgsBelow: 4096,
|
|
84
|
+
* vmMemoryHighWatermark: 0.81,
|
|
85
|
+
* clusterPartitionHandling: "autoheal",
|
|
86
|
+
* });
|
|
87
|
+
* const listNodes = cloudamqp.getNodes({
|
|
88
|
+
* instanceId: instance.id,
|
|
89
|
+
* });
|
|
90
|
+
* const nodeAction = new cloudamqp.NodeActions("node_action", {
|
|
91
|
+
* instanceId: instance.id,
|
|
92
|
+
* action: "cluster.restart",
|
|
93
|
+
* }, {
|
|
94
|
+
* dependsOn: [rabbitmqConfig],
|
|
95
|
+
* });
|
|
31
96
|
* ```
|
|
97
|
+
*
|
|
98
|
+
* </details>
|
|
99
|
+
*
|
|
100
|
+
* <details>
|
|
101
|
+
* <summary>
|
|
102
|
+
* <b>
|
|
103
|
+
* <i>
|
|
104
|
+
* Only change log level for exchange. All other values will be read from the RabbitMQ
|
|
105
|
+
* configuration.
|
|
106
|
+
* </i>
|
|
107
|
+
* </b>
|
|
108
|
+
* </summary>
|
|
109
|
+
*
|
|
110
|
+
* ```typescript
|
|
111
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
112
|
+
* import * as cloudamqp from "@pulumi/cloudamqp";
|
|
113
|
+
*
|
|
114
|
+
* const rabbitConfig = new cloudamqp.RabbitConfiguration("rabbit_config", {
|
|
115
|
+
* instanceId: instance.id,
|
|
116
|
+
* logExchangeLevel: "info",
|
|
117
|
+
* });
|
|
118
|
+
* ```
|
|
119
|
+
*
|
|
120
|
+
* </details>
|
|
121
|
+
*
|
|
122
|
+
* <details>
|
|
123
|
+
* <summary>
|
|
124
|
+
* <b>
|
|
125
|
+
* <i>
|
|
126
|
+
* MQTT and SSL configuration and combine `cloudamqp.NodeActions` for RabbitMQ restart
|
|
127
|
+
* </i>
|
|
128
|
+
* </b>
|
|
129
|
+
* </summary>
|
|
130
|
+
*
|
|
131
|
+
* SSL certificate-based authentication for MQTT connections requires peer certificate verification.
|
|
132
|
+
* Set the following when enabling `mqttSslCertLogin`:
|
|
133
|
+
*
|
|
134
|
+
* - `sslOptionsFailIfNoPeerCert` = ***true***
|
|
135
|
+
* - `sslOptionsVerify` = ***verify_peer***
|
|
136
|
+
*
|
|
137
|
+
* ```typescript
|
|
138
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
139
|
+
* import * as cloudamqp from "@pulumi/cloudamqp";
|
|
140
|
+
*
|
|
141
|
+
* const rabbitmqConfig = new cloudamqp.RabbitConfiguration("rabbitmq_config", {
|
|
142
|
+
* instanceId: instance.id,
|
|
143
|
+
* mqttVhost: instance.vhost,
|
|
144
|
+
* mqttExchange: "amq.topic",
|
|
145
|
+
* mqttSslCertLogin: true,
|
|
146
|
+
* sslOptionsFailIfNoPeerCert: true,
|
|
147
|
+
* sslOptionsVerify: "verify_peer",
|
|
148
|
+
* });
|
|
149
|
+
* const nodes = cloudamqp.getNodes({
|
|
150
|
+
* instanceId: instance.id,
|
|
151
|
+
* });
|
|
152
|
+
* const nodeAction = new cloudamqp.NodeActions("node_action", {
|
|
153
|
+
* instanceId: instance.id,
|
|
154
|
+
* nodeName: nodes.then(nodes => nodes.nodes?.[0]?.name),
|
|
155
|
+
* action: "restart",
|
|
156
|
+
* }, {
|
|
157
|
+
* dependsOn: [rabbitmqConfig],
|
|
158
|
+
* });
|
|
159
|
+
* ```
|
|
160
|
+
*
|
|
161
|
+
* </details>
|
|
162
|
+
*
|
|
163
|
+
* ## Argument threshold values
|
|
164
|
+
*
|
|
165
|
+
* ### heartbeat
|
|
166
|
+
*
|
|
167
|
+
* | Type | Default | Min | Affect |
|
|
168
|
+
* |---|---|---|---|
|
|
169
|
+
* | int | 120 | 0 | Only effects new connection |
|
|
170
|
+
*
|
|
171
|
+
* ### connectionMax
|
|
172
|
+
*
|
|
173
|
+
* | Type | Default | Min | Affect |
|
|
174
|
+
* |---|---|---|---|
|
|
175
|
+
* | int | -1 | 1 | Applied immediately (RabbitMQ restart required before 3.11.13) |
|
|
176
|
+
*
|
|
177
|
+
* Note: -1 in the provider corresponds to INFINITY in the RabbitMQ config
|
|
178
|
+
*
|
|
179
|
+
* ### channelMax
|
|
180
|
+
*
|
|
181
|
+
* | Type | Default | Min | Affect |
|
|
182
|
+
* |---|---|---|---|
|
|
183
|
+
* | int | 128 | 0 | Only effects new connections |
|
|
184
|
+
*
|
|
185
|
+
* Note: 0 means "no limit"
|
|
186
|
+
*
|
|
187
|
+
* ### consumerTimeout
|
|
188
|
+
*
|
|
189
|
+
* | Type | Default | Min | Max | Unit | Affect |
|
|
190
|
+
* |---|---|---|---|---|---|
|
|
191
|
+
* | int | 7200000 | 10000 | 86400000 | milliseconds | Only effects new channels |
|
|
192
|
+
*
|
|
193
|
+
* Note: -1 in the provider corresponds to false (disable) in the RabbitMQ config
|
|
194
|
+
*
|
|
195
|
+
* ### vmMemoryHighWatermark
|
|
196
|
+
*
|
|
197
|
+
* | Type | Default | Min | Max | Affect |
|
|
198
|
+
* |---|---|---|---|---|
|
|
199
|
+
* | float | 0.81 | 0.4 | 0.9 | Applied immediately |
|
|
200
|
+
*
|
|
201
|
+
* ### queueIndexEmbedMsgsBelow
|
|
202
|
+
*
|
|
203
|
+
* | Type | Default | Min | Max | Unit | Affect |
|
|
204
|
+
* |---|---|---|---|---|---|
|
|
205
|
+
* | int | 4096 | 0 | 10485760 | bytes | Applied immediately for new queues |
|
|
206
|
+
*
|
|
207
|
+
* Note: Existing queues requires restart
|
|
208
|
+
*
|
|
209
|
+
* ### maxMessageSize
|
|
210
|
+
*
|
|
211
|
+
* | Type | Default | Min | Max | Unit | Affect |
|
|
212
|
+
* |---|---|---|---|---|---|
|
|
213
|
+
* | int | 134217728 | 1 | 536870912 | bytes | Only effects new channels |
|
|
214
|
+
*
|
|
215
|
+
* ### logExchangeLevel
|
|
216
|
+
*
|
|
217
|
+
* | Type | Default | Affect | Allowed values |
|
|
218
|
+
* |---|---|---| --- |
|
|
219
|
+
* | string | error | RabbitMQ restart required | `debug, info, warning, error, critical, none` |
|
|
220
|
+
*
|
|
221
|
+
* ### clusterPartitionHandling
|
|
222
|
+
*
|
|
223
|
+
* | Type | Affect | Allowed values |
|
|
224
|
+
* |---|---|---|
|
|
225
|
+
* | string | Applied immediately | `autoheal, pause_minority, ignore` |
|
|
226
|
+
*
|
|
227
|
+
* Recommended setting for cluster_partition_handling: `autoheal` for cluster with 1-2
|
|
228
|
+
* nodes, `pauseMinority` for cluster with 3 or more nodes. While `ignore` setting is not recommended.
|
|
229
|
+
*
|
|
230
|
+
* ### messageInterceptorsTimestampOverwrite
|
|
231
|
+
*
|
|
232
|
+
* | Type | Affect | Allowed values |
|
|
233
|
+
* |---|---|---|
|
|
234
|
+
* | string | RabbitMQ restart required | `enabled_with_overwrite, enabled, disabled` |
|
|
235
|
+
*
|
|
236
|
+
* Note: Corresponds to setting `message_interceptors.incoming.set_header_timestamp.overwrite`
|
|
237
|
+
*
|
|
238
|
+
* ### mqttVhost
|
|
239
|
+
*
|
|
240
|
+
* | Type | Affect |
|
|
241
|
+
* | --- | --- |
|
|
242
|
+
* | string | Only affects new connections |
|
|
243
|
+
*
|
|
244
|
+
* Note: A vhost is automatically created when `cloudamqp.Instance` is created. This attribute defaults to that vhost (I.e. `cloudamqp_instance.instance.vhost`).
|
|
245
|
+
*
|
|
246
|
+
* ### mqttExchange
|
|
247
|
+
*
|
|
248
|
+
* | Type | Affect |
|
|
249
|
+
* | --- | --- |
|
|
250
|
+
* | string | Only affects new connections |
|
|
251
|
+
*
|
|
252
|
+
* ### mqttSslCertLogin
|
|
253
|
+
*
|
|
254
|
+
* | Type | Affect |
|
|
255
|
+
* | --- | --- |
|
|
256
|
+
* | bool | RabbitMQ restart required |
|
|
257
|
+
*
|
|
258
|
+
* Note: When enabled, `rabbit.ssl_options.fail_if_no_peer_cert` should be set to ***true*** and
|
|
259
|
+
* `rabbit.ssl_options.verify` should be set to ***verify_peer*** for it to work properly.
|
|
260
|
+
*
|
|
261
|
+
* ### sslCertLoginFrom
|
|
262
|
+
*
|
|
263
|
+
* | Type | Affect | Allowed values |
|
|
264
|
+
* | --- | --- | --- |
|
|
265
|
+
* | string | Only affects new connections | `commonName`, `distinguishedName` |
|
|
266
|
+
*
|
|
267
|
+
* ### sslOptionsFailIfNoPeerCert
|
|
268
|
+
*
|
|
269
|
+
* | Type | Affect |
|
|
270
|
+
* | --- | --- |
|
|
271
|
+
* | string | RabbitMQ restart required |
|
|
272
|
+
*
|
|
273
|
+
* Note: When enabled, `rabbit.ssl_options.verify` must be set to ***verify_peer***.
|
|
274
|
+
*
|
|
275
|
+
* ### sslOptionsVerify
|
|
276
|
+
*
|
|
277
|
+
* | Type | Affect | Allowed values |
|
|
278
|
+
* | --- | --- | --- |
|
|
279
|
+
* | string | RabbitMQ restart required | `verifyNone`, `verifyPeer` |
|
|
280
|
+
*
|
|
281
|
+
* Note: `verifyPeer` validates the client's certificate chain, `verifyNone` disables verification.
|
|
282
|
+
*
|
|
283
|
+
* ## Dependency
|
|
284
|
+
*
|
|
285
|
+
* This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
|
|
286
|
+
*
|
|
287
|
+
* ## Known issues
|
|
288
|
+
*
|
|
289
|
+
* <details>
|
|
290
|
+
* <summary>Cannot set heartbeat=0 when creating this resource</summary>
|
|
291
|
+
*
|
|
292
|
+
* > **Note:** This is no longer the case from [v1.35.0].
|
|
293
|
+
*
|
|
294
|
+
* The provider is built by older `Terraform Plugin SDK` which doesn't support nullable configuration
|
|
295
|
+
* values. Instead the values will be set to it's default value based on it's schema primitive type.
|
|
296
|
+
*
|
|
297
|
+
* * schema.TypeString = ""
|
|
298
|
+
* * schema.TypeInt = 0
|
|
299
|
+
* * schema.TypeFloat = 0.0
|
|
300
|
+
* * schema.TypeBool = false
|
|
301
|
+
*
|
|
302
|
+
* During initial create of this resource, we need to exclude all arguments that can take these default
|
|
303
|
+
* values. Argument such as `hearbeat`, `channelMax`, etc. cannot be set to its default value, 0 in
|
|
304
|
+
* these cases. Current workaround is to use the default value in the initial create run, then change
|
|
305
|
+
* to the wanted value in the re-run.
|
|
306
|
+
*
|
|
307
|
+
* Will be solved once we migrate the current provider to `Terraform Plugin Framework`.
|
|
308
|
+
*
|
|
309
|
+
* </details>
|
|
310
|
+
*
|
|
311
|
+
* [CloudAMQP API list intances]: https://docs.cloudamqp.com/index.html#tag/instances/get/instances
|
|
312
|
+
* [v1.35.0]: https://github.com/cloudamqp/terraform-provider-cloudamqp/releases/tag/v1.35.0
|
|
32
313
|
*/
|
|
33
314
|
class RabbitConfiguration extends pulumi.CustomResource {
|
|
34
315
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rabbitConfiguration.js","sourceRoot":"","sources":["../rabbitConfiguration.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCA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