@pulumi/cloudamqp 3.17.0 → 3.17.1
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/instance.d.ts +1 -1
- package/instance.js +1 -1
- package/package.json +1 -1
- package/privatelinkAws.d.ts +3 -1
- package/privatelinkAws.js +3 -1
- package/privatelinkAws.js.map +1 -1
- package/privatelinkAzure.d.ts +3 -1
- package/privatelinkAzure.js +3 -1
- package/privatelinkAzure.js.map +1 -1
- package/vpcConnect.d.ts +68 -0
- package/vpcConnect.js +68 -0
- package/vpcConnect.js.map +1 -1
package/instance.d.ts
CHANGED
|
@@ -236,7 +236,7 @@ import * as outputs from "./types/output";
|
|
|
236
236
|
* $ pulumi import cloudamqp:index/instance:Instance instance <id>`
|
|
237
237
|
* ```
|
|
238
238
|
*
|
|
239
|
-
* To retrieve the identifier for
|
|
239
|
+
* To retrieve the identifier for an instance, either use [CloudAMQP customer API](https://docs.cloudamqp.com/#list-instances) or use the data source [`cloudamqp_account`](./data-sources/account.md) to list all available instances for an account.
|
|
240
240
|
*/
|
|
241
241
|
export declare class Instance extends pulumi.CustomResource {
|
|
242
242
|
/**
|
package/instance.js
CHANGED
|
@@ -240,7 +240,7 @@ const utilities = require("./utilities");
|
|
|
240
240
|
* $ pulumi import cloudamqp:index/instance:Instance instance <id>`
|
|
241
241
|
* ```
|
|
242
242
|
*
|
|
243
|
-
* To retrieve the identifier for
|
|
243
|
+
* To retrieve the identifier for an instance, either use [CloudAMQP customer API](https://docs.cloudamqp.com/#list-instances) or use the data source [`cloudamqp_account`](./data-sources/account.md) to list all available instances for an account.
|
|
244
244
|
*/
|
|
245
245
|
class Instance extends pulumi.CustomResource {
|
|
246
246
|
/**
|
package/package.json
CHANGED
package/privatelinkAws.d.ts
CHANGED
|
@@ -113,7 +113,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
113
113
|
* instanceId: instance.id,
|
|
114
114
|
* rules: [
|
|
115
115
|
* {
|
|
116
|
-
*
|
|
116
|
+
* description: "Custom PrivateLink setup",
|
|
117
117
|
* ip: vpc.subnet,
|
|
118
118
|
* ports: [],
|
|
119
119
|
* services: [
|
|
@@ -157,6 +157,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
157
157
|
* ```sh
|
|
158
158
|
* $ pulumi import cloudamqp:index/privatelinkAws:PrivatelinkAws privatelink <id>`
|
|
159
159
|
* ```
|
|
160
|
+
*
|
|
161
|
+
* The resource uses the same identifier as the CloudAMQP instance. To retrieve the identifier for an instance, either use [CloudAMQP customer API](https://docs.cloudamqp.com/#list-instances) or use the data source [`cloudamqp_account`](./data-sources/account.md).
|
|
160
162
|
*/
|
|
161
163
|
export declare class PrivatelinkAws extends pulumi.CustomResource {
|
|
162
164
|
/**
|
package/privatelinkAws.js
CHANGED
|
@@ -119,7 +119,7 @@ const utilities = require("./utilities");
|
|
|
119
119
|
* instanceId: instance.id,
|
|
120
120
|
* rules: [
|
|
121
121
|
* {
|
|
122
|
-
*
|
|
122
|
+
* description: "Custom PrivateLink setup",
|
|
123
123
|
* ip: vpc.subnet,
|
|
124
124
|
* ports: [],
|
|
125
125
|
* services: [
|
|
@@ -163,6 +163,8 @@ const utilities = require("./utilities");
|
|
|
163
163
|
* ```sh
|
|
164
164
|
* $ pulumi import cloudamqp:index/privatelinkAws:PrivatelinkAws privatelink <id>`
|
|
165
165
|
* ```
|
|
166
|
+
*
|
|
167
|
+
* The resource uses the same identifier as the CloudAMQP instance. To retrieve the identifier for an instance, either use [CloudAMQP customer API](https://docs.cloudamqp.com/#list-instances) or use the data source [`cloudamqp_account`](./data-sources/account.md).
|
|
166
168
|
*/
|
|
167
169
|
class PrivatelinkAws extends pulumi.CustomResource {
|
|
168
170
|
/**
|
package/privatelinkAws.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"privatelinkAws.js","sourceRoot":"","sources":["../privatelinkAws.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAi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AAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AAtGL,wCAuGC;AAzFG,gBAAgB;AACO,2BAAY,GAAG,+CAA+C,CAAC"}
|
package/privatelinkAzure.d.ts
CHANGED
|
@@ -113,7 +113,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
113
113
|
* instanceId: instance.id,
|
|
114
114
|
* rules: [
|
|
115
115
|
* {
|
|
116
|
-
*
|
|
116
|
+
* description: "Custom PrivateLink setup",
|
|
117
117
|
* ip: vpc.subnet,
|
|
118
118
|
* ports: [],
|
|
119
119
|
* services: [
|
|
@@ -157,6 +157,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
157
157
|
* ```sh
|
|
158
158
|
* $ pulumi import cloudamqp:index/privatelinkAzure:PrivatelinkAzure privatelink <id>`
|
|
159
159
|
* ```
|
|
160
|
+
*
|
|
161
|
+
* The resource uses the same identifier as the CloudAMQP instance. To retrieve the identifier for an instance, either use [CloudAMQP customer API](https://docs.cloudamqp.com/#list-instances) or use the data source [`cloudamqp_account`](./data-sources/account.md).
|
|
160
162
|
*/
|
|
161
163
|
export declare class PrivatelinkAzure extends pulumi.CustomResource {
|
|
162
164
|
/**
|
package/privatelinkAzure.js
CHANGED
|
@@ -119,7 +119,7 @@ const utilities = require("./utilities");
|
|
|
119
119
|
* instanceId: instance.id,
|
|
120
120
|
* rules: [
|
|
121
121
|
* {
|
|
122
|
-
*
|
|
122
|
+
* description: "Custom PrivateLink setup",
|
|
123
123
|
* ip: vpc.subnet,
|
|
124
124
|
* ports: [],
|
|
125
125
|
* services: [
|
|
@@ -163,6 +163,8 @@ const utilities = require("./utilities");
|
|
|
163
163
|
* ```sh
|
|
164
164
|
* $ pulumi import cloudamqp:index/privatelinkAzure:PrivatelinkAzure privatelink <id>`
|
|
165
165
|
* ```
|
|
166
|
+
*
|
|
167
|
+
* The resource uses the same identifier as the CloudAMQP instance. To retrieve the identifier for an instance, either use [CloudAMQP customer API](https://docs.cloudamqp.com/#list-instances) or use the data source [`cloudamqp_account`](./data-sources/account.md).
|
|
166
168
|
*/
|
|
167
169
|
class PrivatelinkAzure extends pulumi.CustomResource {
|
|
168
170
|
/**
|
package/privatelinkAzure.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"privatelinkAzure.js","sourceRoot":"","sources":["../privatelinkAzure.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"privatelinkAzure.js","sourceRoot":"","sources":["../privatelinkAzure.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgKG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;O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AAI,CAAC,CAAC;QACnE,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AArGL,4CAsGC;AAxFG,gBAAgB;AACO,6BAAY,GAAG,mDAAmD,CAAC"}
|
package/vpcConnect.d.ts
CHANGED
|
@@ -135,6 +135,63 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
135
135
|
* ```
|
|
136
136
|
*
|
|
137
137
|
* </details>
|
|
138
|
+
* ### With Additional Firewall Rules
|
|
139
|
+
*
|
|
140
|
+
* <details>
|
|
141
|
+
* <summary>
|
|
142
|
+
* <b>
|
|
143
|
+
* <i>CloudAMQP instance in an existing VPC with managed firewall rules</i>
|
|
144
|
+
* </b>
|
|
145
|
+
* </summary>
|
|
146
|
+
*
|
|
147
|
+
* ```typescript
|
|
148
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
149
|
+
* import * as cloudamqp from "@pulumi/cloudamqp";
|
|
150
|
+
*
|
|
151
|
+
* const vpc = new cloudamqp.Vpc("vpc", {
|
|
152
|
+
* region: "amazon-web-services::us-west-1",
|
|
153
|
+
* subnet: "10.56.72.0/24",
|
|
154
|
+
* tags: [],
|
|
155
|
+
* });
|
|
156
|
+
* const instance = new cloudamqp.Instance("instance", {
|
|
157
|
+
* plan: "bunny-1",
|
|
158
|
+
* region: "amazon-web-services::us-west-1",
|
|
159
|
+
* tags: [],
|
|
160
|
+
* vpcId: vpc.id,
|
|
161
|
+
* keepAssociatedVpc: true,
|
|
162
|
+
* });
|
|
163
|
+
* const vpcConnect = new cloudamqp.VpcConnect("vpcConnect", {
|
|
164
|
+
* instanceId: instance.id,
|
|
165
|
+
* allowedPrincipals: ["arn:aws:iam::aws-account-id:user/user-name"],
|
|
166
|
+
* });
|
|
167
|
+
* const firewallSettings = new cloudamqp.SecurityFirewall("firewallSettings", {
|
|
168
|
+
* instanceId: instance.id,
|
|
169
|
+
* rules: [
|
|
170
|
+
* {
|
|
171
|
+
* description: "Custom PrivateLink setup",
|
|
172
|
+
* ip: vpc.subnet,
|
|
173
|
+
* ports: [],
|
|
174
|
+
* services: [
|
|
175
|
+
* "AMQP",
|
|
176
|
+
* "AMQPS",
|
|
177
|
+
* "HTTPS",
|
|
178
|
+
* "STREAM",
|
|
179
|
+
* "STREAM_SSL",
|
|
180
|
+
* ],
|
|
181
|
+
* },
|
|
182
|
+
* {
|
|
183
|
+
* description: "MGMT interface",
|
|
184
|
+
* ip: "0.0.0.0/0",
|
|
185
|
+
* ports: [],
|
|
186
|
+
* services: ["HTTPS"],
|
|
187
|
+
* },
|
|
188
|
+
* ],
|
|
189
|
+
* }, {
|
|
190
|
+
* dependsOn: [vpcConnect],
|
|
191
|
+
* });
|
|
192
|
+
* ```
|
|
193
|
+
*
|
|
194
|
+
* </details>
|
|
138
195
|
* ## Depedency
|
|
139
196
|
*
|
|
140
197
|
* This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
|
|
@@ -142,6 +199,15 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
142
199
|
* Since `region` also is required, suggest to reuse the argument from CloudAMQP instance,
|
|
143
200
|
* `cloudamqp_instance.instance.region`.
|
|
144
201
|
*
|
|
202
|
+
* ## Create VPC Connect with additional firewall rules
|
|
203
|
+
*
|
|
204
|
+
* To create a PrivateLink/Private Service Connect configuration with additional firewall rules, it's required to chain the cloudamqp.SecurityFirewall
|
|
205
|
+
* resource to avoid parallel conflicting resource calls. You can do this by making the firewall
|
|
206
|
+
* resource depend on the VPC Connect resource, `cloudamqp_vpc_connect.vpc_connect`.
|
|
207
|
+
*
|
|
208
|
+
* Furthermore, since all firewall rules are overwritten, the otherwise automatically added rules for
|
|
209
|
+
* the VPC Connect also needs to be added.
|
|
210
|
+
*
|
|
145
211
|
* ## Import
|
|
146
212
|
*
|
|
147
213
|
* `cloudamqp_vpc_connect` can be imported using CloudAMQP internal identifier.
|
|
@@ -149,6 +215,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
149
215
|
* ```sh
|
|
150
216
|
* $ pulumi import cloudamqp:index/vpcConnect:VpcConnect vpc_connect <id>`
|
|
151
217
|
* ```
|
|
218
|
+
*
|
|
219
|
+
* The resource uses the same identifier as the CloudAMQP instance. To retrieve the identifier for an instance, either use [CloudAMQP customer API](https://docs.cloudamqp.com/#list-instances) or use the data source [`cloudamqp_account`](./data-sources/account.md).
|
|
152
220
|
*/
|
|
153
221
|
export declare class VpcConnect extends pulumi.CustomResource {
|
|
154
222
|
/**
|
package/vpcConnect.js
CHANGED
|
@@ -141,6 +141,63 @@ const utilities = require("./utilities");
|
|
|
141
141
|
* ```
|
|
142
142
|
*
|
|
143
143
|
* </details>
|
|
144
|
+
* ### With Additional Firewall Rules
|
|
145
|
+
*
|
|
146
|
+
* <details>
|
|
147
|
+
* <summary>
|
|
148
|
+
* <b>
|
|
149
|
+
* <i>CloudAMQP instance in an existing VPC with managed firewall rules</i>
|
|
150
|
+
* </b>
|
|
151
|
+
* </summary>
|
|
152
|
+
*
|
|
153
|
+
* ```typescript
|
|
154
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
155
|
+
* import * as cloudamqp from "@pulumi/cloudamqp";
|
|
156
|
+
*
|
|
157
|
+
* const vpc = new cloudamqp.Vpc("vpc", {
|
|
158
|
+
* region: "amazon-web-services::us-west-1",
|
|
159
|
+
* subnet: "10.56.72.0/24",
|
|
160
|
+
* tags: [],
|
|
161
|
+
* });
|
|
162
|
+
* const instance = new cloudamqp.Instance("instance", {
|
|
163
|
+
* plan: "bunny-1",
|
|
164
|
+
* region: "amazon-web-services::us-west-1",
|
|
165
|
+
* tags: [],
|
|
166
|
+
* vpcId: vpc.id,
|
|
167
|
+
* keepAssociatedVpc: true,
|
|
168
|
+
* });
|
|
169
|
+
* const vpcConnect = new cloudamqp.VpcConnect("vpcConnect", {
|
|
170
|
+
* instanceId: instance.id,
|
|
171
|
+
* allowedPrincipals: ["arn:aws:iam::aws-account-id:user/user-name"],
|
|
172
|
+
* });
|
|
173
|
+
* const firewallSettings = new cloudamqp.SecurityFirewall("firewallSettings", {
|
|
174
|
+
* instanceId: instance.id,
|
|
175
|
+
* rules: [
|
|
176
|
+
* {
|
|
177
|
+
* description: "Custom PrivateLink setup",
|
|
178
|
+
* ip: vpc.subnet,
|
|
179
|
+
* ports: [],
|
|
180
|
+
* services: [
|
|
181
|
+
* "AMQP",
|
|
182
|
+
* "AMQPS",
|
|
183
|
+
* "HTTPS",
|
|
184
|
+
* "STREAM",
|
|
185
|
+
* "STREAM_SSL",
|
|
186
|
+
* ],
|
|
187
|
+
* },
|
|
188
|
+
* {
|
|
189
|
+
* description: "MGMT interface",
|
|
190
|
+
* ip: "0.0.0.0/0",
|
|
191
|
+
* ports: [],
|
|
192
|
+
* services: ["HTTPS"],
|
|
193
|
+
* },
|
|
194
|
+
* ],
|
|
195
|
+
* }, {
|
|
196
|
+
* dependsOn: [vpcConnect],
|
|
197
|
+
* });
|
|
198
|
+
* ```
|
|
199
|
+
*
|
|
200
|
+
* </details>
|
|
144
201
|
* ## Depedency
|
|
145
202
|
*
|
|
146
203
|
* This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
|
|
@@ -148,6 +205,15 @@ const utilities = require("./utilities");
|
|
|
148
205
|
* Since `region` also is required, suggest to reuse the argument from CloudAMQP instance,
|
|
149
206
|
* `cloudamqp_instance.instance.region`.
|
|
150
207
|
*
|
|
208
|
+
* ## Create VPC Connect with additional firewall rules
|
|
209
|
+
*
|
|
210
|
+
* To create a PrivateLink/Private Service Connect configuration with additional firewall rules, it's required to chain the cloudamqp.SecurityFirewall
|
|
211
|
+
* resource to avoid parallel conflicting resource calls. You can do this by making the firewall
|
|
212
|
+
* resource depend on the VPC Connect resource, `cloudamqp_vpc_connect.vpc_connect`.
|
|
213
|
+
*
|
|
214
|
+
* Furthermore, since all firewall rules are overwritten, the otherwise automatically added rules for
|
|
215
|
+
* the VPC Connect also needs to be added.
|
|
216
|
+
*
|
|
151
217
|
* ## Import
|
|
152
218
|
*
|
|
153
219
|
* `cloudamqp_vpc_connect` can be imported using CloudAMQP internal identifier.
|
|
@@ -155,6 +221,8 @@ const utilities = require("./utilities");
|
|
|
155
221
|
* ```sh
|
|
156
222
|
* $ pulumi import cloudamqp:index/vpcConnect:VpcConnect vpc_connect <id>`
|
|
157
223
|
* ```
|
|
224
|
+
*
|
|
225
|
+
* The resource uses the same identifier as the CloudAMQP instance. To retrieve the identifier for an instance, either use [CloudAMQP customer API](https://docs.cloudamqp.com/#list-instances) or use the data source [`cloudamqp_account`](./data-sources/account.md).
|
|
158
226
|
*/
|
|
159
227
|
class VpcConnect extends pulumi.CustomResource {
|
|
160
228
|
/**
|
package/vpcConnect.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vpcConnect.js","sourceRoot":"","sources":["../vpcConnect.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"vpcConnect.js","sourceRoot":"","sources":["../vpcConnect.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0NG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCA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