pulumi-consul 3.11.2__py3-none-any.whl → 3.11.3__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-consul might be problematic. Click here for more details.
- pulumi_consul/_inputs.py +22 -22
- pulumi_consul/acl_auth_method.py +4 -8
- pulumi_consul/acl_binding_rule.py +2 -4
- pulumi_consul/acl_policy.py +2 -6
- pulumi_consul/acl_role.py +11 -11
- pulumi_consul/acl_role_policy_attachment.py +8 -10
- pulumi_consul/acl_token.py +14 -14
- pulumi_consul/admin_partition.py +6 -6
- pulumi_consul/agent_service.py +2 -4
- pulumi_consul/autopilot_config.py +0 -4
- pulumi_consul/catalog_entry.py +0 -46
- pulumi_consul/certificate_authority.py +0 -40
- pulumi_consul/config_entry.py +52 -46
- pulumi_consul/config_entry_service_defaults.py +21 -21
- pulumi_consul/config_entry_service_intentions.py +27 -27
- pulumi_consul/config_entry_service_resolver.py +57 -59
- pulumi_consul/config_entry_service_router.py +21 -61
- pulumi_consul/config_entry_service_splitter.py +22 -20
- pulumi_consul/get_acl_auth_method.py +0 -4
- pulumi_consul/get_acl_policy.py +0 -4
- pulumi_consul/get_acl_role.py +2 -4
- pulumi_consul/get_acl_token.py +0 -4
- pulumi_consul/get_acl_token_secret_id.py +8 -10
- pulumi_consul/get_agent_config.py +0 -4
- pulumi_consul/get_autopilot_health.py +0 -4
- pulumi_consul/get_catalog_service.py +30 -4
- pulumi_consul/get_catalog_services.py +32 -0
- pulumi_consul/get_key_prefix.py +18 -26
- pulumi_consul/get_keys.py +4 -10
- pulumi_consul/get_network_area_members.py +6 -10
- pulumi_consul/get_network_segments.py +4 -8
- pulumi_consul/get_peering.py +0 -4
- pulumi_consul/get_peerings.py +0 -4
- pulumi_consul/get_service.py +30 -4
- pulumi_consul/get_services.py +32 -0
- pulumi_consul/intention.py +10 -18
- pulumi_consul/key_prefix.py +26 -30
- pulumi_consul/keys.py +6 -10
- pulumi_consul/license.py +4 -6
- pulumi_consul/namespace.py +2 -4
- pulumi_consul/network_area.py +0 -4
- pulumi_consul/node.py +6 -6
- pulumi_consul/outputs.py +22 -22
- pulumi_consul/peering.py +8 -22
- pulumi_consul/peering_token.py +0 -4
- pulumi_consul/prepared_query.py +63 -63
- pulumi_consul/pulumi-plugin.json +2 -1
- pulumi_consul/service.py +79 -17
- {pulumi_consul-3.11.2.dist-info → pulumi_consul-3.11.3.dist-info}/METADATA +1 -1
- pulumi_consul-3.11.3.dist-info/RECORD +70 -0
- pulumi_consul-3.11.2.dist-info/RECORD +0 -70
- {pulumi_consul-3.11.2.dist-info → pulumi_consul-3.11.3.dist-info}/WHEEL +0 -0
- {pulumi_consul-3.11.2.dist-info → pulumi_consul-3.11.3.dist-info}/top_level.txt +0 -0
|
@@ -346,7 +346,6 @@ class AutopilotConfig(pulumi.CustomResource):
|
|
|
346
346
|
|
|
347
347
|
## Example Usage
|
|
348
348
|
|
|
349
|
-
<!--Start PulumiCodeChooser -->
|
|
350
349
|
```python
|
|
351
350
|
import pulumi
|
|
352
351
|
import pulumi_consul as consul
|
|
@@ -356,7 +355,6 @@ class AutopilotConfig(pulumi.CustomResource):
|
|
|
356
355
|
last_contact_threshold="1s",
|
|
357
356
|
max_trailing_logs=500)
|
|
358
357
|
```
|
|
359
|
-
<!--End PulumiCodeChooser -->
|
|
360
358
|
|
|
361
359
|
:param str resource_name: The name of the resource.
|
|
362
360
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -394,7 +392,6 @@ class AutopilotConfig(pulumi.CustomResource):
|
|
|
394
392
|
|
|
395
393
|
## Example Usage
|
|
396
394
|
|
|
397
|
-
<!--Start PulumiCodeChooser -->
|
|
398
395
|
```python
|
|
399
396
|
import pulumi
|
|
400
397
|
import pulumi_consul as consul
|
|
@@ -404,7 +401,6 @@ class AutopilotConfig(pulumi.CustomResource):
|
|
|
404
401
|
last_contact_threshold="1s",
|
|
405
402
|
max_trailing_logs=500)
|
|
406
403
|
```
|
|
407
|
-
<!--End PulumiCodeChooser -->
|
|
408
404
|
|
|
409
405
|
:param str resource_name: The name of the resource.
|
|
410
406
|
:param AutopilotConfigArgs args: The arguments to use to populate this resource's properties.
|
pulumi_consul/catalog_entry.py
CHANGED
|
@@ -242,29 +242,6 @@ class CatalogEntry(pulumi.CustomResource):
|
|
|
242
242
|
Registers a node or service with the [Consul Catalog](https://www.consul.io/docs/agent/http/catalog.html#catalog_register).
|
|
243
243
|
Currently, defining health checks is not supported.
|
|
244
244
|
|
|
245
|
-
## Example Usage
|
|
246
|
-
|
|
247
|
-
<!--Start PulumiCodeChooser -->
|
|
248
|
-
```python
|
|
249
|
-
import pulumi
|
|
250
|
-
import pulumi_consul as consul
|
|
251
|
-
|
|
252
|
-
app = consul.CatalogEntry("app",
|
|
253
|
-
address="192.168.10.10",
|
|
254
|
-
node="foobar",
|
|
255
|
-
services=[consul.CatalogEntryServiceArgs(
|
|
256
|
-
address="127.0.0.1",
|
|
257
|
-
id="redis1",
|
|
258
|
-
name="redis",
|
|
259
|
-
port=8000,
|
|
260
|
-
tags=[
|
|
261
|
-
"master",
|
|
262
|
-
"v1",
|
|
263
|
-
],
|
|
264
|
-
)])
|
|
265
|
-
```
|
|
266
|
-
<!--End PulumiCodeChooser -->
|
|
267
|
-
|
|
268
245
|
:param str resource_name: The name of the resource.
|
|
269
246
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
270
247
|
:param pulumi.Input[str] address: The address of the node being added to,
|
|
@@ -291,29 +268,6 @@ class CatalogEntry(pulumi.CustomResource):
|
|
|
291
268
|
Registers a node or service with the [Consul Catalog](https://www.consul.io/docs/agent/http/catalog.html#catalog_register).
|
|
292
269
|
Currently, defining health checks is not supported.
|
|
293
270
|
|
|
294
|
-
## Example Usage
|
|
295
|
-
|
|
296
|
-
<!--Start PulumiCodeChooser -->
|
|
297
|
-
```python
|
|
298
|
-
import pulumi
|
|
299
|
-
import pulumi_consul as consul
|
|
300
|
-
|
|
301
|
-
app = consul.CatalogEntry("app",
|
|
302
|
-
address="192.168.10.10",
|
|
303
|
-
node="foobar",
|
|
304
|
-
services=[consul.CatalogEntryServiceArgs(
|
|
305
|
-
address="127.0.0.1",
|
|
306
|
-
id="redis1",
|
|
307
|
-
name="redis",
|
|
308
|
-
port=8000,
|
|
309
|
-
tags=[
|
|
310
|
-
"master",
|
|
311
|
-
"v1",
|
|
312
|
-
],
|
|
313
|
-
)])
|
|
314
|
-
```
|
|
315
|
-
<!--End PulumiCodeChooser -->
|
|
316
|
-
|
|
317
271
|
:param str resource_name: The name of the resource.
|
|
318
272
|
:param CatalogEntryArgs args: The arguments to use to populate this resource's properties.
|
|
319
273
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -20,10 +20,6 @@ class CertificateAuthorityArgs:
|
|
|
20
20
|
"""
|
|
21
21
|
The set of arguments for constructing a CertificateAuthority resource.
|
|
22
22
|
:param pulumi.Input[str] connect_provider: Specifies the CA provider type to use.
|
|
23
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
|
|
24
|
-
[Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
|
|
25
|
-
:param pulumi.Input[str] config_json: The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
|
|
26
|
-
[Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
|
|
27
23
|
"""
|
|
28
24
|
pulumi.set(__self__, "connect_provider", connect_provider)
|
|
29
25
|
if config is not None:
|
|
@@ -49,10 +45,6 @@ class CertificateAuthorityArgs:
|
|
|
49
45
|
@property
|
|
50
46
|
@pulumi.getter
|
|
51
47
|
def config(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
52
|
-
"""
|
|
53
|
-
The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
|
|
54
|
-
[Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
|
|
55
|
-
"""
|
|
56
48
|
warnings.warn("""The config attribute is deprecated, please use config_json instead.""", DeprecationWarning)
|
|
57
49
|
pulumi.log.warn("""config is deprecated: The config attribute is deprecated, please use config_json instead.""")
|
|
58
50
|
|
|
@@ -65,10 +57,6 @@ class CertificateAuthorityArgs:
|
|
|
65
57
|
@property
|
|
66
58
|
@pulumi.getter(name="configJson")
|
|
67
59
|
def config_json(self) -> Optional[pulumi.Input[str]]:
|
|
68
|
-
"""
|
|
69
|
-
The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
|
|
70
|
-
[Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
|
|
71
|
-
"""
|
|
72
60
|
return pulumi.get(self, "config_json")
|
|
73
61
|
|
|
74
62
|
@config_json.setter
|
|
@@ -84,10 +72,6 @@ class _CertificateAuthorityState:
|
|
|
84
72
|
connect_provider: Optional[pulumi.Input[str]] = None):
|
|
85
73
|
"""
|
|
86
74
|
Input properties used for looking up and filtering CertificateAuthority resources.
|
|
87
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
|
|
88
|
-
[Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
|
|
89
|
-
:param pulumi.Input[str] config_json: The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
|
|
90
|
-
[Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
|
|
91
75
|
:param pulumi.Input[str] connect_provider: Specifies the CA provider type to use.
|
|
92
76
|
"""
|
|
93
77
|
if config is not None:
|
|
@@ -103,10 +87,6 @@ class _CertificateAuthorityState:
|
|
|
103
87
|
@property
|
|
104
88
|
@pulumi.getter
|
|
105
89
|
def config(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
106
|
-
"""
|
|
107
|
-
The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
|
|
108
|
-
[Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
|
|
109
|
-
"""
|
|
110
90
|
warnings.warn("""The config attribute is deprecated, please use config_json instead.""", DeprecationWarning)
|
|
111
91
|
pulumi.log.warn("""config is deprecated: The config attribute is deprecated, please use config_json instead.""")
|
|
112
92
|
|
|
@@ -119,10 +99,6 @@ class _CertificateAuthorityState:
|
|
|
119
99
|
@property
|
|
120
100
|
@pulumi.getter(name="configJson")
|
|
121
101
|
def config_json(self) -> Optional[pulumi.Input[str]]:
|
|
122
|
-
"""
|
|
123
|
-
The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
|
|
124
|
-
[Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
|
|
125
|
-
"""
|
|
126
102
|
return pulumi.get(self, "config_json")
|
|
127
103
|
|
|
128
104
|
@config_json.setter
|
|
@@ -164,10 +140,6 @@ class CertificateAuthority(pulumi.CustomResource):
|
|
|
164
140
|
|
|
165
141
|
:param str resource_name: The name of the resource.
|
|
166
142
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
167
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
|
|
168
|
-
[Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
|
|
169
|
-
:param pulumi.Input[str] config_json: The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
|
|
170
|
-
[Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
|
|
171
143
|
:param pulumi.Input[str] connect_provider: Specifies the CA provider type to use.
|
|
172
144
|
"""
|
|
173
145
|
...
|
|
@@ -239,10 +211,6 @@ class CertificateAuthority(pulumi.CustomResource):
|
|
|
239
211
|
:param str resource_name: The unique name of the resulting resource.
|
|
240
212
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
241
213
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
242
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
|
|
243
|
-
[Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
|
|
244
|
-
:param pulumi.Input[str] config_json: The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
|
|
245
|
-
[Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
|
|
246
214
|
:param pulumi.Input[str] connect_provider: Specifies the CA provider type to use.
|
|
247
215
|
"""
|
|
248
216
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -257,10 +225,6 @@ class CertificateAuthority(pulumi.CustomResource):
|
|
|
257
225
|
@property
|
|
258
226
|
@pulumi.getter
|
|
259
227
|
def config(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
|
260
|
-
"""
|
|
261
|
-
The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
|
|
262
|
-
[Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
|
|
263
|
-
"""
|
|
264
228
|
warnings.warn("""The config attribute is deprecated, please use config_json instead.""", DeprecationWarning)
|
|
265
229
|
pulumi.log.warn("""config is deprecated: The config attribute is deprecated, please use config_json instead.""")
|
|
266
230
|
|
|
@@ -269,10 +233,6 @@ class CertificateAuthority(pulumi.CustomResource):
|
|
|
269
233
|
@property
|
|
270
234
|
@pulumi.getter(name="configJson")
|
|
271
235
|
def config_json(self) -> pulumi.Output[Optional[str]]:
|
|
272
|
-
"""
|
|
273
|
-
The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
|
|
274
|
-
[Provider Config](https://developer.hashicorp.com/consul/docs/connect/ca).
|
|
275
|
-
"""
|
|
276
236
|
return pulumi.get(self, "config_json")
|
|
277
237
|
|
|
278
238
|
@property
|
pulumi_consul/config_entry.py
CHANGED
|
@@ -200,14 +200,14 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
200
200
|
"""
|
|
201
201
|
## Example Usage
|
|
202
202
|
|
|
203
|
-
<!--Start PulumiCodeChooser -->
|
|
204
203
|
```python
|
|
205
204
|
import pulumi
|
|
206
205
|
import json
|
|
207
206
|
import pulumi_consul as consul
|
|
208
207
|
|
|
209
|
-
proxy_defaults = consul.ConfigEntry("
|
|
208
|
+
proxy_defaults = consul.ConfigEntry("proxy_defaults",
|
|
210
209
|
kind="proxy-defaults",
|
|
210
|
+
name="global",
|
|
211
211
|
config_json=json.dumps({
|
|
212
212
|
"Config": {
|
|
213
213
|
"local_connect_timeout_ms": 1000,
|
|
@@ -215,17 +215,20 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
215
215
|
},
|
|
216
216
|
}))
|
|
217
217
|
web = consul.ConfigEntry("web",
|
|
218
|
+
name="web",
|
|
218
219
|
kind="service-defaults",
|
|
219
220
|
config_json=json.dumps({
|
|
220
221
|
"Protocol": "http",
|
|
221
222
|
}))
|
|
222
223
|
admin = consul.ConfigEntry("admin",
|
|
224
|
+
name="admin",
|
|
223
225
|
kind="service-defaults",
|
|
224
226
|
config_json=json.dumps({
|
|
225
227
|
"Protocol": "http",
|
|
226
228
|
}))
|
|
227
|
-
service_resolver = consul.ConfigEntry("
|
|
229
|
+
service_resolver = consul.ConfigEntry("service_resolver",
|
|
228
230
|
kind="service-resolver",
|
|
231
|
+
name=web.name,
|
|
229
232
|
config_json=json.dumps({
|
|
230
233
|
"DefaultSubset": "v1",
|
|
231
234
|
"Subsets": {
|
|
@@ -237,8 +240,9 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
237
240
|
},
|
|
238
241
|
},
|
|
239
242
|
}))
|
|
240
|
-
service_splitter = consul.ConfigEntry("
|
|
243
|
+
service_splitter = consul.ConfigEntry("service_splitter",
|
|
241
244
|
kind="service-splitter",
|
|
245
|
+
name=service_resolver.name,
|
|
242
246
|
config_json=json.dumps({
|
|
243
247
|
"Splits": [
|
|
244
248
|
{
|
|
@@ -251,8 +255,9 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
251
255
|
},
|
|
252
256
|
],
|
|
253
257
|
}))
|
|
254
|
-
service_router = consul.ConfigEntry("
|
|
258
|
+
service_router = consul.ConfigEntry("service_router",
|
|
255
259
|
kind="service-router",
|
|
260
|
+
name="web",
|
|
256
261
|
config_json=json.dumps({
|
|
257
262
|
"Routes": [{
|
|
258
263
|
"Match": {
|
|
@@ -265,7 +270,8 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
265
270
|
},
|
|
266
271
|
}],
|
|
267
272
|
}))
|
|
268
|
-
ingress_gateway = consul.ConfigEntry("
|
|
273
|
+
ingress_gateway = consul.ConfigEntry("ingress_gateway",
|
|
274
|
+
name="us-east-ingress",
|
|
269
275
|
kind="ingress-gateway",
|
|
270
276
|
config_json=json.dumps({
|
|
271
277
|
"TLS": {
|
|
@@ -279,7 +285,8 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
279
285
|
}],
|
|
280
286
|
}],
|
|
281
287
|
}))
|
|
282
|
-
terminating_gateway = consul.ConfigEntry("
|
|
288
|
+
terminating_gateway = consul.ConfigEntry("terminating_gateway",
|
|
289
|
+
name="us-west-gateway",
|
|
283
290
|
kind="terminating-gateway",
|
|
284
291
|
config_json=json.dumps({
|
|
285
292
|
"Services": [{
|
|
@@ -287,17 +294,16 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
287
294
|
}],
|
|
288
295
|
}))
|
|
289
296
|
```
|
|
290
|
-
<!--End PulumiCodeChooser -->
|
|
291
297
|
|
|
292
298
|
### `service-intentions` config entry
|
|
293
299
|
|
|
294
|
-
<!--Start PulumiCodeChooser -->
|
|
295
300
|
```python
|
|
296
301
|
import pulumi
|
|
297
302
|
import json
|
|
298
303
|
import pulumi_consul as consul
|
|
299
304
|
|
|
300
|
-
service_intentions = consul.ConfigEntry("
|
|
305
|
+
service_intentions = consul.ConfigEntry("service_intentions",
|
|
306
|
+
name="api-service",
|
|
301
307
|
kind="service-intentions",
|
|
302
308
|
config_json=json.dumps({
|
|
303
309
|
"Sources": [
|
|
@@ -316,20 +322,20 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
316
322
|
],
|
|
317
323
|
}))
|
|
318
324
|
```
|
|
319
|
-
<!--End PulumiCodeChooser -->
|
|
320
325
|
|
|
321
|
-
<!--Start PulumiCodeChooser -->
|
|
322
326
|
```python
|
|
323
327
|
import pulumi
|
|
324
328
|
import json
|
|
325
329
|
import pulumi_consul as consul
|
|
326
330
|
|
|
327
331
|
sd = consul.ConfigEntry("sd",
|
|
332
|
+
name="fort-knox",
|
|
328
333
|
kind="service-defaults",
|
|
329
334
|
config_json=json.dumps({
|
|
330
335
|
"Protocol": "http",
|
|
331
336
|
}))
|
|
332
|
-
jwt_provider = consul.ConfigEntry("
|
|
337
|
+
jwt_provider = consul.ConfigEntry("jwt_provider",
|
|
338
|
+
name="test-provider",
|
|
333
339
|
kind="jwt-provider",
|
|
334
340
|
config_json=json.dumps({
|
|
335
341
|
"Issuer": "test-issuer",
|
|
@@ -343,7 +349,8 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
343
349
|
"HeaderName": "test-token",
|
|
344
350
|
},
|
|
345
351
|
}))
|
|
346
|
-
service_intentions = consul.ConfigEntry("
|
|
352
|
+
service_intentions = consul.ConfigEntry("service_intentions",
|
|
353
|
+
name=sd.name,
|
|
347
354
|
kind="service-intentions",
|
|
348
355
|
config_json=pulumi.Output.json_dumps({
|
|
349
356
|
"Sources": [
|
|
@@ -389,17 +396,16 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
389
396
|
],
|
|
390
397
|
}))
|
|
391
398
|
```
|
|
392
|
-
<!--End PulumiCodeChooser -->
|
|
393
399
|
|
|
394
400
|
### `exported-services` config entry
|
|
395
401
|
|
|
396
|
-
<!--Start PulumiCodeChooser -->
|
|
397
402
|
```python
|
|
398
403
|
import pulumi
|
|
399
404
|
import json
|
|
400
405
|
import pulumi_consul as consul
|
|
401
406
|
|
|
402
|
-
exported_services = consul.ConfigEntry("
|
|
407
|
+
exported_services = consul.ConfigEntry("exported_services",
|
|
408
|
+
name="test",
|
|
403
409
|
kind="exported-services",
|
|
404
410
|
config_json=json.dumps({
|
|
405
411
|
"Services": [{
|
|
@@ -411,17 +417,16 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
411
417
|
}],
|
|
412
418
|
}))
|
|
413
419
|
```
|
|
414
|
-
<!--End PulumiCodeChooser -->
|
|
415
420
|
|
|
416
421
|
### `mesh` config entry
|
|
417
422
|
|
|
418
|
-
<!--Start PulumiCodeChooser -->
|
|
419
423
|
```python
|
|
420
424
|
import pulumi
|
|
421
425
|
import json
|
|
422
426
|
import pulumi_consul as consul
|
|
423
427
|
|
|
424
428
|
mesh = consul.ConfigEntry("mesh",
|
|
429
|
+
name="mesh",
|
|
425
430
|
kind="mesh",
|
|
426
431
|
partition="default",
|
|
427
432
|
config_json=json.dumps({
|
|
@@ -430,17 +435,16 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
430
435
|
},
|
|
431
436
|
}))
|
|
432
437
|
```
|
|
433
|
-
<!--End PulumiCodeChooser -->
|
|
434
438
|
|
|
435
439
|
### `jwt-provider` config entry
|
|
436
440
|
|
|
437
|
-
<!--Start PulumiCodeChooser -->
|
|
438
441
|
```python
|
|
439
442
|
import pulumi
|
|
440
443
|
import json
|
|
441
444
|
import pulumi_consul as consul
|
|
442
445
|
|
|
443
|
-
jwt_provider = consul.ConfigEntry("
|
|
446
|
+
jwt_provider = consul.ConfigEntry("jwt_provider",
|
|
447
|
+
name="provider-name",
|
|
444
448
|
kind="jwt-provider",
|
|
445
449
|
config_json=json.dumps({
|
|
446
450
|
"Issuer": "https://your.issuer.com",
|
|
@@ -456,7 +460,6 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
456
460
|
},
|
|
457
461
|
}))
|
|
458
462
|
```
|
|
459
|
-
<!--End PulumiCodeChooser -->
|
|
460
463
|
|
|
461
464
|
## Import
|
|
462
465
|
|
|
@@ -486,14 +489,14 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
486
489
|
"""
|
|
487
490
|
## Example Usage
|
|
488
491
|
|
|
489
|
-
<!--Start PulumiCodeChooser -->
|
|
490
492
|
```python
|
|
491
493
|
import pulumi
|
|
492
494
|
import json
|
|
493
495
|
import pulumi_consul as consul
|
|
494
496
|
|
|
495
|
-
proxy_defaults = consul.ConfigEntry("
|
|
497
|
+
proxy_defaults = consul.ConfigEntry("proxy_defaults",
|
|
496
498
|
kind="proxy-defaults",
|
|
499
|
+
name="global",
|
|
497
500
|
config_json=json.dumps({
|
|
498
501
|
"Config": {
|
|
499
502
|
"local_connect_timeout_ms": 1000,
|
|
@@ -501,17 +504,20 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
501
504
|
},
|
|
502
505
|
}))
|
|
503
506
|
web = consul.ConfigEntry("web",
|
|
507
|
+
name="web",
|
|
504
508
|
kind="service-defaults",
|
|
505
509
|
config_json=json.dumps({
|
|
506
510
|
"Protocol": "http",
|
|
507
511
|
}))
|
|
508
512
|
admin = consul.ConfigEntry("admin",
|
|
513
|
+
name="admin",
|
|
509
514
|
kind="service-defaults",
|
|
510
515
|
config_json=json.dumps({
|
|
511
516
|
"Protocol": "http",
|
|
512
517
|
}))
|
|
513
|
-
service_resolver = consul.ConfigEntry("
|
|
518
|
+
service_resolver = consul.ConfigEntry("service_resolver",
|
|
514
519
|
kind="service-resolver",
|
|
520
|
+
name=web.name,
|
|
515
521
|
config_json=json.dumps({
|
|
516
522
|
"DefaultSubset": "v1",
|
|
517
523
|
"Subsets": {
|
|
@@ -523,8 +529,9 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
523
529
|
},
|
|
524
530
|
},
|
|
525
531
|
}))
|
|
526
|
-
service_splitter = consul.ConfigEntry("
|
|
532
|
+
service_splitter = consul.ConfigEntry("service_splitter",
|
|
527
533
|
kind="service-splitter",
|
|
534
|
+
name=service_resolver.name,
|
|
528
535
|
config_json=json.dumps({
|
|
529
536
|
"Splits": [
|
|
530
537
|
{
|
|
@@ -537,8 +544,9 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
537
544
|
},
|
|
538
545
|
],
|
|
539
546
|
}))
|
|
540
|
-
service_router = consul.ConfigEntry("
|
|
547
|
+
service_router = consul.ConfigEntry("service_router",
|
|
541
548
|
kind="service-router",
|
|
549
|
+
name="web",
|
|
542
550
|
config_json=json.dumps({
|
|
543
551
|
"Routes": [{
|
|
544
552
|
"Match": {
|
|
@@ -551,7 +559,8 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
551
559
|
},
|
|
552
560
|
}],
|
|
553
561
|
}))
|
|
554
|
-
ingress_gateway = consul.ConfigEntry("
|
|
562
|
+
ingress_gateway = consul.ConfigEntry("ingress_gateway",
|
|
563
|
+
name="us-east-ingress",
|
|
555
564
|
kind="ingress-gateway",
|
|
556
565
|
config_json=json.dumps({
|
|
557
566
|
"TLS": {
|
|
@@ -565,7 +574,8 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
565
574
|
}],
|
|
566
575
|
}],
|
|
567
576
|
}))
|
|
568
|
-
terminating_gateway = consul.ConfigEntry("
|
|
577
|
+
terminating_gateway = consul.ConfigEntry("terminating_gateway",
|
|
578
|
+
name="us-west-gateway",
|
|
569
579
|
kind="terminating-gateway",
|
|
570
580
|
config_json=json.dumps({
|
|
571
581
|
"Services": [{
|
|
@@ -573,17 +583,16 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
573
583
|
}],
|
|
574
584
|
}))
|
|
575
585
|
```
|
|
576
|
-
<!--End PulumiCodeChooser -->
|
|
577
586
|
|
|
578
587
|
### `service-intentions` config entry
|
|
579
588
|
|
|
580
|
-
<!--Start PulumiCodeChooser -->
|
|
581
589
|
```python
|
|
582
590
|
import pulumi
|
|
583
591
|
import json
|
|
584
592
|
import pulumi_consul as consul
|
|
585
593
|
|
|
586
|
-
service_intentions = consul.ConfigEntry("
|
|
594
|
+
service_intentions = consul.ConfigEntry("service_intentions",
|
|
595
|
+
name="api-service",
|
|
587
596
|
kind="service-intentions",
|
|
588
597
|
config_json=json.dumps({
|
|
589
598
|
"Sources": [
|
|
@@ -602,20 +611,20 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
602
611
|
],
|
|
603
612
|
}))
|
|
604
613
|
```
|
|
605
|
-
<!--End PulumiCodeChooser -->
|
|
606
614
|
|
|
607
|
-
<!--Start PulumiCodeChooser -->
|
|
608
615
|
```python
|
|
609
616
|
import pulumi
|
|
610
617
|
import json
|
|
611
618
|
import pulumi_consul as consul
|
|
612
619
|
|
|
613
620
|
sd = consul.ConfigEntry("sd",
|
|
621
|
+
name="fort-knox",
|
|
614
622
|
kind="service-defaults",
|
|
615
623
|
config_json=json.dumps({
|
|
616
624
|
"Protocol": "http",
|
|
617
625
|
}))
|
|
618
|
-
jwt_provider = consul.ConfigEntry("
|
|
626
|
+
jwt_provider = consul.ConfigEntry("jwt_provider",
|
|
627
|
+
name="test-provider",
|
|
619
628
|
kind="jwt-provider",
|
|
620
629
|
config_json=json.dumps({
|
|
621
630
|
"Issuer": "test-issuer",
|
|
@@ -629,7 +638,8 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
629
638
|
"HeaderName": "test-token",
|
|
630
639
|
},
|
|
631
640
|
}))
|
|
632
|
-
service_intentions = consul.ConfigEntry("
|
|
641
|
+
service_intentions = consul.ConfigEntry("service_intentions",
|
|
642
|
+
name=sd.name,
|
|
633
643
|
kind="service-intentions",
|
|
634
644
|
config_json=pulumi.Output.json_dumps({
|
|
635
645
|
"Sources": [
|
|
@@ -675,17 +685,16 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
675
685
|
],
|
|
676
686
|
}))
|
|
677
687
|
```
|
|
678
|
-
<!--End PulumiCodeChooser -->
|
|
679
688
|
|
|
680
689
|
### `exported-services` config entry
|
|
681
690
|
|
|
682
|
-
<!--Start PulumiCodeChooser -->
|
|
683
691
|
```python
|
|
684
692
|
import pulumi
|
|
685
693
|
import json
|
|
686
694
|
import pulumi_consul as consul
|
|
687
695
|
|
|
688
|
-
exported_services = consul.ConfigEntry("
|
|
696
|
+
exported_services = consul.ConfigEntry("exported_services",
|
|
697
|
+
name="test",
|
|
689
698
|
kind="exported-services",
|
|
690
699
|
config_json=json.dumps({
|
|
691
700
|
"Services": [{
|
|
@@ -697,17 +706,16 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
697
706
|
}],
|
|
698
707
|
}))
|
|
699
708
|
```
|
|
700
|
-
<!--End PulumiCodeChooser -->
|
|
701
709
|
|
|
702
710
|
### `mesh` config entry
|
|
703
711
|
|
|
704
|
-
<!--Start PulumiCodeChooser -->
|
|
705
712
|
```python
|
|
706
713
|
import pulumi
|
|
707
714
|
import json
|
|
708
715
|
import pulumi_consul as consul
|
|
709
716
|
|
|
710
717
|
mesh = consul.ConfigEntry("mesh",
|
|
718
|
+
name="mesh",
|
|
711
719
|
kind="mesh",
|
|
712
720
|
partition="default",
|
|
713
721
|
config_json=json.dumps({
|
|
@@ -716,17 +724,16 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
716
724
|
},
|
|
717
725
|
}))
|
|
718
726
|
```
|
|
719
|
-
<!--End PulumiCodeChooser -->
|
|
720
727
|
|
|
721
728
|
### `jwt-provider` config entry
|
|
722
729
|
|
|
723
|
-
<!--Start PulumiCodeChooser -->
|
|
724
730
|
```python
|
|
725
731
|
import pulumi
|
|
726
732
|
import json
|
|
727
733
|
import pulumi_consul as consul
|
|
728
734
|
|
|
729
|
-
jwt_provider = consul.ConfigEntry("
|
|
735
|
+
jwt_provider = consul.ConfigEntry("jwt_provider",
|
|
736
|
+
name="provider-name",
|
|
730
737
|
kind="jwt-provider",
|
|
731
738
|
config_json=json.dumps({
|
|
732
739
|
"Issuer": "https://your.issuer.com",
|
|
@@ -742,7 +749,6 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
742
749
|
},
|
|
743
750
|
}))
|
|
744
751
|
```
|
|
745
|
-
<!--End PulumiCodeChooser -->
|
|
746
752
|
|
|
747
753
|
## Import
|
|
748
754
|
|