pulumi-consul 3.12.0a1713331566__py3-none-any.whl → 3.12.0a1713897703__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.
- 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/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/service.py +79 -17
- {pulumi_consul-3.12.0a1713331566.dist-info → pulumi_consul-3.12.0a1713897703.dist-info}/METADATA +1 -1
- pulumi_consul-3.12.0a1713897703.dist-info/RECORD +70 -0
- pulumi_consul-3.12.0a1713331566.dist-info/RECORD +0 -70
- {pulumi_consul-3.12.0a1713331566.dist-info → pulumi_consul-3.12.0a1713897703.dist-info}/WHEEL +0 -0
- {pulumi_consul-3.12.0a1713331566.dist-info → pulumi_consul-3.12.0a1713897703.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.
|
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
|
|
|
@@ -45,13 +45,13 @@ class ConfigEntryServiceDefaultsArgs:
|
|
|
45
45
|
:param pulumi.Input[int] local_connect_timeout_ms: Specifies the number of milliseconds allowed for establishing connections to the local application instance before timing out.
|
|
46
46
|
:param pulumi.Input[int] local_request_timeout_ms: Specifies the timeout for HTTP requests to the local application instance.
|
|
47
47
|
:param pulumi.Input[int] max_inbound_connections: Specifies the maximum number of concurrent inbound connections to each service instance.
|
|
48
|
-
:param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceDefaultsMeshGatewayArgs']]] mesh_gateways: Specifies the default mesh gateway mode field for
|
|
48
|
+
:param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceDefaultsMeshGatewayArgs']]] mesh_gateways: Specifies the default mesh gateway mode field for the service.
|
|
49
49
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] meta: Specifies a set of custom key-value pairs to add to the Consul KV store.
|
|
50
50
|
:param pulumi.Input[str] mode: Specifies a mode for how the service directs inbound and outbound traffic.
|
|
51
51
|
:param pulumi.Input[str] mutual_tls_mode: Controls whether mutual TLS is required for incoming connections to this service. This setting is only supported for services with transparent proxy enabled.
|
|
52
52
|
:param pulumi.Input[str] name: Specifies the name of the service you are setting the defaults for.
|
|
53
|
-
:param pulumi.Input[str] namespace: Specifies the namespace
|
|
54
|
-
:param pulumi.Input[str] partition: Specifies the name of the name of the Consul admin partition that the configuration entry applies to.
|
|
53
|
+
:param pulumi.Input[str] namespace: Specifies the Consul namespace that the configuration entry applies to.
|
|
54
|
+
:param pulumi.Input[str] partition: Specifies the name of the name of the Consul admin partition that the configuration entry applies to. Refer to Admin Partitions for additional information.
|
|
55
55
|
:param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceDefaultsTransparentProxyArgs']]] transparent_proxies: Controls configurations specific to proxies in transparent mode. Refer to Transparent Proxy Mode for additional information.
|
|
56
56
|
:param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceDefaultsUpstreamConfigArgs']]] upstream_configs: Controls default upstream connection settings and custom overrides for individual upstream services.
|
|
57
57
|
"""
|
|
@@ -202,7 +202,7 @@ class ConfigEntryServiceDefaultsArgs:
|
|
|
202
202
|
@pulumi.getter(name="meshGateways")
|
|
203
203
|
def mesh_gateways(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceDefaultsMeshGatewayArgs']]]]:
|
|
204
204
|
"""
|
|
205
|
-
Specifies the default mesh gateway mode field for
|
|
205
|
+
Specifies the default mesh gateway mode field for the service.
|
|
206
206
|
"""
|
|
207
207
|
return pulumi.get(self, "mesh_gateways")
|
|
208
208
|
|
|
@@ -262,7 +262,7 @@ class ConfigEntryServiceDefaultsArgs:
|
|
|
262
262
|
@pulumi.getter
|
|
263
263
|
def namespace(self) -> Optional[pulumi.Input[str]]:
|
|
264
264
|
"""
|
|
265
|
-
Specifies the namespace
|
|
265
|
+
Specifies the Consul namespace that the configuration entry applies to.
|
|
266
266
|
"""
|
|
267
267
|
return pulumi.get(self, "namespace")
|
|
268
268
|
|
|
@@ -274,7 +274,7 @@ class ConfigEntryServiceDefaultsArgs:
|
|
|
274
274
|
@pulumi.getter
|
|
275
275
|
def partition(self) -> Optional[pulumi.Input[str]]:
|
|
276
276
|
"""
|
|
277
|
-
Specifies the name of the name of the Consul admin partition that the configuration entry applies to.
|
|
277
|
+
Specifies the name of the name of the Consul admin partition that the configuration entry applies to. Refer to Admin Partitions for additional information.
|
|
278
278
|
"""
|
|
279
279
|
return pulumi.get(self, "partition")
|
|
280
280
|
|
|
@@ -338,13 +338,13 @@ class _ConfigEntryServiceDefaultsState:
|
|
|
338
338
|
:param pulumi.Input[int] local_connect_timeout_ms: Specifies the number of milliseconds allowed for establishing connections to the local application instance before timing out.
|
|
339
339
|
:param pulumi.Input[int] local_request_timeout_ms: Specifies the timeout for HTTP requests to the local application instance.
|
|
340
340
|
:param pulumi.Input[int] max_inbound_connections: Specifies the maximum number of concurrent inbound connections to each service instance.
|
|
341
|
-
:param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceDefaultsMeshGatewayArgs']]] mesh_gateways: Specifies the default mesh gateway mode field for
|
|
341
|
+
:param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceDefaultsMeshGatewayArgs']]] mesh_gateways: Specifies the default mesh gateway mode field for the service.
|
|
342
342
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] meta: Specifies a set of custom key-value pairs to add to the Consul KV store.
|
|
343
343
|
:param pulumi.Input[str] mode: Specifies a mode for how the service directs inbound and outbound traffic.
|
|
344
344
|
:param pulumi.Input[str] mutual_tls_mode: Controls whether mutual TLS is required for incoming connections to this service. This setting is only supported for services with transparent proxy enabled.
|
|
345
345
|
:param pulumi.Input[str] name: Specifies the name of the service you are setting the defaults for.
|
|
346
|
-
:param pulumi.Input[str] namespace: Specifies the namespace
|
|
347
|
-
:param pulumi.Input[str] partition: Specifies the name of the name of the Consul admin partition that the configuration entry applies to.
|
|
346
|
+
:param pulumi.Input[str] namespace: Specifies the Consul namespace that the configuration entry applies to.
|
|
347
|
+
:param pulumi.Input[str] partition: Specifies the name of the name of the Consul admin partition that the configuration entry applies to. Refer to Admin Partitions for additional information.
|
|
348
348
|
:param pulumi.Input[str] protocol: Specifies the default protocol for the service.
|
|
349
349
|
:param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceDefaultsTransparentProxyArgs']]] transparent_proxies: Controls configurations specific to proxies in transparent mode. Refer to Transparent Proxy Mode for additional information.
|
|
350
350
|
:param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceDefaultsUpstreamConfigArgs']]] upstream_configs: Controls default upstream connection settings and custom overrides for individual upstream services.
|
|
@@ -486,7 +486,7 @@ class _ConfigEntryServiceDefaultsState:
|
|
|
486
486
|
@pulumi.getter(name="meshGateways")
|
|
487
487
|
def mesh_gateways(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceDefaultsMeshGatewayArgs']]]]:
|
|
488
488
|
"""
|
|
489
|
-
Specifies the default mesh gateway mode field for
|
|
489
|
+
Specifies the default mesh gateway mode field for the service.
|
|
490
490
|
"""
|
|
491
491
|
return pulumi.get(self, "mesh_gateways")
|
|
492
492
|
|
|
@@ -546,7 +546,7 @@ class _ConfigEntryServiceDefaultsState:
|
|
|
546
546
|
@pulumi.getter
|
|
547
547
|
def namespace(self) -> Optional[pulumi.Input[str]]:
|
|
548
548
|
"""
|
|
549
|
-
Specifies the namespace
|
|
549
|
+
Specifies the Consul namespace that the configuration entry applies to.
|
|
550
550
|
"""
|
|
551
551
|
return pulumi.get(self, "namespace")
|
|
552
552
|
|
|
@@ -558,7 +558,7 @@ class _ConfigEntryServiceDefaultsState:
|
|
|
558
558
|
@pulumi.getter
|
|
559
559
|
def partition(self) -> Optional[pulumi.Input[str]]:
|
|
560
560
|
"""
|
|
561
|
-
Specifies the name of the name of the Consul admin partition that the configuration entry applies to.
|
|
561
|
+
Specifies the name of the name of the Consul admin partition that the configuration entry applies to. Refer to Admin Partitions for additional information.
|
|
562
562
|
"""
|
|
563
563
|
return pulumi.get(self, "partition")
|
|
564
564
|
|
|
@@ -640,13 +640,13 @@ class ConfigEntryServiceDefaults(pulumi.CustomResource):
|
|
|
640
640
|
:param pulumi.Input[int] local_connect_timeout_ms: Specifies the number of milliseconds allowed for establishing connections to the local application instance before timing out.
|
|
641
641
|
:param pulumi.Input[int] local_request_timeout_ms: Specifies the timeout for HTTP requests to the local application instance.
|
|
642
642
|
:param pulumi.Input[int] max_inbound_connections: Specifies the maximum number of concurrent inbound connections to each service instance.
|
|
643
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceDefaultsMeshGatewayArgs']]]] mesh_gateways: Specifies the default mesh gateway mode field for
|
|
643
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceDefaultsMeshGatewayArgs']]]] mesh_gateways: Specifies the default mesh gateway mode field for the service.
|
|
644
644
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] meta: Specifies a set of custom key-value pairs to add to the Consul KV store.
|
|
645
645
|
:param pulumi.Input[str] mode: Specifies a mode for how the service directs inbound and outbound traffic.
|
|
646
646
|
:param pulumi.Input[str] mutual_tls_mode: Controls whether mutual TLS is required for incoming connections to this service. This setting is only supported for services with transparent proxy enabled.
|
|
647
647
|
:param pulumi.Input[str] name: Specifies the name of the service you are setting the defaults for.
|
|
648
|
-
:param pulumi.Input[str] namespace: Specifies the namespace
|
|
649
|
-
:param pulumi.Input[str] partition: Specifies the name of the name of the Consul admin partition that the configuration entry applies to.
|
|
648
|
+
:param pulumi.Input[str] namespace: Specifies the Consul namespace that the configuration entry applies to.
|
|
649
|
+
:param pulumi.Input[str] partition: Specifies the name of the name of the Consul admin partition that the configuration entry applies to. Refer to Admin Partitions for additional information.
|
|
650
650
|
:param pulumi.Input[str] protocol: Specifies the default protocol for the service.
|
|
651
651
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceDefaultsTransparentProxyArgs']]]] transparent_proxies: Controls configurations specific to proxies in transparent mode. Refer to Transparent Proxy Mode for additional information.
|
|
652
652
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceDefaultsUpstreamConfigArgs']]]] upstream_configs: Controls default upstream connection settings and custom overrides for individual upstream services.
|
|
@@ -767,13 +767,13 @@ class ConfigEntryServiceDefaults(pulumi.CustomResource):
|
|
|
767
767
|
:param pulumi.Input[int] local_connect_timeout_ms: Specifies the number of milliseconds allowed for establishing connections to the local application instance before timing out.
|
|
768
768
|
:param pulumi.Input[int] local_request_timeout_ms: Specifies the timeout for HTTP requests to the local application instance.
|
|
769
769
|
:param pulumi.Input[int] max_inbound_connections: Specifies the maximum number of concurrent inbound connections to each service instance.
|
|
770
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceDefaultsMeshGatewayArgs']]]] mesh_gateways: Specifies the default mesh gateway mode field for
|
|
770
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceDefaultsMeshGatewayArgs']]]] mesh_gateways: Specifies the default mesh gateway mode field for the service.
|
|
771
771
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] meta: Specifies a set of custom key-value pairs to add to the Consul KV store.
|
|
772
772
|
:param pulumi.Input[str] mode: Specifies a mode for how the service directs inbound and outbound traffic.
|
|
773
773
|
:param pulumi.Input[str] mutual_tls_mode: Controls whether mutual TLS is required for incoming connections to this service. This setting is only supported for services with transparent proxy enabled.
|
|
774
774
|
:param pulumi.Input[str] name: Specifies the name of the service you are setting the defaults for.
|
|
775
|
-
:param pulumi.Input[str] namespace: Specifies the namespace
|
|
776
|
-
:param pulumi.Input[str] partition: Specifies the name of the name of the Consul admin partition that the configuration entry applies to.
|
|
775
|
+
:param pulumi.Input[str] namespace: Specifies the Consul namespace that the configuration entry applies to.
|
|
776
|
+
:param pulumi.Input[str] partition: Specifies the name of the name of the Consul admin partition that the configuration entry applies to. Refer to Admin Partitions for additional information.
|
|
777
777
|
:param pulumi.Input[str] protocol: Specifies the default protocol for the service.
|
|
778
778
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceDefaultsTransparentProxyArgs']]]] transparent_proxies: Controls configurations specific to proxies in transparent mode. Refer to Transparent Proxy Mode for additional information.
|
|
779
779
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceDefaultsUpstreamConfigArgs']]]] upstream_configs: Controls default upstream connection settings and custom overrides for individual upstream services.
|
|
@@ -870,7 +870,7 @@ class ConfigEntryServiceDefaults(pulumi.CustomResource):
|
|
|
870
870
|
@pulumi.getter(name="meshGateways")
|
|
871
871
|
def mesh_gateways(self) -> pulumi.Output[Optional[Sequence['outputs.ConfigEntryServiceDefaultsMeshGateway']]]:
|
|
872
872
|
"""
|
|
873
|
-
Specifies the default mesh gateway mode field for
|
|
873
|
+
Specifies the default mesh gateway mode field for the service.
|
|
874
874
|
"""
|
|
875
875
|
return pulumi.get(self, "mesh_gateways")
|
|
876
876
|
|
|
@@ -910,7 +910,7 @@ class ConfigEntryServiceDefaults(pulumi.CustomResource):
|
|
|
910
910
|
@pulumi.getter
|
|
911
911
|
def namespace(self) -> pulumi.Output[Optional[str]]:
|
|
912
912
|
"""
|
|
913
|
-
Specifies the namespace
|
|
913
|
+
Specifies the Consul namespace that the configuration entry applies to.
|
|
914
914
|
"""
|
|
915
915
|
return pulumi.get(self, "namespace")
|
|
916
916
|
|
|
@@ -918,7 +918,7 @@ class ConfigEntryServiceDefaults(pulumi.CustomResource):
|
|
|
918
918
|
@pulumi.getter
|
|
919
919
|
def partition(self) -> pulumi.Output[Optional[str]]:
|
|
920
920
|
"""
|
|
921
|
-
Specifies the name of the name of the Consul admin partition that the configuration entry applies to.
|
|
921
|
+
Specifies the name of the name of the Consul admin partition that the configuration entry applies to. Refer to Admin Partitions for additional information.
|
|
922
922
|
"""
|
|
923
923
|
return pulumi.get(self, "partition")
|
|
924
924
|
|