pulumi-consul 3.11.1__py3-none-any.whl → 3.11.2__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 +40 -4
- pulumi_consul/_utilities.py +2 -2
- pulumi_consul/acl_auth_method.py +8 -0
- pulumi_consul/acl_binding_rule.py +4 -0
- pulumi_consul/acl_policy.py +6 -2
- pulumi_consul/acl_role.py +6 -6
- pulumi_consul/acl_role_policy_attachment.py +6 -2
- pulumi_consul/acl_token.py +8 -4
- pulumi_consul/acl_token_policy_attachment.py +10 -6
- pulumi_consul/acl_token_role_attachment.py +6 -4
- pulumi_consul/admin_partition.py +6 -2
- pulumi_consul/agent_service.py +4 -0
- pulumi_consul/autopilot_config.py +4 -0
- pulumi_consul/catalog_entry.py +4 -0
- pulumi_consul/certificate_authority.py +30 -16
- pulumi_consul/config/outputs.py +24 -0
- pulumi_consul/config_entry.py +48 -10
- pulumi_consul/config_entry_service_defaults.py +2 -2
- pulumi_consul/config_entry_service_intentions.py +4 -4
- pulumi_consul/config_entry_service_resolver.py +4 -4
- pulumi_consul/config_entry_service_router.py +4 -4
- pulumi_consul/config_entry_service_splitter.py +6 -6
- pulumi_consul/get_acl_auth_method.py +4 -0
- pulumi_consul/get_acl_policy.py +4 -0
- pulumi_consul/get_acl_role.py +4 -0
- pulumi_consul/get_acl_token.py +4 -0
- pulumi_consul/get_acl_token_secret_id.py +4 -0
- pulumi_consul/get_agent_config.py +4 -0
- pulumi_consul/get_autopilot_health.py +4 -0
- pulumi_consul/get_key_prefix.py +8 -0
- pulumi_consul/get_keys.py +4 -0
- pulumi_consul/get_network_area_members.py +4 -0
- pulumi_consul/get_network_segments.py +4 -0
- pulumi_consul/get_peering.py +4 -0
- pulumi_consul/get_peerings.py +4 -0
- pulumi_consul/intention.py +10 -2
- pulumi_consul/key_prefix.py +10 -4
- pulumi_consul/keys.py +4 -0
- pulumi_consul/license.py +4 -0
- pulumi_consul/namespace.py +10 -4
- pulumi_consul/namespace_policy_attachment.py +6 -4
- pulumi_consul/namespace_role_attachment.py +6 -4
- pulumi_consul/network_area.py +4 -0
- pulumi_consul/node.py +6 -2
- pulumi_consul/outputs.py +104 -2
- pulumi_consul/peering.py +4 -0
- pulumi_consul/peering_token.py +4 -0
- pulumi_consul/prepared_query.py +6 -2
- pulumi_consul/service.py +64 -0
- {pulumi_consul-3.11.1.dist-info → pulumi_consul-3.11.2.dist-info}/METADATA +2 -2
- pulumi_consul-3.11.2.dist-info/RECORD +70 -0
- {pulumi_consul-3.11.1.dist-info → pulumi_consul-3.11.2.dist-info}/WHEEL +1 -1
- pulumi_consul-3.11.1.dist-info/RECORD +0 -70
- {pulumi_consul-3.11.1.dist-info → pulumi_consul-3.11.2.dist-info}/top_level.txt +0 -0
|
@@ -20,8 +20,10 @@ 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
|
-
|
|
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).
|
|
25
27
|
"""
|
|
26
28
|
pulumi.set(__self__, "connect_provider", connect_provider)
|
|
27
29
|
if config is not None:
|
|
@@ -48,7 +50,8 @@ class CertificateAuthorityArgs:
|
|
|
48
50
|
@pulumi.getter
|
|
49
51
|
def config(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
50
52
|
"""
|
|
51
|
-
The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
|
|
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).
|
|
52
55
|
"""
|
|
53
56
|
warnings.warn("""The config attribute is deprecated, please use config_json instead.""", DeprecationWarning)
|
|
54
57
|
pulumi.log.warn("""config is deprecated: The config attribute is deprecated, please use config_json instead.""")
|
|
@@ -63,7 +66,8 @@ class CertificateAuthorityArgs:
|
|
|
63
66
|
@pulumi.getter(name="configJson")
|
|
64
67
|
def config_json(self) -> Optional[pulumi.Input[str]]:
|
|
65
68
|
"""
|
|
66
|
-
The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
|
|
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).
|
|
67
71
|
"""
|
|
68
72
|
return pulumi.get(self, "config_json")
|
|
69
73
|
|
|
@@ -80,8 +84,10 @@ class _CertificateAuthorityState:
|
|
|
80
84
|
connect_provider: Optional[pulumi.Input[str]] = None):
|
|
81
85
|
"""
|
|
82
86
|
Input properties used for looking up and filtering CertificateAuthority resources.
|
|
83
|
-
: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
|
|
84
|
-
|
|
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).
|
|
85
91
|
:param pulumi.Input[str] connect_provider: Specifies the CA provider type to use.
|
|
86
92
|
"""
|
|
87
93
|
if config is not None:
|
|
@@ -98,7 +104,8 @@ class _CertificateAuthorityState:
|
|
|
98
104
|
@pulumi.getter
|
|
99
105
|
def config(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
100
106
|
"""
|
|
101
|
-
The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
|
|
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).
|
|
102
109
|
"""
|
|
103
110
|
warnings.warn("""The config attribute is deprecated, please use config_json instead.""", DeprecationWarning)
|
|
104
111
|
pulumi.log.warn("""config is deprecated: The config attribute is deprecated, please use config_json instead.""")
|
|
@@ -113,7 +120,8 @@ class _CertificateAuthorityState:
|
|
|
113
120
|
@pulumi.getter(name="configJson")
|
|
114
121
|
def config_json(self) -> Optional[pulumi.Input[str]]:
|
|
115
122
|
"""
|
|
116
|
-
The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
|
|
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).
|
|
117
125
|
"""
|
|
118
126
|
return pulumi.get(self, "config_json")
|
|
119
127
|
|
|
@@ -151,13 +159,15 @@ class CertificateAuthority(pulumi.CustomResource):
|
|
|
151
159
|
## Import
|
|
152
160
|
|
|
153
161
|
```sh
|
|
154
|
-
|
|
162
|
+
$ pulumi import consul:index/certificateAuthority:CertificateAuthority connect connect-ca
|
|
155
163
|
```
|
|
156
164
|
|
|
157
165
|
:param str resource_name: The name of the resource.
|
|
158
166
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
159
|
-
: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
|
|
160
|
-
|
|
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).
|
|
161
171
|
:param pulumi.Input[str] connect_provider: Specifies the CA provider type to use.
|
|
162
172
|
"""
|
|
163
173
|
...
|
|
@@ -174,7 +184,7 @@ class CertificateAuthority(pulumi.CustomResource):
|
|
|
174
184
|
## Import
|
|
175
185
|
|
|
176
186
|
```sh
|
|
177
|
-
|
|
187
|
+
$ pulumi import consul:index/certificateAuthority:CertificateAuthority connect connect-ca
|
|
178
188
|
```
|
|
179
189
|
|
|
180
190
|
:param str resource_name: The name of the resource.
|
|
@@ -229,8 +239,10 @@ class CertificateAuthority(pulumi.CustomResource):
|
|
|
229
239
|
:param str resource_name: The unique name of the resulting resource.
|
|
230
240
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
231
241
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
232
|
-
: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
|
|
233
|
-
|
|
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).
|
|
234
246
|
:param pulumi.Input[str] connect_provider: Specifies the CA provider type to use.
|
|
235
247
|
"""
|
|
236
248
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -246,7 +258,8 @@ class CertificateAuthority(pulumi.CustomResource):
|
|
|
246
258
|
@pulumi.getter
|
|
247
259
|
def config(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
|
248
260
|
"""
|
|
249
|
-
The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
|
|
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).
|
|
250
263
|
"""
|
|
251
264
|
warnings.warn("""The config attribute is deprecated, please use config_json instead.""", DeprecationWarning)
|
|
252
265
|
pulumi.log.warn("""config is deprecated: The config attribute is deprecated, please use config_json instead.""")
|
|
@@ -257,7 +270,8 @@ class CertificateAuthority(pulumi.CustomResource):
|
|
|
257
270
|
@pulumi.getter(name="configJson")
|
|
258
271
|
def config_json(self) -> pulumi.Output[Optional[str]]:
|
|
259
272
|
"""
|
|
260
|
-
The raw configuration to use for the chosen provider. For more information on configuring the Connect CA providers, see
|
|
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).
|
|
261
275
|
"""
|
|
262
276
|
return pulumi.get(self, "config_json")
|
|
263
277
|
|
pulumi_consul/config/outputs.py
CHANGED
|
@@ -21,6 +21,11 @@ class AuthJwt(dict):
|
|
|
21
21
|
bearer_token: Optional[str] = None,
|
|
22
22
|
meta: Optional[Mapping[str, str]] = None,
|
|
23
23
|
use_terraform_cloud_workload_identity: Optional[bool] = None):
|
|
24
|
+
"""
|
|
25
|
+
:param str auth_method: The name of the auth method to use for login.
|
|
26
|
+
:param str bearer_token: The bearer token to present to the auth method during login for authentication purposes. For the Kubernetes auth method this is a [Service Account Token (JWT)](https://kubernetes.io/docs/reference/access-authn-authz/authentication/#service-account-tokens).
|
|
27
|
+
:param Mapping[str, str] meta: Specifies arbitrary KV metadata linked to the token. Can be useful to track origins.
|
|
28
|
+
"""
|
|
24
29
|
pulumi.set(__self__, "auth_method", auth_method)
|
|
25
30
|
if bearer_token is not None:
|
|
26
31
|
pulumi.set(__self__, "bearer_token", bearer_token)
|
|
@@ -32,16 +37,25 @@ class AuthJwt(dict):
|
|
|
32
37
|
@property
|
|
33
38
|
@pulumi.getter(name="authMethod")
|
|
34
39
|
def auth_method(self) -> str:
|
|
40
|
+
"""
|
|
41
|
+
The name of the auth method to use for login.
|
|
42
|
+
"""
|
|
35
43
|
return pulumi.get(self, "auth_method")
|
|
36
44
|
|
|
37
45
|
@property
|
|
38
46
|
@pulumi.getter(name="bearerToken")
|
|
39
47
|
def bearer_token(self) -> Optional[str]:
|
|
48
|
+
"""
|
|
49
|
+
The bearer token to present to the auth method during login for authentication purposes. For the Kubernetes auth method this is a [Service Account Token (JWT)](https://kubernetes.io/docs/reference/access-authn-authz/authentication/#service-account-tokens).
|
|
50
|
+
"""
|
|
40
51
|
return pulumi.get(self, "bearer_token")
|
|
41
52
|
|
|
42
53
|
@property
|
|
43
54
|
@pulumi.getter
|
|
44
55
|
def meta(self) -> Optional[Mapping[str, str]]:
|
|
56
|
+
"""
|
|
57
|
+
Specifies arbitrary KV metadata linked to the token. Can be useful to track origins.
|
|
58
|
+
"""
|
|
45
59
|
return pulumi.get(self, "meta")
|
|
46
60
|
|
|
47
61
|
@property
|
|
@@ -55,17 +69,27 @@ class Headers(dict):
|
|
|
55
69
|
def __init__(__self__, *,
|
|
56
70
|
name: str,
|
|
57
71
|
value: str):
|
|
72
|
+
"""
|
|
73
|
+
:param str name: The name of the header.
|
|
74
|
+
:param str value: The value of the header.
|
|
75
|
+
"""
|
|
58
76
|
pulumi.set(__self__, "name", name)
|
|
59
77
|
pulumi.set(__self__, "value", value)
|
|
60
78
|
|
|
61
79
|
@property
|
|
62
80
|
@pulumi.getter
|
|
63
81
|
def name(self) -> str:
|
|
82
|
+
"""
|
|
83
|
+
The name of the header.
|
|
84
|
+
"""
|
|
64
85
|
return pulumi.get(self, "name")
|
|
65
86
|
|
|
66
87
|
@property
|
|
67
88
|
@pulumi.getter
|
|
68
89
|
def value(self) -> str:
|
|
90
|
+
"""
|
|
91
|
+
The value of the header.
|
|
92
|
+
"""
|
|
69
93
|
return pulumi.get(self, "value")
|
|
70
94
|
|
|
71
95
|
|
pulumi_consul/config_entry.py
CHANGED
|
@@ -200,6 +200,7 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
200
200
|
"""
|
|
201
201
|
## Example Usage
|
|
202
202
|
|
|
203
|
+
<!--Start PulumiCodeChooser -->
|
|
203
204
|
```python
|
|
204
205
|
import pulumi
|
|
205
206
|
import json
|
|
@@ -286,8 +287,11 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
286
287
|
}],
|
|
287
288
|
}))
|
|
288
289
|
```
|
|
290
|
+
<!--End PulumiCodeChooser -->
|
|
291
|
+
|
|
289
292
|
### `service-intentions` config entry
|
|
290
293
|
|
|
294
|
+
<!--Start PulumiCodeChooser -->
|
|
291
295
|
```python
|
|
292
296
|
import pulumi
|
|
293
297
|
import json
|
|
@@ -312,7 +316,9 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
312
316
|
],
|
|
313
317
|
}))
|
|
314
318
|
```
|
|
319
|
+
<!--End PulumiCodeChooser -->
|
|
315
320
|
|
|
321
|
+
<!--Start PulumiCodeChooser -->
|
|
316
322
|
```python
|
|
317
323
|
import pulumi
|
|
318
324
|
import json
|
|
@@ -339,7 +345,7 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
339
345
|
}))
|
|
340
346
|
service_intentions = consul.ConfigEntry("serviceIntentions",
|
|
341
347
|
kind="service-intentions",
|
|
342
|
-
config_json=
|
|
348
|
+
config_json=pulumi.Output.json_dumps({
|
|
343
349
|
"Sources": [
|
|
344
350
|
{
|
|
345
351
|
"Name": "contractor-webapp",
|
|
@@ -354,7 +360,7 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
354
360
|
},
|
|
355
361
|
"JWT": {
|
|
356
362
|
"Providers": [{
|
|
357
|
-
"Name": name,
|
|
363
|
+
"Name": jwt_provider.name,
|
|
358
364
|
}],
|
|
359
365
|
},
|
|
360
366
|
}],
|
|
@@ -381,10 +387,13 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
381
387
|
"Type": "consul",
|
|
382
388
|
},
|
|
383
389
|
],
|
|
384
|
-
}))
|
|
390
|
+
}))
|
|
385
391
|
```
|
|
392
|
+
<!--End PulumiCodeChooser -->
|
|
393
|
+
|
|
386
394
|
### `exported-services` config entry
|
|
387
395
|
|
|
396
|
+
<!--Start PulumiCodeChooser -->
|
|
388
397
|
```python
|
|
389
398
|
import pulumi
|
|
390
399
|
import json
|
|
@@ -402,8 +411,11 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
402
411
|
}],
|
|
403
412
|
}))
|
|
404
413
|
```
|
|
414
|
+
<!--End PulumiCodeChooser -->
|
|
415
|
+
|
|
405
416
|
### `mesh` config entry
|
|
406
417
|
|
|
418
|
+
<!--Start PulumiCodeChooser -->
|
|
407
419
|
```python
|
|
408
420
|
import pulumi
|
|
409
421
|
import json
|
|
@@ -418,8 +430,11 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
418
430
|
},
|
|
419
431
|
}))
|
|
420
432
|
```
|
|
433
|
+
<!--End PulumiCodeChooser -->
|
|
434
|
+
|
|
421
435
|
### `jwt-provider` config entry
|
|
422
436
|
|
|
437
|
+
<!--Start PulumiCodeChooser -->
|
|
423
438
|
```python
|
|
424
439
|
import pulumi
|
|
425
440
|
import json
|
|
@@ -441,13 +456,17 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
441
456
|
},
|
|
442
457
|
}))
|
|
443
458
|
```
|
|
459
|
+
<!--End PulumiCodeChooser -->
|
|
444
460
|
|
|
445
461
|
## Import
|
|
446
462
|
|
|
447
|
-
`consul_config_entry` can be imported using the syntax `<kind>/<name>` if the
|
|
463
|
+
`consul_config_entry` can be imported using the syntax `<kind>/<name>` if the
|
|
464
|
+
config entry is in the default partition and default namespace, or
|
|
465
|
+
`<partition>/<namespace>/<kind>/<name>` for config entries in a non-default
|
|
466
|
+
partition or namespace:
|
|
448
467
|
|
|
449
468
|
```sh
|
|
450
|
-
|
|
469
|
+
$ pulumi import consul:index/configEntry:ConfigEntry service_splitter 816a195f-6cb1-2e8d-92af-3011ae706318
|
|
451
470
|
```
|
|
452
471
|
|
|
453
472
|
:param str resource_name: The name of the resource.
|
|
@@ -467,6 +486,7 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
467
486
|
"""
|
|
468
487
|
## Example Usage
|
|
469
488
|
|
|
489
|
+
<!--Start PulumiCodeChooser -->
|
|
470
490
|
```python
|
|
471
491
|
import pulumi
|
|
472
492
|
import json
|
|
@@ -553,8 +573,11 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
553
573
|
}],
|
|
554
574
|
}))
|
|
555
575
|
```
|
|
576
|
+
<!--End PulumiCodeChooser -->
|
|
577
|
+
|
|
556
578
|
### `service-intentions` config entry
|
|
557
579
|
|
|
580
|
+
<!--Start PulumiCodeChooser -->
|
|
558
581
|
```python
|
|
559
582
|
import pulumi
|
|
560
583
|
import json
|
|
@@ -579,7 +602,9 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
579
602
|
],
|
|
580
603
|
}))
|
|
581
604
|
```
|
|
605
|
+
<!--End PulumiCodeChooser -->
|
|
582
606
|
|
|
607
|
+
<!--Start PulumiCodeChooser -->
|
|
583
608
|
```python
|
|
584
609
|
import pulumi
|
|
585
610
|
import json
|
|
@@ -606,7 +631,7 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
606
631
|
}))
|
|
607
632
|
service_intentions = consul.ConfigEntry("serviceIntentions",
|
|
608
633
|
kind="service-intentions",
|
|
609
|
-
config_json=
|
|
634
|
+
config_json=pulumi.Output.json_dumps({
|
|
610
635
|
"Sources": [
|
|
611
636
|
{
|
|
612
637
|
"Name": "contractor-webapp",
|
|
@@ -621,7 +646,7 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
621
646
|
},
|
|
622
647
|
"JWT": {
|
|
623
648
|
"Providers": [{
|
|
624
|
-
"Name": name,
|
|
649
|
+
"Name": jwt_provider.name,
|
|
625
650
|
}],
|
|
626
651
|
},
|
|
627
652
|
}],
|
|
@@ -648,10 +673,13 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
648
673
|
"Type": "consul",
|
|
649
674
|
},
|
|
650
675
|
],
|
|
651
|
-
}))
|
|
676
|
+
}))
|
|
652
677
|
```
|
|
678
|
+
<!--End PulumiCodeChooser -->
|
|
679
|
+
|
|
653
680
|
### `exported-services` config entry
|
|
654
681
|
|
|
682
|
+
<!--Start PulumiCodeChooser -->
|
|
655
683
|
```python
|
|
656
684
|
import pulumi
|
|
657
685
|
import json
|
|
@@ -669,8 +697,11 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
669
697
|
}],
|
|
670
698
|
}))
|
|
671
699
|
```
|
|
700
|
+
<!--End PulumiCodeChooser -->
|
|
701
|
+
|
|
672
702
|
### `mesh` config entry
|
|
673
703
|
|
|
704
|
+
<!--Start PulumiCodeChooser -->
|
|
674
705
|
```python
|
|
675
706
|
import pulumi
|
|
676
707
|
import json
|
|
@@ -685,8 +716,11 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
685
716
|
},
|
|
686
717
|
}))
|
|
687
718
|
```
|
|
719
|
+
<!--End PulumiCodeChooser -->
|
|
720
|
+
|
|
688
721
|
### `jwt-provider` config entry
|
|
689
722
|
|
|
723
|
+
<!--Start PulumiCodeChooser -->
|
|
690
724
|
```python
|
|
691
725
|
import pulumi
|
|
692
726
|
import json
|
|
@@ -708,13 +742,17 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
708
742
|
},
|
|
709
743
|
}))
|
|
710
744
|
```
|
|
745
|
+
<!--End PulumiCodeChooser -->
|
|
711
746
|
|
|
712
747
|
## Import
|
|
713
748
|
|
|
714
|
-
`consul_config_entry` can be imported using the syntax `<kind>/<name>` if the
|
|
749
|
+
`consul_config_entry` can be imported using the syntax `<kind>/<name>` if the
|
|
750
|
+
config entry is in the default partition and default namespace, or
|
|
751
|
+
`<partition>/<namespace>/<kind>/<name>` for config entries in a non-default
|
|
752
|
+
partition or namespace:
|
|
715
753
|
|
|
716
754
|
```sh
|
|
717
|
-
|
|
755
|
+
$ pulumi import consul:index/configEntry:ConfigEntry service_splitter 816a195f-6cb1-2e8d-92af-3011ae706318
|
|
718
756
|
```
|
|
719
757
|
|
|
720
758
|
:param str resource_name: The name of the resource.
|
|
@@ -628,7 +628,7 @@ class ConfigEntryServiceDefaults(pulumi.CustomResource):
|
|
|
628
628
|
upstream_configs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceDefaultsUpstreamConfigArgs']]]]] = None,
|
|
629
629
|
__props__=None):
|
|
630
630
|
"""
|
|
631
|
-
|
|
631
|
+
## Example Usage
|
|
632
632
|
|
|
633
633
|
:param str resource_name: The name of the resource.
|
|
634
634
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -658,7 +658,7 @@ class ConfigEntryServiceDefaults(pulumi.CustomResource):
|
|
|
658
658
|
args: ConfigEntryServiceDefaultsArgs,
|
|
659
659
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
660
660
|
"""
|
|
661
|
-
|
|
661
|
+
## Example Usage
|
|
662
662
|
|
|
663
663
|
:param str resource_name: The name of the resource.
|
|
664
664
|
:param ConfigEntryServiceDefaultsArgs args: The arguments to use to populate this resource's properties.
|
|
@@ -234,10 +234,9 @@ class ConfigEntryServiceIntentions(pulumi.CustomResource):
|
|
|
234
234
|
sources: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceIntentionsSourceArgs']]]]] = None,
|
|
235
235
|
__props__=None):
|
|
236
236
|
"""
|
|
237
|
-
The `consul_service_intentions_config_entry` resource configures [service intentions](https://developer.hashicorp.com/consul/docs/connect/config-entries/service-intentions) that are configurations for controlling access between services in the service mesh. A single service intentions configuration entry specifies one destination service and one or more L4 traffic sources, L7 traffic sources, or combination of traffic sources.
|
|
238
|
-
|
|
239
237
|
## Example Usage
|
|
240
238
|
|
|
239
|
+
<!--Start PulumiCodeChooser -->
|
|
241
240
|
```python
|
|
242
241
|
import pulumi
|
|
243
242
|
import json
|
|
@@ -281,6 +280,7 @@ class ConfigEntryServiceIntentions(pulumi.CustomResource):
|
|
|
281
280
|
),
|
|
282
281
|
])
|
|
283
282
|
```
|
|
283
|
+
<!--End PulumiCodeChooser -->
|
|
284
284
|
|
|
285
285
|
:param str resource_name: The name of the resource.
|
|
286
286
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -298,10 +298,9 @@ class ConfigEntryServiceIntentions(pulumi.CustomResource):
|
|
|
298
298
|
args: Optional[ConfigEntryServiceIntentionsArgs] = None,
|
|
299
299
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
300
300
|
"""
|
|
301
|
-
The `consul_service_intentions_config_entry` resource configures [service intentions](https://developer.hashicorp.com/consul/docs/connect/config-entries/service-intentions) that are configurations for controlling access between services in the service mesh. A single service intentions configuration entry specifies one destination service and one or more L4 traffic sources, L7 traffic sources, or combination of traffic sources.
|
|
302
|
-
|
|
303
301
|
## Example Usage
|
|
304
302
|
|
|
303
|
+
<!--Start PulumiCodeChooser -->
|
|
305
304
|
```python
|
|
306
305
|
import pulumi
|
|
307
306
|
import json
|
|
@@ -345,6 +344,7 @@ class ConfigEntryServiceIntentions(pulumi.CustomResource):
|
|
|
345
344
|
),
|
|
346
345
|
])
|
|
347
346
|
```
|
|
347
|
+
<!--End PulumiCodeChooser -->
|
|
348
348
|
|
|
349
349
|
:param str resource_name: The name of the resource.
|
|
350
350
|
:param ConfigEntryServiceIntentionsArgs args: The arguments to use to populate this resource's properties.
|
|
@@ -399,10 +399,9 @@ class ConfigEntryServiceResolver(pulumi.CustomResource):
|
|
|
399
399
|
subsets: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceResolverSubsetArgs']]]]] = None,
|
|
400
400
|
__props__=None):
|
|
401
401
|
"""
|
|
402
|
-
The `ConfigEntryServiceResolver` resource configures a [service resolver](https://developer.hashicorp.com/consul/docs/connect/config-entries/service-resolver) that creates named subsets of service instances and define their behavior when satisfying upstream requests.
|
|
403
|
-
|
|
404
402
|
## Example Usage
|
|
405
403
|
|
|
404
|
+
<!--Start PulumiCodeChooser -->
|
|
406
405
|
```python
|
|
407
406
|
import pulumi
|
|
408
407
|
import pulumi_consul as consul
|
|
@@ -438,6 +437,7 @@ class ConfigEntryServiceResolver(pulumi.CustomResource):
|
|
|
438
437
|
),
|
|
439
438
|
])
|
|
440
439
|
```
|
|
440
|
+
<!--End PulumiCodeChooser -->
|
|
441
441
|
|
|
442
442
|
:param str resource_name: The name of the resource.
|
|
443
443
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -460,10 +460,9 @@ class ConfigEntryServiceResolver(pulumi.CustomResource):
|
|
|
460
460
|
args: Optional[ConfigEntryServiceResolverArgs] = None,
|
|
461
461
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
462
462
|
"""
|
|
463
|
-
The `ConfigEntryServiceResolver` resource configures a [service resolver](https://developer.hashicorp.com/consul/docs/connect/config-entries/service-resolver) that creates named subsets of service instances and define their behavior when satisfying upstream requests.
|
|
464
|
-
|
|
465
463
|
## Example Usage
|
|
466
464
|
|
|
465
|
+
<!--Start PulumiCodeChooser -->
|
|
467
466
|
```python
|
|
468
467
|
import pulumi
|
|
469
468
|
import pulumi_consul as consul
|
|
@@ -499,6 +498,7 @@ class ConfigEntryServiceResolver(pulumi.CustomResource):
|
|
|
499
498
|
),
|
|
500
499
|
])
|
|
501
500
|
```
|
|
501
|
+
<!--End PulumiCodeChooser -->
|
|
502
502
|
|
|
503
503
|
:param str resource_name: The name of the resource.
|
|
504
504
|
:param ConfigEntryServiceResolverArgs args: The arguments to use to populate this resource's properties.
|
|
@@ -201,10 +201,9 @@ class ConfigEntryServiceRouter(pulumi.CustomResource):
|
|
|
201
201
|
routes: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceRouterRouteArgs']]]]] = None,
|
|
202
202
|
__props__=None):
|
|
203
203
|
"""
|
|
204
|
-
The `ConfigEntryServiceRouter` resource configures a [service router](https://developer.hashicorp.com/consul/docs/connect/config-entries/service-router) to redirect a traffic request for a service to one or more specific service instances.
|
|
205
|
-
|
|
206
204
|
## Example Usage
|
|
207
205
|
|
|
206
|
+
<!--Start PulumiCodeChooser -->
|
|
208
207
|
```python
|
|
209
208
|
import pulumi
|
|
210
209
|
import pulumi_consul as consul
|
|
@@ -222,6 +221,7 @@ class ConfigEntryServiceRouter(pulumi.CustomResource):
|
|
|
222
221
|
),
|
|
223
222
|
)])
|
|
224
223
|
```
|
|
224
|
+
<!--End PulumiCodeChooser -->
|
|
225
225
|
|
|
226
226
|
:param str resource_name: The name of the resource.
|
|
227
227
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -238,10 +238,9 @@ class ConfigEntryServiceRouter(pulumi.CustomResource):
|
|
|
238
238
|
args: Optional[ConfigEntryServiceRouterArgs] = None,
|
|
239
239
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
240
240
|
"""
|
|
241
|
-
The `ConfigEntryServiceRouter` resource configures a [service router](https://developer.hashicorp.com/consul/docs/connect/config-entries/service-router) to redirect a traffic request for a service to one or more specific service instances.
|
|
242
|
-
|
|
243
241
|
## Example Usage
|
|
244
242
|
|
|
243
|
+
<!--Start PulumiCodeChooser -->
|
|
245
244
|
```python
|
|
246
245
|
import pulumi
|
|
247
246
|
import pulumi_consul as consul
|
|
@@ -259,6 +258,7 @@ class ConfigEntryServiceRouter(pulumi.CustomResource):
|
|
|
259
258
|
),
|
|
260
259
|
)])
|
|
261
260
|
```
|
|
261
|
+
<!--End PulumiCodeChooser -->
|
|
262
262
|
|
|
263
263
|
:param str resource_name: The name of the resource.
|
|
264
264
|
:param ConfigEntryServiceRouterArgs args: The arguments to use to populate this resource's properties.
|
|
@@ -200,10 +200,9 @@ class ConfigEntryServiceSplitter(pulumi.CustomResource):
|
|
|
200
200
|
splits: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceSplitterSplitArgs']]]]] = None,
|
|
201
201
|
__props__=None):
|
|
202
202
|
"""
|
|
203
|
-
The `ConfigEntryServiceSplitter` resource configures a [service splitter](https://developer.hashicorp.com/consul/docs/connect/config-entries/service-splitter) that will redirect a percentage of incoming traffic requests for a service to one or more specific service instances.
|
|
204
|
-
|
|
205
203
|
## Example Usage
|
|
206
204
|
|
|
205
|
+
<!--Start PulumiCodeChooser -->
|
|
207
206
|
```python
|
|
208
207
|
import pulumi
|
|
209
208
|
import json
|
|
@@ -271,11 +270,12 @@ class ConfigEntryServiceSplitter(pulumi.CustomResource):
|
|
|
271
270
|
),
|
|
272
271
|
])
|
|
273
272
|
```
|
|
273
|
+
<!--End PulumiCodeChooser -->
|
|
274
274
|
|
|
275
275
|
## Import
|
|
276
276
|
|
|
277
277
|
```sh
|
|
278
|
-
|
|
278
|
+
$ pulumi import consul:index/configEntryServiceSplitter:ConfigEntryServiceSplitter foo web
|
|
279
279
|
```
|
|
280
280
|
|
|
281
281
|
:param str resource_name: The name of the resource.
|
|
@@ -293,10 +293,9 @@ class ConfigEntryServiceSplitter(pulumi.CustomResource):
|
|
|
293
293
|
args: ConfigEntryServiceSplitterArgs,
|
|
294
294
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
295
295
|
"""
|
|
296
|
-
The `ConfigEntryServiceSplitter` resource configures a [service splitter](https://developer.hashicorp.com/consul/docs/connect/config-entries/service-splitter) that will redirect a percentage of incoming traffic requests for a service to one or more specific service instances.
|
|
297
|
-
|
|
298
296
|
## Example Usage
|
|
299
297
|
|
|
298
|
+
<!--Start PulumiCodeChooser -->
|
|
300
299
|
```python
|
|
301
300
|
import pulumi
|
|
302
301
|
import json
|
|
@@ -364,11 +363,12 @@ class ConfigEntryServiceSplitter(pulumi.CustomResource):
|
|
|
364
363
|
),
|
|
365
364
|
])
|
|
366
365
|
```
|
|
366
|
+
<!--End PulumiCodeChooser -->
|
|
367
367
|
|
|
368
368
|
## Import
|
|
369
369
|
|
|
370
370
|
```sh
|
|
371
|
-
|
|
371
|
+
$ pulumi import consul:index/configEntryServiceSplitter:ConfigEntryServiceSplitter foo web
|
|
372
372
|
```
|
|
373
373
|
|
|
374
374
|
:param str resource_name: The name of the resource.
|
|
@@ -187,6 +187,7 @@ def get_acl_auth_method(name: Optional[str] = None,
|
|
|
187
187
|
|
|
188
188
|
## Example Usage
|
|
189
189
|
|
|
190
|
+
<!--Start PulumiCodeChooser -->
|
|
190
191
|
```python
|
|
191
192
|
import pulumi
|
|
192
193
|
import pulumi_consul as consul
|
|
@@ -194,6 +195,7 @@ def get_acl_auth_method(name: Optional[str] = None,
|
|
|
194
195
|
test = consul.get_acl_auth_method(name="minikube")
|
|
195
196
|
pulumi.export("consulAclAuthMethod", test.config)
|
|
196
197
|
```
|
|
198
|
+
<!--End PulumiCodeChooser -->
|
|
197
199
|
|
|
198
200
|
|
|
199
201
|
:param str name: The name of the ACL Auth Method.
|
|
@@ -233,6 +235,7 @@ def get_acl_auth_method_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
233
235
|
|
|
234
236
|
## Example Usage
|
|
235
237
|
|
|
238
|
+
<!--Start PulumiCodeChooser -->
|
|
236
239
|
```python
|
|
237
240
|
import pulumi
|
|
238
241
|
import pulumi_consul as consul
|
|
@@ -240,6 +243,7 @@ def get_acl_auth_method_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
240
243
|
test = consul.get_acl_auth_method(name="minikube")
|
|
241
244
|
pulumi.export("consulAclAuthMethod", test.config)
|
|
242
245
|
```
|
|
246
|
+
<!--End PulumiCodeChooser -->
|
|
243
247
|
|
|
244
248
|
|
|
245
249
|
:param str name: The name of the ACL Auth Method.
|
pulumi_consul/get_acl_policy.py
CHANGED
|
@@ -117,6 +117,7 @@ def get_acl_policy(name: Optional[str] = None,
|
|
|
117
117
|
|
|
118
118
|
## Example Usage
|
|
119
119
|
|
|
120
|
+
<!--Start PulumiCodeChooser -->
|
|
120
121
|
```python
|
|
121
122
|
import pulumi
|
|
122
123
|
import pulumi_consul as consul
|
|
@@ -124,6 +125,7 @@ def get_acl_policy(name: Optional[str] = None,
|
|
|
124
125
|
agent = consul.get_acl_policy(name="agent")
|
|
125
126
|
pulumi.export("consulAclPolicy", agent.rules)
|
|
126
127
|
```
|
|
128
|
+
<!--End PulumiCodeChooser -->
|
|
127
129
|
|
|
128
130
|
|
|
129
131
|
:param str name: The name of the ACL Policy.
|
|
@@ -158,6 +160,7 @@ def get_acl_policy_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
158
160
|
|
|
159
161
|
## Example Usage
|
|
160
162
|
|
|
163
|
+
<!--Start PulumiCodeChooser -->
|
|
161
164
|
```python
|
|
162
165
|
import pulumi
|
|
163
166
|
import pulumi_consul as consul
|
|
@@ -165,6 +168,7 @@ def get_acl_policy_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
165
168
|
agent = consul.get_acl_policy(name="agent")
|
|
166
169
|
pulumi.export("consulAclPolicy", agent.rules)
|
|
167
170
|
```
|
|
171
|
+
<!--End PulumiCodeChooser -->
|
|
168
172
|
|
|
169
173
|
|
|
170
174
|
:param str name: The name of the ACL Policy.
|