pulumi-cloudamqp 3.21.0a1743571485__py3-none-any.whl → 3.22.0a1744182778__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 +10 -0
- pulumi_cloudamqp/_inputs.py +92 -72
- pulumi_cloudamqp/account_action.py +39 -31
- pulumi_cloudamqp/alarm.py +229 -168
- pulumi_cloudamqp/config/__init__.py +1 -0
- pulumi_cloudamqp/config/__init__.pyi +1 -0
- pulumi_cloudamqp/config/vars.py +1 -0
- pulumi_cloudamqp/custom_domain.py +81 -38
- pulumi_cloudamqp/extra_disk_size.py +172 -155
- pulumi_cloudamqp/get_account.py +10 -3
- pulumi_cloudamqp/get_account_vpcs.py +15 -41
- pulumi_cloudamqp/get_alarm.py +74 -67
- pulumi_cloudamqp/get_credentials.py +19 -26
- pulumi_cloudamqp/get_instance.py +75 -25
- pulumi_cloudamqp/get_nodes.py +10 -56
- pulumi_cloudamqp/get_notification.py +39 -41
- pulumi_cloudamqp/get_plugins.py +28 -54
- pulumi_cloudamqp/get_plugins_community.py +29 -52
- pulumi_cloudamqp/get_upgradable_versions.py +19 -24
- pulumi_cloudamqp/get_vpc_gcp_info.py +44 -138
- pulumi_cloudamqp/get_vpc_info.py +34 -127
- pulumi_cloudamqp/instance.py +557 -333
- pulumi_cloudamqp/integration_aws_eventbridge.py +182 -117
- pulumi_cloudamqp/integration_log.py +488 -402
- pulumi_cloudamqp/integration_metric.py +345 -296
- pulumi_cloudamqp/maintenance_window.py +516 -0
- pulumi_cloudamqp/node_actions.py +82 -59
- pulumi_cloudamqp/notification.py +174 -92
- pulumi_cloudamqp/outputs.py +216 -125
- pulumi_cloudamqp/plugin.py +170 -105
- pulumi_cloudamqp/plugin_community.py +168 -107
- pulumi_cloudamqp/privatelink_aws.py +140 -347
- pulumi_cloudamqp/privatelink_azure.py +142 -345
- pulumi_cloudamqp/provider.py +22 -21
- pulumi_cloudamqp/pulumi-plugin.json +1 -1
- pulumi_cloudamqp/rabbit_configuration.py +334 -210
- pulumi_cloudamqp/security_firewall.py +111 -57
- pulumi_cloudamqp/upgrade_lavinmq.py +29 -102
- pulumi_cloudamqp/upgrade_rabbitmq.py +53 -299
- pulumi_cloudamqp/vpc.py +112 -79
- pulumi_cloudamqp/vpc_connect.py +219 -606
- pulumi_cloudamqp/vpc_gcp_peering.py +227 -591
- pulumi_cloudamqp/vpc_peering.py +120 -105
- pulumi_cloudamqp/webhook.py +143 -103
- {pulumi_cloudamqp-3.21.0a1743571485.dist-info → pulumi_cloudamqp-3.22.0a1744182778.dist-info}/METADATA +1 -1
- pulumi_cloudamqp-3.22.0a1744182778.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.22.0a1744182778.dist-info}/WHEEL +0 -0
- {pulumi_cloudamqp-3.21.0a1743571485.dist-info → pulumi_cloudamqp-3.22.0a1744182778.dist-info}/top_level.txt +0 -0
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
+
import builtins
|
|
5
6
|
import copy
|
|
6
7
|
import warnings
|
|
7
8
|
import sys
|
|
@@ -19,23 +20,34 @@ __all__ = ['VpcGcpPeeringArgs', 'VpcGcpPeering']
|
|
|
19
20
|
@pulumi.input_type
|
|
20
21
|
class VpcGcpPeeringArgs:
|
|
21
22
|
def __init__(__self__, *,
|
|
22
|
-
peer_network_uri: pulumi.Input[str],
|
|
23
|
-
instance_id: Optional[pulumi.Input[int]] = None,
|
|
24
|
-
sleep: Optional[pulumi.Input[int]] = None,
|
|
25
|
-
timeout: Optional[pulumi.Input[int]] = None,
|
|
26
|
-
vpc_id: Optional[pulumi.Input[str]] = None,
|
|
27
|
-
wait_on_peering_status: Optional[pulumi.Input[bool]] = None):
|
|
23
|
+
peer_network_uri: pulumi.Input[builtins.str],
|
|
24
|
+
instance_id: Optional[pulumi.Input[builtins.int]] = None,
|
|
25
|
+
sleep: Optional[pulumi.Input[builtins.int]] = None,
|
|
26
|
+
timeout: Optional[pulumi.Input[builtins.int]] = None,
|
|
27
|
+
vpc_id: Optional[pulumi.Input[builtins.str]] = None,
|
|
28
|
+
wait_on_peering_status: Optional[pulumi.Input[builtins.bool]] = None):
|
|
28
29
|
"""
|
|
29
30
|
The set of arguments for constructing a VpcGcpPeering resource.
|
|
30
|
-
:param pulumi.Input[str] peer_network_uri: Network URI of the VPC network to which you will peer with.
|
|
31
|
-
|
|
32
|
-
:param pulumi.Input[int]
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
31
|
+
:param pulumi.Input[builtins.str] peer_network_uri: Network URI of the VPC network to which you will peer with.
|
|
32
|
+
See examples above for the format.
|
|
33
|
+
:param pulumi.Input[builtins.int] instance_id: The CloudAMQP instance identifier.
|
|
34
|
+
|
|
35
|
+
***Deprecated:*** from [v1.16.0], will be removed in next major version (v2.0)
|
|
36
|
+
:param pulumi.Input[builtins.int] sleep: Configurable sleep time (seconds) between retries when
|
|
37
|
+
requesting or reading peering. Default set to 10 seconds.
|
|
38
|
+
|
|
39
|
+
***Note:*** Available from [v1.29.0]
|
|
40
|
+
:param pulumi.Input[builtins.int] timeout: Configurable timeout time (seconds) before retries times
|
|
41
|
+
out. Default set to 1800 seconds.
|
|
42
|
+
|
|
43
|
+
***Note:*** Available from [v1.29.0]
|
|
44
|
+
:param pulumi.Input[builtins.str] vpc_id: The managed VPC identifier.
|
|
45
|
+
|
|
46
|
+
***Note:*** Available from [v1.16.0], will be required in next major version (v2.0)
|
|
47
|
+
:param pulumi.Input[builtins.bool] wait_on_peering_status: Makes the resource wait until the peering is connected.
|
|
48
|
+
Default set to false.
|
|
49
|
+
|
|
50
|
+
***Note:*** Available from [v1.28.0]
|
|
39
51
|
"""
|
|
40
52
|
pulumi.set(__self__, "peer_network_uri", peer_network_uri)
|
|
41
53
|
if instance_id is not None:
|
|
@@ -51,106 +63,128 @@ class VpcGcpPeeringArgs:
|
|
|
51
63
|
|
|
52
64
|
@property
|
|
53
65
|
@pulumi.getter(name="peerNetworkUri")
|
|
54
|
-
def peer_network_uri(self) -> pulumi.Input[str]:
|
|
66
|
+
def peer_network_uri(self) -> pulumi.Input[builtins.str]:
|
|
55
67
|
"""
|
|
56
|
-
Network URI of the VPC network to which you will peer with.
|
|
68
|
+
Network URI of the VPC network to which you will peer with.
|
|
69
|
+
See examples above for the format.
|
|
57
70
|
"""
|
|
58
71
|
return pulumi.get(self, "peer_network_uri")
|
|
59
72
|
|
|
60
73
|
@peer_network_uri.setter
|
|
61
|
-
def peer_network_uri(self, value: pulumi.Input[str]):
|
|
74
|
+
def peer_network_uri(self, value: pulumi.Input[builtins.str]):
|
|
62
75
|
pulumi.set(self, "peer_network_uri", value)
|
|
63
76
|
|
|
64
77
|
@property
|
|
65
78
|
@pulumi.getter(name="instanceId")
|
|
66
|
-
def instance_id(self) -> Optional[pulumi.Input[int]]:
|
|
79
|
+
def instance_id(self) -> Optional[pulumi.Input[builtins.int]]:
|
|
67
80
|
"""
|
|
68
|
-
The CloudAMQP instance identifier.
|
|
81
|
+
The CloudAMQP instance identifier.
|
|
82
|
+
|
|
83
|
+
***Deprecated:*** from [v1.16.0], will be removed in next major version (v2.0)
|
|
69
84
|
"""
|
|
70
85
|
return pulumi.get(self, "instance_id")
|
|
71
86
|
|
|
72
87
|
@instance_id.setter
|
|
73
|
-
def instance_id(self, value: Optional[pulumi.Input[int]]):
|
|
88
|
+
def instance_id(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
74
89
|
pulumi.set(self, "instance_id", value)
|
|
75
90
|
|
|
76
91
|
@property
|
|
77
92
|
@pulumi.getter
|
|
78
|
-
def sleep(self) -> Optional[pulumi.Input[int]]:
|
|
93
|
+
def sleep(self) -> Optional[pulumi.Input[builtins.int]]:
|
|
79
94
|
"""
|
|
80
|
-
Configurable sleep time (seconds) between retries when
|
|
81
|
-
peering. Default set to 10 seconds.
|
|
95
|
+
Configurable sleep time (seconds) between retries when
|
|
96
|
+
requesting or reading peering. Default set to 10 seconds.
|
|
97
|
+
|
|
98
|
+
***Note:*** Available from [v1.29.0]
|
|
82
99
|
"""
|
|
83
100
|
return pulumi.get(self, "sleep")
|
|
84
101
|
|
|
85
102
|
@sleep.setter
|
|
86
|
-
def sleep(self, value: Optional[pulumi.Input[int]]):
|
|
103
|
+
def sleep(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
87
104
|
pulumi.set(self, "sleep", value)
|
|
88
105
|
|
|
89
106
|
@property
|
|
90
107
|
@pulumi.getter
|
|
91
|
-
def timeout(self) -> Optional[pulumi.Input[int]]:
|
|
108
|
+
def timeout(self) -> Optional[pulumi.Input[builtins.int]]:
|
|
92
109
|
"""
|
|
93
|
-
Configurable timeout time (seconds) before retries times
|
|
94
|
-
to 1800 seconds.
|
|
110
|
+
Configurable timeout time (seconds) before retries times
|
|
111
|
+
out. Default set to 1800 seconds.
|
|
112
|
+
|
|
113
|
+
***Note:*** Available from [v1.29.0]
|
|
95
114
|
"""
|
|
96
115
|
return pulumi.get(self, "timeout")
|
|
97
116
|
|
|
98
117
|
@timeout.setter
|
|
99
|
-
def timeout(self, value: Optional[pulumi.Input[int]]):
|
|
118
|
+
def timeout(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
100
119
|
pulumi.set(self, "timeout", value)
|
|
101
120
|
|
|
102
121
|
@property
|
|
103
122
|
@pulumi.getter(name="vpcId")
|
|
104
|
-
def vpc_id(self) -> Optional[pulumi.Input[str]]:
|
|
123
|
+
def vpc_id(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
105
124
|
"""
|
|
106
|
-
The managed VPC identifier.
|
|
125
|
+
The managed VPC identifier.
|
|
126
|
+
|
|
127
|
+
***Note:*** Available from [v1.16.0], will be required in next major version (v2.0)
|
|
107
128
|
"""
|
|
108
129
|
return pulumi.get(self, "vpc_id")
|
|
109
130
|
|
|
110
131
|
@vpc_id.setter
|
|
111
|
-
def vpc_id(self, value: Optional[pulumi.Input[str]]):
|
|
132
|
+
def vpc_id(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
112
133
|
pulumi.set(self, "vpc_id", value)
|
|
113
134
|
|
|
114
135
|
@property
|
|
115
136
|
@pulumi.getter(name="waitOnPeeringStatus")
|
|
116
|
-
def wait_on_peering_status(self) -> Optional[pulumi.Input[bool]]:
|
|
137
|
+
def wait_on_peering_status(self) -> Optional[pulumi.Input[builtins.bool]]:
|
|
117
138
|
"""
|
|
118
139
|
Makes the resource wait until the peering is connected.
|
|
119
|
-
Default set to false.
|
|
140
|
+
Default set to false.
|
|
141
|
+
|
|
142
|
+
***Note:*** Available from [v1.28.0]
|
|
120
143
|
"""
|
|
121
144
|
return pulumi.get(self, "wait_on_peering_status")
|
|
122
145
|
|
|
123
146
|
@wait_on_peering_status.setter
|
|
124
|
-
def wait_on_peering_status(self, value: Optional[pulumi.Input[bool]]):
|
|
147
|
+
def wait_on_peering_status(self, value: Optional[pulumi.Input[builtins.bool]]):
|
|
125
148
|
pulumi.set(self, "wait_on_peering_status", value)
|
|
126
149
|
|
|
127
150
|
|
|
128
151
|
@pulumi.input_type
|
|
129
152
|
class _VpcGcpPeeringState:
|
|
130
153
|
def __init__(__self__, *,
|
|
131
|
-
auto_create_routes: Optional[pulumi.Input[bool]] = None,
|
|
132
|
-
instance_id: Optional[pulumi.Input[int]] = None,
|
|
133
|
-
peer_network_uri: Optional[pulumi.Input[str]] = None,
|
|
134
|
-
sleep: Optional[pulumi.Input[int]] = None,
|
|
135
|
-
state: Optional[pulumi.Input[str]] = None,
|
|
136
|
-
state_details: Optional[pulumi.Input[str]] = None,
|
|
137
|
-
timeout: Optional[pulumi.Input[int]] = None,
|
|
138
|
-
vpc_id: Optional[pulumi.Input[str]] = None,
|
|
139
|
-
wait_on_peering_status: Optional[pulumi.Input[bool]] = None):
|
|
154
|
+
auto_create_routes: Optional[pulumi.Input[builtins.bool]] = None,
|
|
155
|
+
instance_id: Optional[pulumi.Input[builtins.int]] = None,
|
|
156
|
+
peer_network_uri: Optional[pulumi.Input[builtins.str]] = None,
|
|
157
|
+
sleep: Optional[pulumi.Input[builtins.int]] = None,
|
|
158
|
+
state: Optional[pulumi.Input[builtins.str]] = None,
|
|
159
|
+
state_details: Optional[pulumi.Input[builtins.str]] = None,
|
|
160
|
+
timeout: Optional[pulumi.Input[builtins.int]] = None,
|
|
161
|
+
vpc_id: Optional[pulumi.Input[builtins.str]] = None,
|
|
162
|
+
wait_on_peering_status: Optional[pulumi.Input[builtins.bool]] = None):
|
|
140
163
|
"""
|
|
141
164
|
Input properties used for looking up and filtering VpcGcpPeering resources.
|
|
142
|
-
:param pulumi.Input[bool] auto_create_routes: VPC peering auto created routes
|
|
143
|
-
:param pulumi.Input[int] instance_id: The CloudAMQP instance identifier.
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
:param pulumi.Input[
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
:param pulumi.Input[
|
|
153
|
-
|
|
165
|
+
:param pulumi.Input[builtins.bool] auto_create_routes: VPC peering auto created routes
|
|
166
|
+
:param pulumi.Input[builtins.int] instance_id: The CloudAMQP instance identifier.
|
|
167
|
+
|
|
168
|
+
***Deprecated:*** from [v1.16.0], will be removed in next major version (v2.0)
|
|
169
|
+
:param pulumi.Input[builtins.str] peer_network_uri: Network URI of the VPC network to which you will peer with.
|
|
170
|
+
See examples above for the format.
|
|
171
|
+
:param pulumi.Input[builtins.int] sleep: Configurable sleep time (seconds) between retries when
|
|
172
|
+
requesting or reading peering. Default set to 10 seconds.
|
|
173
|
+
|
|
174
|
+
***Note:*** Available from [v1.29.0]
|
|
175
|
+
:param pulumi.Input[builtins.str] state: VPC peering state
|
|
176
|
+
:param pulumi.Input[builtins.str] state_details: VPC peering state details
|
|
177
|
+
:param pulumi.Input[builtins.int] timeout: Configurable timeout time (seconds) before retries times
|
|
178
|
+
out. Default set to 1800 seconds.
|
|
179
|
+
|
|
180
|
+
***Note:*** Available from [v1.29.0]
|
|
181
|
+
:param pulumi.Input[builtins.str] vpc_id: The managed VPC identifier.
|
|
182
|
+
|
|
183
|
+
***Note:*** Available from [v1.16.0], will be required in next major version (v2.0)
|
|
184
|
+
:param pulumi.Input[builtins.bool] wait_on_peering_status: Makes the resource wait until the peering is connected.
|
|
185
|
+
Default set to false.
|
|
186
|
+
|
|
187
|
+
***Note:*** Available from [v1.28.0]
|
|
154
188
|
"""
|
|
155
189
|
if auto_create_routes is not None:
|
|
156
190
|
pulumi.set(__self__, "auto_create_routes", auto_create_routes)
|
|
@@ -173,113 +207,124 @@ class _VpcGcpPeeringState:
|
|
|
173
207
|
|
|
174
208
|
@property
|
|
175
209
|
@pulumi.getter(name="autoCreateRoutes")
|
|
176
|
-
def auto_create_routes(self) -> Optional[pulumi.Input[bool]]:
|
|
210
|
+
def auto_create_routes(self) -> Optional[pulumi.Input[builtins.bool]]:
|
|
177
211
|
"""
|
|
178
212
|
VPC peering auto created routes
|
|
179
213
|
"""
|
|
180
214
|
return pulumi.get(self, "auto_create_routes")
|
|
181
215
|
|
|
182
216
|
@auto_create_routes.setter
|
|
183
|
-
def auto_create_routes(self, value: Optional[pulumi.Input[bool]]):
|
|
217
|
+
def auto_create_routes(self, value: Optional[pulumi.Input[builtins.bool]]):
|
|
184
218
|
pulumi.set(self, "auto_create_routes", value)
|
|
185
219
|
|
|
186
220
|
@property
|
|
187
221
|
@pulumi.getter(name="instanceId")
|
|
188
|
-
def instance_id(self) -> Optional[pulumi.Input[int]]:
|
|
222
|
+
def instance_id(self) -> Optional[pulumi.Input[builtins.int]]:
|
|
189
223
|
"""
|
|
190
|
-
The CloudAMQP instance identifier.
|
|
224
|
+
The CloudAMQP instance identifier.
|
|
225
|
+
|
|
226
|
+
***Deprecated:*** from [v1.16.0], will be removed in next major version (v2.0)
|
|
191
227
|
"""
|
|
192
228
|
return pulumi.get(self, "instance_id")
|
|
193
229
|
|
|
194
230
|
@instance_id.setter
|
|
195
|
-
def instance_id(self, value: Optional[pulumi.Input[int]]):
|
|
231
|
+
def instance_id(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
196
232
|
pulumi.set(self, "instance_id", value)
|
|
197
233
|
|
|
198
234
|
@property
|
|
199
235
|
@pulumi.getter(name="peerNetworkUri")
|
|
200
|
-
def peer_network_uri(self) -> Optional[pulumi.Input[str]]:
|
|
236
|
+
def peer_network_uri(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
201
237
|
"""
|
|
202
|
-
Network URI of the VPC network to which you will peer with.
|
|
238
|
+
Network URI of the VPC network to which you will peer with.
|
|
239
|
+
See examples above for the format.
|
|
203
240
|
"""
|
|
204
241
|
return pulumi.get(self, "peer_network_uri")
|
|
205
242
|
|
|
206
243
|
@peer_network_uri.setter
|
|
207
|
-
def peer_network_uri(self, value: Optional[pulumi.Input[str]]):
|
|
244
|
+
def peer_network_uri(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
208
245
|
pulumi.set(self, "peer_network_uri", value)
|
|
209
246
|
|
|
210
247
|
@property
|
|
211
248
|
@pulumi.getter
|
|
212
|
-
def sleep(self) -> Optional[pulumi.Input[int]]:
|
|
249
|
+
def sleep(self) -> Optional[pulumi.Input[builtins.int]]:
|
|
213
250
|
"""
|
|
214
|
-
Configurable sleep time (seconds) between retries when
|
|
215
|
-
peering. Default set to 10 seconds.
|
|
251
|
+
Configurable sleep time (seconds) between retries when
|
|
252
|
+
requesting or reading peering. Default set to 10 seconds.
|
|
253
|
+
|
|
254
|
+
***Note:*** Available from [v1.29.0]
|
|
216
255
|
"""
|
|
217
256
|
return pulumi.get(self, "sleep")
|
|
218
257
|
|
|
219
258
|
@sleep.setter
|
|
220
|
-
def sleep(self, value: Optional[pulumi.Input[int]]):
|
|
259
|
+
def sleep(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
221
260
|
pulumi.set(self, "sleep", value)
|
|
222
261
|
|
|
223
262
|
@property
|
|
224
263
|
@pulumi.getter
|
|
225
|
-
def state(self) -> Optional[pulumi.Input[str]]:
|
|
264
|
+
def state(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
226
265
|
"""
|
|
227
266
|
VPC peering state
|
|
228
267
|
"""
|
|
229
268
|
return pulumi.get(self, "state")
|
|
230
269
|
|
|
231
270
|
@state.setter
|
|
232
|
-
def state(self, value: Optional[pulumi.Input[str]]):
|
|
271
|
+
def state(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
233
272
|
pulumi.set(self, "state", value)
|
|
234
273
|
|
|
235
274
|
@property
|
|
236
275
|
@pulumi.getter(name="stateDetails")
|
|
237
|
-
def state_details(self) -> Optional[pulumi.Input[str]]:
|
|
276
|
+
def state_details(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
238
277
|
"""
|
|
239
278
|
VPC peering state details
|
|
240
279
|
"""
|
|
241
280
|
return pulumi.get(self, "state_details")
|
|
242
281
|
|
|
243
282
|
@state_details.setter
|
|
244
|
-
def state_details(self, value: Optional[pulumi.Input[str]]):
|
|
283
|
+
def state_details(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
245
284
|
pulumi.set(self, "state_details", value)
|
|
246
285
|
|
|
247
286
|
@property
|
|
248
287
|
@pulumi.getter
|
|
249
|
-
def timeout(self) -> Optional[pulumi.Input[int]]:
|
|
288
|
+
def timeout(self) -> Optional[pulumi.Input[builtins.int]]:
|
|
250
289
|
"""
|
|
251
|
-
Configurable timeout time (seconds) before retries times
|
|
252
|
-
to 1800 seconds.
|
|
290
|
+
Configurable timeout time (seconds) before retries times
|
|
291
|
+
out. Default set to 1800 seconds.
|
|
292
|
+
|
|
293
|
+
***Note:*** Available from [v1.29.0]
|
|
253
294
|
"""
|
|
254
295
|
return pulumi.get(self, "timeout")
|
|
255
296
|
|
|
256
297
|
@timeout.setter
|
|
257
|
-
def timeout(self, value: Optional[pulumi.Input[int]]):
|
|
298
|
+
def timeout(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
258
299
|
pulumi.set(self, "timeout", value)
|
|
259
300
|
|
|
260
301
|
@property
|
|
261
302
|
@pulumi.getter(name="vpcId")
|
|
262
|
-
def vpc_id(self) -> Optional[pulumi.Input[str]]:
|
|
303
|
+
def vpc_id(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
263
304
|
"""
|
|
264
|
-
The managed VPC identifier.
|
|
305
|
+
The managed VPC identifier.
|
|
306
|
+
|
|
307
|
+
***Note:*** Available from [v1.16.0], will be required in next major version (v2.0)
|
|
265
308
|
"""
|
|
266
309
|
return pulumi.get(self, "vpc_id")
|
|
267
310
|
|
|
268
311
|
@vpc_id.setter
|
|
269
|
-
def vpc_id(self, value: Optional[pulumi.Input[str]]):
|
|
312
|
+
def vpc_id(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
270
313
|
pulumi.set(self, "vpc_id", value)
|
|
271
314
|
|
|
272
315
|
@property
|
|
273
316
|
@pulumi.getter(name="waitOnPeeringStatus")
|
|
274
|
-
def wait_on_peering_status(self) -> Optional[pulumi.Input[bool]]:
|
|
317
|
+
def wait_on_peering_status(self) -> Optional[pulumi.Input[builtins.bool]]:
|
|
275
318
|
"""
|
|
276
319
|
Makes the resource wait until the peering is connected.
|
|
277
|
-
Default set to false.
|
|
320
|
+
Default set to false.
|
|
321
|
+
|
|
322
|
+
***Note:*** Available from [v1.28.0]
|
|
278
323
|
"""
|
|
279
324
|
return pulumi.get(self, "wait_on_peering_status")
|
|
280
325
|
|
|
281
326
|
@wait_on_peering_status.setter
|
|
282
|
-
def wait_on_peering_status(self, value: Optional[pulumi.Input[bool]]):
|
|
327
|
+
def wait_on_peering_status(self, value: Optional[pulumi.Input[builtins.bool]]):
|
|
283
328
|
pulumi.set(self, "wait_on_peering_status", value)
|
|
284
329
|
|
|
285
330
|
|
|
@@ -288,258 +333,48 @@ class VpcGcpPeering(pulumi.CustomResource):
|
|
|
288
333
|
def __init__(__self__,
|
|
289
334
|
resource_name: str,
|
|
290
335
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
291
|
-
instance_id: Optional[pulumi.Input[int]] = None,
|
|
292
|
-
peer_network_uri: Optional[pulumi.Input[str]] = None,
|
|
293
|
-
sleep: Optional[pulumi.Input[int]] = None,
|
|
294
|
-
timeout: Optional[pulumi.Input[int]] = None,
|
|
295
|
-
vpc_id: Optional[pulumi.Input[str]] = None,
|
|
296
|
-
wait_on_peering_status: Optional[pulumi.Input[bool]] = None,
|
|
336
|
+
instance_id: Optional[pulumi.Input[builtins.int]] = None,
|
|
337
|
+
peer_network_uri: Optional[pulumi.Input[builtins.str]] = None,
|
|
338
|
+
sleep: Optional[pulumi.Input[builtins.int]] = None,
|
|
339
|
+
timeout: Optional[pulumi.Input[builtins.int]] = None,
|
|
340
|
+
vpc_id: Optional[pulumi.Input[builtins.str]] = None,
|
|
341
|
+
wait_on_peering_status: Optional[pulumi.Input[builtins.bool]] = None,
|
|
297
342
|
__props__=None):
|
|
298
343
|
"""
|
|
299
|
-
This resouce creates a VPC peering configuration for the CloudAMQP instance. The configuration will
|
|
300
|
-
connect to another VPC network hosted on Google Cloud Platform (GCP). See the
|
|
301
|
-
[GCP documentation](https://cloud.google.com/vpc/docs/using-vpc-peering) for more information on how
|
|
302
|
-
to create the VPC peering configuration.
|
|
303
|
-
|
|
304
|
-
> **Note:** Creating a VPC peering will automatically add firewall rules for the peered subnet.
|
|
305
|
-
|
|
306
|
-
<details>
|
|
307
|
-
<summary>
|
|
308
|
-
<i>Default VPC peering firewall rule</i>
|
|
309
|
-
</summary>
|
|
310
|
-
|
|
311
|
-
## Example Usage
|
|
312
|
-
|
|
313
|
-
<details>
|
|
314
|
-
<summary>
|
|
315
|
-
<b>
|
|
316
|
-
<i>VPC peering before v1.16.0</i>
|
|
317
|
-
</b>
|
|
318
|
-
</summary>
|
|
319
|
-
|
|
320
|
-
```python
|
|
321
|
-
import pulumi
|
|
322
|
-
import pulumi_cloudamqp as cloudamqp
|
|
323
|
-
|
|
324
|
-
# CloudAMQP instance
|
|
325
|
-
instance = cloudamqp.Instance("instance",
|
|
326
|
-
name="terraform-vpc-peering",
|
|
327
|
-
plan="bunny-1",
|
|
328
|
-
region="google-compute-engine::europe-north1",
|
|
329
|
-
tags=["terraform"],
|
|
330
|
-
vpc_subnet="10.40.72.0/24")
|
|
331
|
-
# VPC information
|
|
332
|
-
vpc_info = instance.id.apply(lambda id: cloudamqp.get_vpc_gcp_info_output(instance_id=id))
|
|
333
|
-
# VPC peering configuration
|
|
334
|
-
vpc_peering_request = cloudamqp.VpcGcpPeering("vpc_peering_request",
|
|
335
|
-
instance_id=instance.id,
|
|
336
|
-
peer_network_uri="https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<VPC-NETWORK-NAME>")
|
|
337
|
-
```
|
|
338
|
-
|
|
339
|
-
</details>
|
|
340
|
-
|
|
341
|
-
<details>
|
|
342
|
-
<summary>
|
|
343
|
-
<b>
|
|
344
|
-
<i>VPC peering from v1.16.0 (Managed VPC)</i>
|
|
345
|
-
</b>
|
|
346
|
-
</summary>
|
|
347
|
-
|
|
348
|
-
```python
|
|
349
|
-
import pulumi
|
|
350
|
-
import pulumi_cloudamqp as cloudamqp
|
|
351
|
-
|
|
352
|
-
# Managed VPC resource
|
|
353
|
-
vpc = cloudamqp.Vpc("vpc",
|
|
354
|
-
name="<VPC name>",
|
|
355
|
-
region="google-compute-engine::europe-north1",
|
|
356
|
-
subnet="10.56.72.0/24",
|
|
357
|
-
tags=[])
|
|
358
|
-
# CloudAMQP instance
|
|
359
|
-
instance = cloudamqp.Instance("instance",
|
|
360
|
-
name="terraform-vpc-peering",
|
|
361
|
-
plan="bunny-1",
|
|
362
|
-
region="google-compute-engine::europe-north1",
|
|
363
|
-
tags=["terraform"],
|
|
364
|
-
vpc_id=vpc.id)
|
|
365
|
-
# VPC information
|
|
366
|
-
vpc_info = cloudamqp.get_vpc_gcp_info(vpc_id=vpc.info)
|
|
367
|
-
# VPC peering configuration
|
|
368
|
-
vpc_peering_request = cloudamqp.VpcGcpPeering("vpc_peering_request",
|
|
369
|
-
vpc_id=vpc.id,
|
|
370
|
-
peer_network_uri="https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<VPC-NETWORK-NAME>")
|
|
371
|
-
```
|
|
372
|
-
|
|
373
|
-
</details>
|
|
374
|
-
|
|
375
|
-
<details>
|
|
376
|
-
<summary>
|
|
377
|
-
<b>
|
|
378
|
-
<i>VPC peering from v1.28.0, wait_on_peering_status </i>
|
|
379
|
-
</b>
|
|
380
|
-
</summary>
|
|
381
|
-
|
|
382
|
-
Default peering request, no need to set `wait_on_peering_status`. It's default set to false and will
|
|
383
|
-
not wait on peering status. Create resource will be considered completed, regardless of the status of the state.
|
|
384
|
-
|
|
385
|
-
```python
|
|
386
|
-
import pulumi
|
|
387
|
-
import pulumi_cloudamqp as cloudamqp
|
|
388
|
-
|
|
389
|
-
vpc_peering_request = cloudamqp.VpcGcpPeering("vpc_peering_request",
|
|
390
|
-
vpc_id=vpc["id"],
|
|
391
|
-
peer_network_uri="https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<VPC-NETWORK-NAME>")
|
|
392
|
-
```
|
|
393
|
-
|
|
394
|
-
Peering request and waiting for peering status of the state to change to ACTIVE before the create resource is consider complete.
|
|
395
|
-
This is done once both side have done the peering.
|
|
396
|
-
|
|
397
|
-
```python
|
|
398
|
-
import pulumi
|
|
399
|
-
import pulumi_cloudamqp as cloudamqp
|
|
400
|
-
|
|
401
|
-
vpc_peering_request = cloudamqp.VpcGcpPeering("vpc_peering_request",
|
|
402
|
-
vpc_id=vpc["id"],
|
|
403
|
-
wait_on_peering_status=True,
|
|
404
|
-
peer_network_uri="https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<VPC-NETWORK-NAME>")
|
|
405
|
-
```
|
|
406
|
-
|
|
407
|
-
</details>
|
|
408
|
-
|
|
409
|
-
### With Additional Firewall Rules
|
|
410
|
-
|
|
411
|
-
<details>
|
|
412
|
-
<summary>
|
|
413
|
-
<b>
|
|
414
|
-
<i>VPC peering before v1.16.0</i>
|
|
415
|
-
</b>
|
|
416
|
-
</summary>
|
|
417
|
-
|
|
418
|
-
```python
|
|
419
|
-
import pulumi
|
|
420
|
-
import pulumi_cloudamqp as cloudamqp
|
|
421
|
-
|
|
422
|
-
# VPC peering configuration
|
|
423
|
-
vpc_peering_request = cloudamqp.VpcGcpPeering("vpc_peering_request",
|
|
424
|
-
instance_id=instance["id"],
|
|
425
|
-
peer_network_uri=peer_network_uri)
|
|
426
|
-
# Firewall rules
|
|
427
|
-
firewall_settings = cloudamqp.SecurityFirewall("firewall_settings",
|
|
428
|
-
instance_id=instance["id"],
|
|
429
|
-
rules=[
|
|
430
|
-
{
|
|
431
|
-
"ip": peer_subnet,
|
|
432
|
-
"ports": [15672],
|
|
433
|
-
"services": [
|
|
434
|
-
"AMQP",
|
|
435
|
-
"AMQPS",
|
|
436
|
-
"STREAM",
|
|
437
|
-
"STREAM_SSL",
|
|
438
|
-
],
|
|
439
|
-
"description": "VPC peering for <NETWORK>",
|
|
440
|
-
},
|
|
441
|
-
{
|
|
442
|
-
"ip": "192.168.0.0/24",
|
|
443
|
-
"ports": [
|
|
444
|
-
4567,
|
|
445
|
-
4568,
|
|
446
|
-
],
|
|
447
|
-
"services": [
|
|
448
|
-
"AMQP",
|
|
449
|
-
"AMQPS",
|
|
450
|
-
"HTTPS",
|
|
451
|
-
],
|
|
452
|
-
},
|
|
453
|
-
],
|
|
454
|
-
opts = pulumi.ResourceOptions(depends_on=[vpc_peering_request]))
|
|
455
|
-
```
|
|
456
|
-
|
|
457
|
-
</details>
|
|
458
|
-
|
|
459
|
-
<details>
|
|
460
|
-
<summary>
|
|
461
|
-
<b>
|
|
462
|
-
<i>VPC peering from v1.16.0 (Managed VPC)</i>
|
|
463
|
-
</b>
|
|
464
|
-
</summary>
|
|
465
|
-
|
|
466
|
-
```python
|
|
467
|
-
import pulumi
|
|
468
|
-
import pulumi_cloudamqp as cloudamqp
|
|
469
|
-
|
|
470
|
-
# VPC peering configuration
|
|
471
|
-
vpc_peering_request = cloudamqp.VpcGcpPeering("vpc_peering_request",
|
|
472
|
-
vpc_id=vpc["id"],
|
|
473
|
-
peer_network_uri=peer_network_uri)
|
|
474
|
-
# Firewall rules
|
|
475
|
-
firewall_settings = cloudamqp.SecurityFirewall("firewall_settings",
|
|
476
|
-
instance_id=instance["id"],
|
|
477
|
-
rules=[
|
|
478
|
-
{
|
|
479
|
-
"ip": peer_subnet,
|
|
480
|
-
"ports": [15672],
|
|
481
|
-
"services": [
|
|
482
|
-
"AMQP",
|
|
483
|
-
"AMQPS",
|
|
484
|
-
"STREAM",
|
|
485
|
-
"STREAM_SSL",
|
|
486
|
-
],
|
|
487
|
-
"description": "VPC peering for <NETWORK>",
|
|
488
|
-
},
|
|
489
|
-
{
|
|
490
|
-
"ip": "0.0.0.0/0",
|
|
491
|
-
"ports": [],
|
|
492
|
-
"services": ["HTTPS"],
|
|
493
|
-
"description": "MGMT interface",
|
|
494
|
-
},
|
|
495
|
-
],
|
|
496
|
-
opts = pulumi.ResourceOptions(depends_on=[vpc_peering_request]))
|
|
497
|
-
```
|
|
498
|
-
|
|
499
|
-
</details>
|
|
500
|
-
|
|
501
|
-
## Depedency
|
|
502
|
-
|
|
503
|
-
*Before v1.16.0*
|
|
504
|
-
This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
|
|
505
|
-
|
|
506
|
-
*From v1.16.0*
|
|
507
|
-
This resource depends on CloudAMQP managed VPC identifier, `cloudamqp_vpc.vpc.id` or instance
|
|
508
|
-
identifier, `cloudamqp_instance.instance.id`.
|
|
509
|
-
|
|
510
|
-
## Create VPC Peering with additional firewall rules
|
|
511
|
-
|
|
512
|
-
To create a VPC peering configuration with additional firewall rules, it's required to chain the
|
|
513
|
-
SecurityFirewall
|
|
514
|
-
resource to avoid parallel conflicting resource calls. This is done by adding dependency from the
|
|
515
|
-
firewall resource to the VPC peering resource.
|
|
516
|
-
|
|
517
|
-
Furthermore, since all firewall rules are overwritten, the otherwise automatically added rules for
|
|
518
|
-
the VPC peering also needs to be added.
|
|
519
|
-
|
|
520
|
-
See example below.
|
|
521
|
-
|
|
522
344
|
## Import
|
|
523
345
|
|
|
524
346
|
### Peering network URI
|
|
525
347
|
|
|
526
|
-
This is required to be able to import the correct peering. Following the same format as the argument
|
|
348
|
+
This is required to be able to import the correct peering. Following the same format as the argument
|
|
349
|
+
|
|
350
|
+
reference.
|
|
527
351
|
|
|
528
352
|
hcl
|
|
529
353
|
|
|
530
|
-
https://www.googleapis.com/compute/v1/projects
|
|
354
|
+
https://www.googleapis.com/compute/v1/projects/PROJECT-NAME/global/networks/VPC-NETWORK-NAME
|
|
531
355
|
|
|
532
356
|
:param str resource_name: The name of the resource.
|
|
533
357
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
534
|
-
:param pulumi.Input[int] instance_id: The CloudAMQP instance identifier.
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
358
|
+
:param pulumi.Input[builtins.int] instance_id: The CloudAMQP instance identifier.
|
|
359
|
+
|
|
360
|
+
***Deprecated:*** from [v1.16.0], will be removed in next major version (v2.0)
|
|
361
|
+
:param pulumi.Input[builtins.str] peer_network_uri: Network URI of the VPC network to which you will peer with.
|
|
362
|
+
See examples above for the format.
|
|
363
|
+
:param pulumi.Input[builtins.int] sleep: Configurable sleep time (seconds) between retries when
|
|
364
|
+
requesting or reading peering. Default set to 10 seconds.
|
|
365
|
+
|
|
366
|
+
***Note:*** Available from [v1.29.0]
|
|
367
|
+
:param pulumi.Input[builtins.int] timeout: Configurable timeout time (seconds) before retries times
|
|
368
|
+
out. Default set to 1800 seconds.
|
|
369
|
+
|
|
370
|
+
***Note:*** Available from [v1.29.0]
|
|
371
|
+
:param pulumi.Input[builtins.str] vpc_id: The managed VPC identifier.
|
|
372
|
+
|
|
373
|
+
***Note:*** Available from [v1.16.0], will be required in next major version (v2.0)
|
|
374
|
+
:param pulumi.Input[builtins.bool] wait_on_peering_status: Makes the resource wait until the peering is connected.
|
|
375
|
+
Default set to false.
|
|
376
|
+
|
|
377
|
+
***Note:*** Available from [v1.28.0]
|
|
543
378
|
"""
|
|
544
379
|
...
|
|
545
380
|
@overload
|
|
@@ -548,238 +383,17 @@ class VpcGcpPeering(pulumi.CustomResource):
|
|
|
548
383
|
args: VpcGcpPeeringArgs,
|
|
549
384
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
550
385
|
"""
|
|
551
|
-
This resouce creates a VPC peering configuration for the CloudAMQP instance. The configuration will
|
|
552
|
-
connect to another VPC network hosted on Google Cloud Platform (GCP). See the
|
|
553
|
-
[GCP documentation](https://cloud.google.com/vpc/docs/using-vpc-peering) for more information on how
|
|
554
|
-
to create the VPC peering configuration.
|
|
555
|
-
|
|
556
|
-
> **Note:** Creating a VPC peering will automatically add firewall rules for the peered subnet.
|
|
557
|
-
|
|
558
|
-
<details>
|
|
559
|
-
<summary>
|
|
560
|
-
<i>Default VPC peering firewall rule</i>
|
|
561
|
-
</summary>
|
|
562
|
-
|
|
563
|
-
## Example Usage
|
|
564
|
-
|
|
565
|
-
<details>
|
|
566
|
-
<summary>
|
|
567
|
-
<b>
|
|
568
|
-
<i>VPC peering before v1.16.0</i>
|
|
569
|
-
</b>
|
|
570
|
-
</summary>
|
|
571
|
-
|
|
572
|
-
```python
|
|
573
|
-
import pulumi
|
|
574
|
-
import pulumi_cloudamqp as cloudamqp
|
|
575
|
-
|
|
576
|
-
# CloudAMQP instance
|
|
577
|
-
instance = cloudamqp.Instance("instance",
|
|
578
|
-
name="terraform-vpc-peering",
|
|
579
|
-
plan="bunny-1",
|
|
580
|
-
region="google-compute-engine::europe-north1",
|
|
581
|
-
tags=["terraform"],
|
|
582
|
-
vpc_subnet="10.40.72.0/24")
|
|
583
|
-
# VPC information
|
|
584
|
-
vpc_info = instance.id.apply(lambda id: cloudamqp.get_vpc_gcp_info_output(instance_id=id))
|
|
585
|
-
# VPC peering configuration
|
|
586
|
-
vpc_peering_request = cloudamqp.VpcGcpPeering("vpc_peering_request",
|
|
587
|
-
instance_id=instance.id,
|
|
588
|
-
peer_network_uri="https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<VPC-NETWORK-NAME>")
|
|
589
|
-
```
|
|
590
|
-
|
|
591
|
-
</details>
|
|
592
|
-
|
|
593
|
-
<details>
|
|
594
|
-
<summary>
|
|
595
|
-
<b>
|
|
596
|
-
<i>VPC peering from v1.16.0 (Managed VPC)</i>
|
|
597
|
-
</b>
|
|
598
|
-
</summary>
|
|
599
|
-
|
|
600
|
-
```python
|
|
601
|
-
import pulumi
|
|
602
|
-
import pulumi_cloudamqp as cloudamqp
|
|
603
|
-
|
|
604
|
-
# Managed VPC resource
|
|
605
|
-
vpc = cloudamqp.Vpc("vpc",
|
|
606
|
-
name="<VPC name>",
|
|
607
|
-
region="google-compute-engine::europe-north1",
|
|
608
|
-
subnet="10.56.72.0/24",
|
|
609
|
-
tags=[])
|
|
610
|
-
# CloudAMQP instance
|
|
611
|
-
instance = cloudamqp.Instance("instance",
|
|
612
|
-
name="terraform-vpc-peering",
|
|
613
|
-
plan="bunny-1",
|
|
614
|
-
region="google-compute-engine::europe-north1",
|
|
615
|
-
tags=["terraform"],
|
|
616
|
-
vpc_id=vpc.id)
|
|
617
|
-
# VPC information
|
|
618
|
-
vpc_info = cloudamqp.get_vpc_gcp_info(vpc_id=vpc.info)
|
|
619
|
-
# VPC peering configuration
|
|
620
|
-
vpc_peering_request = cloudamqp.VpcGcpPeering("vpc_peering_request",
|
|
621
|
-
vpc_id=vpc.id,
|
|
622
|
-
peer_network_uri="https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<VPC-NETWORK-NAME>")
|
|
623
|
-
```
|
|
624
|
-
|
|
625
|
-
</details>
|
|
626
|
-
|
|
627
|
-
<details>
|
|
628
|
-
<summary>
|
|
629
|
-
<b>
|
|
630
|
-
<i>VPC peering from v1.28.0, wait_on_peering_status </i>
|
|
631
|
-
</b>
|
|
632
|
-
</summary>
|
|
633
|
-
|
|
634
|
-
Default peering request, no need to set `wait_on_peering_status`. It's default set to false and will
|
|
635
|
-
not wait on peering status. Create resource will be considered completed, regardless of the status of the state.
|
|
636
|
-
|
|
637
|
-
```python
|
|
638
|
-
import pulumi
|
|
639
|
-
import pulumi_cloudamqp as cloudamqp
|
|
640
|
-
|
|
641
|
-
vpc_peering_request = cloudamqp.VpcGcpPeering("vpc_peering_request",
|
|
642
|
-
vpc_id=vpc["id"],
|
|
643
|
-
peer_network_uri="https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<VPC-NETWORK-NAME>")
|
|
644
|
-
```
|
|
645
|
-
|
|
646
|
-
Peering request and waiting for peering status of the state to change to ACTIVE before the create resource is consider complete.
|
|
647
|
-
This is done once both side have done the peering.
|
|
648
|
-
|
|
649
|
-
```python
|
|
650
|
-
import pulumi
|
|
651
|
-
import pulumi_cloudamqp as cloudamqp
|
|
652
|
-
|
|
653
|
-
vpc_peering_request = cloudamqp.VpcGcpPeering("vpc_peering_request",
|
|
654
|
-
vpc_id=vpc["id"],
|
|
655
|
-
wait_on_peering_status=True,
|
|
656
|
-
peer_network_uri="https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<VPC-NETWORK-NAME>")
|
|
657
|
-
```
|
|
658
|
-
|
|
659
|
-
</details>
|
|
660
|
-
|
|
661
|
-
### With Additional Firewall Rules
|
|
662
|
-
|
|
663
|
-
<details>
|
|
664
|
-
<summary>
|
|
665
|
-
<b>
|
|
666
|
-
<i>VPC peering before v1.16.0</i>
|
|
667
|
-
</b>
|
|
668
|
-
</summary>
|
|
669
|
-
|
|
670
|
-
```python
|
|
671
|
-
import pulumi
|
|
672
|
-
import pulumi_cloudamqp as cloudamqp
|
|
673
|
-
|
|
674
|
-
# VPC peering configuration
|
|
675
|
-
vpc_peering_request = cloudamqp.VpcGcpPeering("vpc_peering_request",
|
|
676
|
-
instance_id=instance["id"],
|
|
677
|
-
peer_network_uri=peer_network_uri)
|
|
678
|
-
# Firewall rules
|
|
679
|
-
firewall_settings = cloudamqp.SecurityFirewall("firewall_settings",
|
|
680
|
-
instance_id=instance["id"],
|
|
681
|
-
rules=[
|
|
682
|
-
{
|
|
683
|
-
"ip": peer_subnet,
|
|
684
|
-
"ports": [15672],
|
|
685
|
-
"services": [
|
|
686
|
-
"AMQP",
|
|
687
|
-
"AMQPS",
|
|
688
|
-
"STREAM",
|
|
689
|
-
"STREAM_SSL",
|
|
690
|
-
],
|
|
691
|
-
"description": "VPC peering for <NETWORK>",
|
|
692
|
-
},
|
|
693
|
-
{
|
|
694
|
-
"ip": "192.168.0.0/24",
|
|
695
|
-
"ports": [
|
|
696
|
-
4567,
|
|
697
|
-
4568,
|
|
698
|
-
],
|
|
699
|
-
"services": [
|
|
700
|
-
"AMQP",
|
|
701
|
-
"AMQPS",
|
|
702
|
-
"HTTPS",
|
|
703
|
-
],
|
|
704
|
-
},
|
|
705
|
-
],
|
|
706
|
-
opts = pulumi.ResourceOptions(depends_on=[vpc_peering_request]))
|
|
707
|
-
```
|
|
708
|
-
|
|
709
|
-
</details>
|
|
710
|
-
|
|
711
|
-
<details>
|
|
712
|
-
<summary>
|
|
713
|
-
<b>
|
|
714
|
-
<i>VPC peering from v1.16.0 (Managed VPC)</i>
|
|
715
|
-
</b>
|
|
716
|
-
</summary>
|
|
717
|
-
|
|
718
|
-
```python
|
|
719
|
-
import pulumi
|
|
720
|
-
import pulumi_cloudamqp as cloudamqp
|
|
721
|
-
|
|
722
|
-
# VPC peering configuration
|
|
723
|
-
vpc_peering_request = cloudamqp.VpcGcpPeering("vpc_peering_request",
|
|
724
|
-
vpc_id=vpc["id"],
|
|
725
|
-
peer_network_uri=peer_network_uri)
|
|
726
|
-
# Firewall rules
|
|
727
|
-
firewall_settings = cloudamqp.SecurityFirewall("firewall_settings",
|
|
728
|
-
instance_id=instance["id"],
|
|
729
|
-
rules=[
|
|
730
|
-
{
|
|
731
|
-
"ip": peer_subnet,
|
|
732
|
-
"ports": [15672],
|
|
733
|
-
"services": [
|
|
734
|
-
"AMQP",
|
|
735
|
-
"AMQPS",
|
|
736
|
-
"STREAM",
|
|
737
|
-
"STREAM_SSL",
|
|
738
|
-
],
|
|
739
|
-
"description": "VPC peering for <NETWORK>",
|
|
740
|
-
},
|
|
741
|
-
{
|
|
742
|
-
"ip": "0.0.0.0/0",
|
|
743
|
-
"ports": [],
|
|
744
|
-
"services": ["HTTPS"],
|
|
745
|
-
"description": "MGMT interface",
|
|
746
|
-
},
|
|
747
|
-
],
|
|
748
|
-
opts = pulumi.ResourceOptions(depends_on=[vpc_peering_request]))
|
|
749
|
-
```
|
|
750
|
-
|
|
751
|
-
</details>
|
|
752
|
-
|
|
753
|
-
## Depedency
|
|
754
|
-
|
|
755
|
-
*Before v1.16.0*
|
|
756
|
-
This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
|
|
757
|
-
|
|
758
|
-
*From v1.16.0*
|
|
759
|
-
This resource depends on CloudAMQP managed VPC identifier, `cloudamqp_vpc.vpc.id` or instance
|
|
760
|
-
identifier, `cloudamqp_instance.instance.id`.
|
|
761
|
-
|
|
762
|
-
## Create VPC Peering with additional firewall rules
|
|
763
|
-
|
|
764
|
-
To create a VPC peering configuration with additional firewall rules, it's required to chain the
|
|
765
|
-
SecurityFirewall
|
|
766
|
-
resource to avoid parallel conflicting resource calls. This is done by adding dependency from the
|
|
767
|
-
firewall resource to the VPC peering resource.
|
|
768
|
-
|
|
769
|
-
Furthermore, since all firewall rules are overwritten, the otherwise automatically added rules for
|
|
770
|
-
the VPC peering also needs to be added.
|
|
771
|
-
|
|
772
|
-
See example below.
|
|
773
|
-
|
|
774
386
|
## Import
|
|
775
387
|
|
|
776
388
|
### Peering network URI
|
|
777
389
|
|
|
778
|
-
This is required to be able to import the correct peering. Following the same format as the argument
|
|
390
|
+
This is required to be able to import the correct peering. Following the same format as the argument
|
|
391
|
+
|
|
392
|
+
reference.
|
|
779
393
|
|
|
780
394
|
hcl
|
|
781
395
|
|
|
782
|
-
https://www.googleapis.com/compute/v1/projects
|
|
396
|
+
https://www.googleapis.com/compute/v1/projects/PROJECT-NAME/global/networks/VPC-NETWORK-NAME
|
|
783
397
|
|
|
784
398
|
:param str resource_name: The name of the resource.
|
|
785
399
|
:param VpcGcpPeeringArgs args: The arguments to use to populate this resource's properties.
|
|
@@ -796,12 +410,12 @@ class VpcGcpPeering(pulumi.CustomResource):
|
|
|
796
410
|
def _internal_init(__self__,
|
|
797
411
|
resource_name: str,
|
|
798
412
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
799
|
-
instance_id: Optional[pulumi.Input[int]] = None,
|
|
800
|
-
peer_network_uri: Optional[pulumi.Input[str]] = None,
|
|
801
|
-
sleep: Optional[pulumi.Input[int]] = None,
|
|
802
|
-
timeout: Optional[pulumi.Input[int]] = None,
|
|
803
|
-
vpc_id: Optional[pulumi.Input[str]] = None,
|
|
804
|
-
wait_on_peering_status: Optional[pulumi.Input[bool]] = None,
|
|
413
|
+
instance_id: Optional[pulumi.Input[builtins.int]] = None,
|
|
414
|
+
peer_network_uri: Optional[pulumi.Input[builtins.str]] = None,
|
|
415
|
+
sleep: Optional[pulumi.Input[builtins.int]] = None,
|
|
416
|
+
timeout: Optional[pulumi.Input[builtins.int]] = None,
|
|
417
|
+
vpc_id: Optional[pulumi.Input[builtins.str]] = None,
|
|
418
|
+
wait_on_peering_status: Optional[pulumi.Input[builtins.bool]] = None,
|
|
805
419
|
__props__=None):
|
|
806
420
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
807
421
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -832,15 +446,15 @@ class VpcGcpPeering(pulumi.CustomResource):
|
|
|
832
446
|
def get(resource_name: str,
|
|
833
447
|
id: pulumi.Input[str],
|
|
834
448
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
835
|
-
auto_create_routes: Optional[pulumi.Input[bool]] = None,
|
|
836
|
-
instance_id: Optional[pulumi.Input[int]] = None,
|
|
837
|
-
peer_network_uri: Optional[pulumi.Input[str]] = None,
|
|
838
|
-
sleep: Optional[pulumi.Input[int]] = None,
|
|
839
|
-
state: Optional[pulumi.Input[str]] = None,
|
|
840
|
-
state_details: Optional[pulumi.Input[str]] = None,
|
|
841
|
-
timeout: Optional[pulumi.Input[int]] = None,
|
|
842
|
-
vpc_id: Optional[pulumi.Input[str]] = None,
|
|
843
|
-
wait_on_peering_status: Optional[pulumi.Input[bool]] = None) -> 'VpcGcpPeering':
|
|
449
|
+
auto_create_routes: Optional[pulumi.Input[builtins.bool]] = None,
|
|
450
|
+
instance_id: Optional[pulumi.Input[builtins.int]] = None,
|
|
451
|
+
peer_network_uri: Optional[pulumi.Input[builtins.str]] = None,
|
|
452
|
+
sleep: Optional[pulumi.Input[builtins.int]] = None,
|
|
453
|
+
state: Optional[pulumi.Input[builtins.str]] = None,
|
|
454
|
+
state_details: Optional[pulumi.Input[builtins.str]] = None,
|
|
455
|
+
timeout: Optional[pulumi.Input[builtins.int]] = None,
|
|
456
|
+
vpc_id: Optional[pulumi.Input[builtins.str]] = None,
|
|
457
|
+
wait_on_peering_status: Optional[pulumi.Input[builtins.bool]] = None) -> 'VpcGcpPeering':
|
|
844
458
|
"""
|
|
845
459
|
Get an existing VpcGcpPeering resource's state with the given name, id, and optional extra
|
|
846
460
|
properties used to qualify the lookup.
|
|
@@ -848,18 +462,29 @@ class VpcGcpPeering(pulumi.CustomResource):
|
|
|
848
462
|
:param str resource_name: The unique name of the resulting resource.
|
|
849
463
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
850
464
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
851
|
-
:param pulumi.Input[bool] auto_create_routes: VPC peering auto created routes
|
|
852
|
-
:param pulumi.Input[int] instance_id: The CloudAMQP instance identifier.
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
:param pulumi.Input[
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
:param pulumi.Input[
|
|
862
|
-
|
|
465
|
+
:param pulumi.Input[builtins.bool] auto_create_routes: VPC peering auto created routes
|
|
466
|
+
:param pulumi.Input[builtins.int] instance_id: The CloudAMQP instance identifier.
|
|
467
|
+
|
|
468
|
+
***Deprecated:*** from [v1.16.0], will be removed in next major version (v2.0)
|
|
469
|
+
:param pulumi.Input[builtins.str] peer_network_uri: Network URI of the VPC network to which you will peer with.
|
|
470
|
+
See examples above for the format.
|
|
471
|
+
:param pulumi.Input[builtins.int] sleep: Configurable sleep time (seconds) between retries when
|
|
472
|
+
requesting or reading peering. Default set to 10 seconds.
|
|
473
|
+
|
|
474
|
+
***Note:*** Available from [v1.29.0]
|
|
475
|
+
:param pulumi.Input[builtins.str] state: VPC peering state
|
|
476
|
+
:param pulumi.Input[builtins.str] state_details: VPC peering state details
|
|
477
|
+
:param pulumi.Input[builtins.int] timeout: Configurable timeout time (seconds) before retries times
|
|
478
|
+
out. Default set to 1800 seconds.
|
|
479
|
+
|
|
480
|
+
***Note:*** Available from [v1.29.0]
|
|
481
|
+
:param pulumi.Input[builtins.str] vpc_id: The managed VPC identifier.
|
|
482
|
+
|
|
483
|
+
***Note:*** Available from [v1.16.0], will be required in next major version (v2.0)
|
|
484
|
+
:param pulumi.Input[builtins.bool] wait_on_peering_status: Makes the resource wait until the peering is connected.
|
|
485
|
+
Default set to false.
|
|
486
|
+
|
|
487
|
+
***Note:*** Available from [v1.28.0]
|
|
863
488
|
"""
|
|
864
489
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
865
490
|
|
|
@@ -878,7 +503,7 @@ class VpcGcpPeering(pulumi.CustomResource):
|
|
|
878
503
|
|
|
879
504
|
@property
|
|
880
505
|
@pulumi.getter(name="autoCreateRoutes")
|
|
881
|
-
def auto_create_routes(self) -> pulumi.Output[bool]:
|
|
506
|
+
def auto_create_routes(self) -> pulumi.Output[builtins.bool]:
|
|
882
507
|
"""
|
|
883
508
|
VPC peering auto created routes
|
|
884
509
|
"""
|
|
@@ -886,32 +511,37 @@ class VpcGcpPeering(pulumi.CustomResource):
|
|
|
886
511
|
|
|
887
512
|
@property
|
|
888
513
|
@pulumi.getter(name="instanceId")
|
|
889
|
-
def instance_id(self) -> pulumi.Output[Optional[int]]:
|
|
514
|
+
def instance_id(self) -> pulumi.Output[Optional[builtins.int]]:
|
|
890
515
|
"""
|
|
891
|
-
The CloudAMQP instance identifier.
|
|
516
|
+
The CloudAMQP instance identifier.
|
|
517
|
+
|
|
518
|
+
***Deprecated:*** from [v1.16.0], will be removed in next major version (v2.0)
|
|
892
519
|
"""
|
|
893
520
|
return pulumi.get(self, "instance_id")
|
|
894
521
|
|
|
895
522
|
@property
|
|
896
523
|
@pulumi.getter(name="peerNetworkUri")
|
|
897
|
-
def peer_network_uri(self) -> pulumi.Output[str]:
|
|
524
|
+
def peer_network_uri(self) -> pulumi.Output[builtins.str]:
|
|
898
525
|
"""
|
|
899
|
-
Network URI of the VPC network to which you will peer with.
|
|
526
|
+
Network URI of the VPC network to which you will peer with.
|
|
527
|
+
See examples above for the format.
|
|
900
528
|
"""
|
|
901
529
|
return pulumi.get(self, "peer_network_uri")
|
|
902
530
|
|
|
903
531
|
@property
|
|
904
532
|
@pulumi.getter
|
|
905
|
-
def sleep(self) -> pulumi.Output[Optional[int]]:
|
|
533
|
+
def sleep(self) -> pulumi.Output[Optional[builtins.int]]:
|
|
906
534
|
"""
|
|
907
|
-
Configurable sleep time (seconds) between retries when
|
|
908
|
-
peering. Default set to 10 seconds.
|
|
535
|
+
Configurable sleep time (seconds) between retries when
|
|
536
|
+
requesting or reading peering. Default set to 10 seconds.
|
|
537
|
+
|
|
538
|
+
***Note:*** Available from [v1.29.0]
|
|
909
539
|
"""
|
|
910
540
|
return pulumi.get(self, "sleep")
|
|
911
541
|
|
|
912
542
|
@property
|
|
913
543
|
@pulumi.getter
|
|
914
|
-
def state(self) -> pulumi.Output[str]:
|
|
544
|
+
def state(self) -> pulumi.Output[builtins.str]:
|
|
915
545
|
"""
|
|
916
546
|
VPC peering state
|
|
917
547
|
"""
|
|
@@ -919,7 +549,7 @@ class VpcGcpPeering(pulumi.CustomResource):
|
|
|
919
549
|
|
|
920
550
|
@property
|
|
921
551
|
@pulumi.getter(name="stateDetails")
|
|
922
|
-
def state_details(self) -> pulumi.Output[str]:
|
|
552
|
+
def state_details(self) -> pulumi.Output[builtins.str]:
|
|
923
553
|
"""
|
|
924
554
|
VPC peering state details
|
|
925
555
|
"""
|
|
@@ -927,27 +557,33 @@ class VpcGcpPeering(pulumi.CustomResource):
|
|
|
927
557
|
|
|
928
558
|
@property
|
|
929
559
|
@pulumi.getter
|
|
930
|
-
def timeout(self) -> pulumi.Output[Optional[int]]:
|
|
560
|
+
def timeout(self) -> pulumi.Output[Optional[builtins.int]]:
|
|
931
561
|
"""
|
|
932
|
-
Configurable timeout time (seconds) before retries times
|
|
933
|
-
to 1800 seconds.
|
|
562
|
+
Configurable timeout time (seconds) before retries times
|
|
563
|
+
out. Default set to 1800 seconds.
|
|
564
|
+
|
|
565
|
+
***Note:*** Available from [v1.29.0]
|
|
934
566
|
"""
|
|
935
567
|
return pulumi.get(self, "timeout")
|
|
936
568
|
|
|
937
569
|
@property
|
|
938
570
|
@pulumi.getter(name="vpcId")
|
|
939
|
-
def vpc_id(self) -> pulumi.Output[Optional[str]]:
|
|
571
|
+
def vpc_id(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
940
572
|
"""
|
|
941
|
-
The managed VPC identifier.
|
|
573
|
+
The managed VPC identifier.
|
|
574
|
+
|
|
575
|
+
***Note:*** Available from [v1.16.0], will be required in next major version (v2.0)
|
|
942
576
|
"""
|
|
943
577
|
return pulumi.get(self, "vpc_id")
|
|
944
578
|
|
|
945
579
|
@property
|
|
946
580
|
@pulumi.getter(name="waitOnPeeringStatus")
|
|
947
|
-
def wait_on_peering_status(self) -> pulumi.Output[Optional[bool]]:
|
|
581
|
+
def wait_on_peering_status(self) -> pulumi.Output[Optional[builtins.bool]]:
|
|
948
582
|
"""
|
|
949
583
|
Makes the resource wait until the peering is connected.
|
|
950
|
-
Default set to false.
|
|
584
|
+
Default set to false.
|
|
585
|
+
|
|
586
|
+
***Note:*** Available from [v1.28.0]
|
|
951
587
|
"""
|
|
952
588
|
return pulumi.get(self, "wait_on_peering_status")
|
|
953
589
|
|