pulumi-consul 3.12.0a1710156214__py3-none-any.whl → 3.13.0a1736832526__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/__init__.py +10 -0
- pulumi_consul/_inputs.py +1592 -31
- pulumi_consul/_utilities.py +41 -5
- pulumi_consul/acl_auth_method.py +17 -22
- pulumi_consul/acl_binding_rule.py +12 -9
- pulumi_consul/acl_policy.py +7 -6
- pulumi_consul/acl_role.py +37 -32
- pulumi_consul/acl_role_policy_attachment.py +13 -10
- pulumi_consul/acl_token.py +34 -29
- pulumi_consul/acl_token_policy_attachment.py +5 -0
- pulumi_consul/acl_token_role_attachment.py +5 -0
- pulumi_consul/admin_partition.py +11 -6
- pulumi_consul/agent_service.py +7 -4
- pulumi_consul/autopilot_config.py +5 -4
- pulumi_consul/catalog_entry.py +16 -66
- pulumi_consul/certificate_authority.py +8 -49
- pulumi_consul/config/__init__.pyi +5 -0
- pulumi_consul/config/outputs.py +5 -0
- pulumi_consul/config/vars.py +5 -0
- pulumi_consul/config_entry.py +57 -46
- pulumi_consul/config_entry_service_defaults.py +54 -49
- pulumi_consul/config_entry_service_intentions.py +80 -75
- pulumi_consul/config_entry_service_resolver.py +94 -91
- pulumi_consul/config_entry_service_router.py +31 -66
- pulumi_consul/config_entry_service_splitter.py +102 -95
- pulumi_consul/config_entry_v2_exported_services.py +479 -0
- pulumi_consul/get_acl_auth_method.py +26 -12
- pulumi_consul/get_acl_policy.py +20 -9
- pulumi_consul/get_acl_role.py +24 -9
- pulumi_consul/get_acl_token.py +25 -9
- pulumi_consul/get_acl_token_secret_id.py +29 -15
- pulumi_consul/get_agent_config.py +17 -9
- pulumi_consul/get_agent_self.py +82 -5
- pulumi_consul/get_autopilot_health.py +16 -9
- pulumi_consul/get_catalog_nodes.py +21 -9
- pulumi_consul/get_catalog_service.py +56 -13
- pulumi_consul/get_catalog_services.py +53 -9
- pulumi_consul/get_config_entry.py +20 -5
- pulumi_consul/get_config_entry_v2_exported_services.py +232 -0
- pulumi_consul/get_datacenters.py +12 -5
- pulumi_consul/get_key_prefix.py +55 -46
- pulumi_consul/get_keys.py +44 -34
- pulumi_consul/get_network_area_members.py +26 -20
- pulumi_consul/get_network_segments.py +22 -18
- pulumi_consul/get_nodes.py +21 -9
- pulumi_consul/get_peering.py +22 -9
- pulumi_consul/get_peerings.py +14 -9
- pulumi_consul/get_service.py +56 -13
- pulumi_consul/get_service_health.py +28 -5
- pulumi_consul/get_services.py +53 -9
- pulumi_consul/intention.py +15 -18
- pulumi_consul/key_prefix.py +42 -50
- pulumi_consul/keys.py +26 -34
- pulumi_consul/license.py +9 -6
- pulumi_consul/namespace.py +7 -4
- pulumi_consul/namespace_policy_attachment.py +5 -0
- pulumi_consul/namespace_role_attachment.py +5 -0
- pulumi_consul/network_area.py +11 -19
- pulumi_consul/node.py +17 -21
- pulumi_consul/outputs.py +30 -27
- pulumi_consul/peering.py +13 -22
- pulumi_consul/peering_token.py +55 -15
- pulumi_consul/prepared_query.py +99 -103
- pulumi_consul/provider.py +11 -6
- pulumi_consul/pulumi-plugin.json +2 -1
- pulumi_consul/service.py +90 -29
- {pulumi_consul-3.12.0a1710156214.dist-info → pulumi_consul-3.13.0a1736832526.dist-info}/METADATA +7 -6
- pulumi_consul-3.13.0a1736832526.dist-info/RECORD +72 -0
- {pulumi_consul-3.12.0a1710156214.dist-info → pulumi_consul-3.13.0a1736832526.dist-info}/WHEEL +1 -1
- pulumi_consul-3.12.0a1710156214.dist-info/RECORD +0 -70
- {pulumi_consul-3.12.0a1710156214.dist-info → pulumi_consul-3.13.0a1736832526.dist-info}/top_level.txt +0 -0
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
|
|
12
17
|
__all__ = ['CertificateAuthorityArgs', 'CertificateAuthority']
|
|
@@ -20,10 +25,6 @@ class CertificateAuthorityArgs:
|
|
|
20
25
|
"""
|
|
21
26
|
The set of arguments for constructing a CertificateAuthority resource.
|
|
22
27
|
: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
28
|
"""
|
|
28
29
|
pulumi.set(__self__, "connect_provider", connect_provider)
|
|
29
30
|
if config is not None:
|
|
@@ -48,14 +49,8 @@ class CertificateAuthorityArgs:
|
|
|
48
49
|
|
|
49
50
|
@property
|
|
50
51
|
@pulumi.getter
|
|
52
|
+
@_utilities.deprecated("""The config attribute is deprecated, please use config_json instead.""")
|
|
51
53
|
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
|
-
warnings.warn("""The config attribute is deprecated, please use config_json instead.""", DeprecationWarning)
|
|
57
|
-
pulumi.log.warn("""config is deprecated: The config attribute is deprecated, please use config_json instead.""")
|
|
58
|
-
|
|
59
54
|
return pulumi.get(self, "config")
|
|
60
55
|
|
|
61
56
|
@config.setter
|
|
@@ -65,10 +60,6 @@ class CertificateAuthorityArgs:
|
|
|
65
60
|
@property
|
|
66
61
|
@pulumi.getter(name="configJson")
|
|
67
62
|
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
63
|
return pulumi.get(self, "config_json")
|
|
73
64
|
|
|
74
65
|
@config_json.setter
|
|
@@ -84,10 +75,6 @@ class _CertificateAuthorityState:
|
|
|
84
75
|
connect_provider: Optional[pulumi.Input[str]] = None):
|
|
85
76
|
"""
|
|
86
77
|
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
78
|
:param pulumi.Input[str] connect_provider: Specifies the CA provider type to use.
|
|
92
79
|
"""
|
|
93
80
|
if config is not None:
|
|
@@ -102,14 +89,8 @@ class _CertificateAuthorityState:
|
|
|
102
89
|
|
|
103
90
|
@property
|
|
104
91
|
@pulumi.getter
|
|
92
|
+
@_utilities.deprecated("""The config attribute is deprecated, please use config_json instead.""")
|
|
105
93
|
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
|
-
warnings.warn("""The config attribute is deprecated, please use config_json instead.""", DeprecationWarning)
|
|
111
|
-
pulumi.log.warn("""config is deprecated: The config attribute is deprecated, please use config_json instead.""")
|
|
112
|
-
|
|
113
94
|
return pulumi.get(self, "config")
|
|
114
95
|
|
|
115
96
|
@config.setter
|
|
@@ -119,10 +100,6 @@ class _CertificateAuthorityState:
|
|
|
119
100
|
@property
|
|
120
101
|
@pulumi.getter(name="configJson")
|
|
121
102
|
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
103
|
return pulumi.get(self, "config_json")
|
|
127
104
|
|
|
128
105
|
@config_json.setter
|
|
@@ -164,10 +141,6 @@ class CertificateAuthority(pulumi.CustomResource):
|
|
|
164
141
|
|
|
165
142
|
:param str resource_name: The name of the resource.
|
|
166
143
|
: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
144
|
:param pulumi.Input[str] connect_provider: Specifies the CA provider type to use.
|
|
172
145
|
"""
|
|
173
146
|
...
|
|
@@ -239,10 +212,6 @@ class CertificateAuthority(pulumi.CustomResource):
|
|
|
239
212
|
:param str resource_name: The unique name of the resulting resource.
|
|
240
213
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
241
214
|
: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
215
|
:param pulumi.Input[str] connect_provider: Specifies the CA provider type to use.
|
|
247
216
|
"""
|
|
248
217
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -256,23 +225,13 @@ class CertificateAuthority(pulumi.CustomResource):
|
|
|
256
225
|
|
|
257
226
|
@property
|
|
258
227
|
@pulumi.getter
|
|
228
|
+
@_utilities.deprecated("""The config attribute is deprecated, please use config_json instead.""")
|
|
259
229
|
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
|
-
warnings.warn("""The config attribute is deprecated, please use config_json instead.""", DeprecationWarning)
|
|
265
|
-
pulumi.log.warn("""config is deprecated: The config attribute is deprecated, please use config_json instead.""")
|
|
266
|
-
|
|
267
230
|
return pulumi.get(self, "config")
|
|
268
231
|
|
|
269
232
|
@property
|
|
270
233
|
@pulumi.getter(name="configJson")
|
|
271
234
|
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
235
|
return pulumi.get(self, "config_json")
|
|
277
236
|
|
|
278
237
|
@property
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from .. import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
|
pulumi_consul/config/outputs.py
CHANGED
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from .. import _utilities
|
|
11
16
|
|
|
12
17
|
__all__ = [
|
pulumi_consul/config/vars.py
CHANGED
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from .. import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
|
pulumi_consul/config_entry.py
CHANGED
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
|
|
12
17
|
__all__ = ['ConfigEntryArgs', 'ConfigEntry']
|
|
@@ -200,14 +205,14 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
200
205
|
"""
|
|
201
206
|
## Example Usage
|
|
202
207
|
|
|
203
|
-
<!--Start PulumiCodeChooser -->
|
|
204
208
|
```python
|
|
205
209
|
import pulumi
|
|
206
210
|
import json
|
|
207
211
|
import pulumi_consul as consul
|
|
208
212
|
|
|
209
|
-
proxy_defaults = consul.ConfigEntry("
|
|
213
|
+
proxy_defaults = consul.ConfigEntry("proxy_defaults",
|
|
210
214
|
kind="proxy-defaults",
|
|
215
|
+
name="global",
|
|
211
216
|
config_json=json.dumps({
|
|
212
217
|
"Config": {
|
|
213
218
|
"local_connect_timeout_ms": 1000,
|
|
@@ -215,17 +220,20 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
215
220
|
},
|
|
216
221
|
}))
|
|
217
222
|
web = consul.ConfigEntry("web",
|
|
223
|
+
name="web",
|
|
218
224
|
kind="service-defaults",
|
|
219
225
|
config_json=json.dumps({
|
|
220
226
|
"Protocol": "http",
|
|
221
227
|
}))
|
|
222
228
|
admin = consul.ConfigEntry("admin",
|
|
229
|
+
name="admin",
|
|
223
230
|
kind="service-defaults",
|
|
224
231
|
config_json=json.dumps({
|
|
225
232
|
"Protocol": "http",
|
|
226
233
|
}))
|
|
227
|
-
service_resolver = consul.ConfigEntry("
|
|
234
|
+
service_resolver = consul.ConfigEntry("service_resolver",
|
|
228
235
|
kind="service-resolver",
|
|
236
|
+
name=web.name,
|
|
229
237
|
config_json=json.dumps({
|
|
230
238
|
"DefaultSubset": "v1",
|
|
231
239
|
"Subsets": {
|
|
@@ -237,8 +245,9 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
237
245
|
},
|
|
238
246
|
},
|
|
239
247
|
}))
|
|
240
|
-
service_splitter = consul.ConfigEntry("
|
|
248
|
+
service_splitter = consul.ConfigEntry("service_splitter",
|
|
241
249
|
kind="service-splitter",
|
|
250
|
+
name=service_resolver.name,
|
|
242
251
|
config_json=json.dumps({
|
|
243
252
|
"Splits": [
|
|
244
253
|
{
|
|
@@ -251,8 +260,9 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
251
260
|
},
|
|
252
261
|
],
|
|
253
262
|
}))
|
|
254
|
-
service_router = consul.ConfigEntry("
|
|
263
|
+
service_router = consul.ConfigEntry("service_router",
|
|
255
264
|
kind="service-router",
|
|
265
|
+
name="web",
|
|
256
266
|
config_json=json.dumps({
|
|
257
267
|
"Routes": [{
|
|
258
268
|
"Match": {
|
|
@@ -265,7 +275,8 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
265
275
|
},
|
|
266
276
|
}],
|
|
267
277
|
}))
|
|
268
|
-
ingress_gateway = consul.ConfigEntry("
|
|
278
|
+
ingress_gateway = consul.ConfigEntry("ingress_gateway",
|
|
279
|
+
name="us-east-ingress",
|
|
269
280
|
kind="ingress-gateway",
|
|
270
281
|
config_json=json.dumps({
|
|
271
282
|
"TLS": {
|
|
@@ -279,7 +290,8 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
279
290
|
}],
|
|
280
291
|
}],
|
|
281
292
|
}))
|
|
282
|
-
terminating_gateway = consul.ConfigEntry("
|
|
293
|
+
terminating_gateway = consul.ConfigEntry("terminating_gateway",
|
|
294
|
+
name="us-west-gateway",
|
|
283
295
|
kind="terminating-gateway",
|
|
284
296
|
config_json=json.dumps({
|
|
285
297
|
"Services": [{
|
|
@@ -287,17 +299,16 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
287
299
|
}],
|
|
288
300
|
}))
|
|
289
301
|
```
|
|
290
|
-
<!--End PulumiCodeChooser -->
|
|
291
302
|
|
|
292
303
|
### `service-intentions` config entry
|
|
293
304
|
|
|
294
|
-
<!--Start PulumiCodeChooser -->
|
|
295
305
|
```python
|
|
296
306
|
import pulumi
|
|
297
307
|
import json
|
|
298
308
|
import pulumi_consul as consul
|
|
299
309
|
|
|
300
|
-
service_intentions = consul.ConfigEntry("
|
|
310
|
+
service_intentions = consul.ConfigEntry("service_intentions",
|
|
311
|
+
name="api-service",
|
|
301
312
|
kind="service-intentions",
|
|
302
313
|
config_json=json.dumps({
|
|
303
314
|
"Sources": [
|
|
@@ -316,20 +327,20 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
316
327
|
],
|
|
317
328
|
}))
|
|
318
329
|
```
|
|
319
|
-
<!--End PulumiCodeChooser -->
|
|
320
330
|
|
|
321
|
-
<!--Start PulumiCodeChooser -->
|
|
322
331
|
```python
|
|
323
332
|
import pulumi
|
|
324
333
|
import json
|
|
325
334
|
import pulumi_consul as consul
|
|
326
335
|
|
|
327
336
|
sd = consul.ConfigEntry("sd",
|
|
337
|
+
name="fort-knox",
|
|
328
338
|
kind="service-defaults",
|
|
329
339
|
config_json=json.dumps({
|
|
330
340
|
"Protocol": "http",
|
|
331
341
|
}))
|
|
332
|
-
jwt_provider = consul.ConfigEntry("
|
|
342
|
+
jwt_provider = consul.ConfigEntry("jwt_provider",
|
|
343
|
+
name="test-provider",
|
|
333
344
|
kind="jwt-provider",
|
|
334
345
|
config_json=json.dumps({
|
|
335
346
|
"Issuer": "test-issuer",
|
|
@@ -343,7 +354,8 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
343
354
|
"HeaderName": "test-token",
|
|
344
355
|
},
|
|
345
356
|
}))
|
|
346
|
-
service_intentions = consul.ConfigEntry("
|
|
357
|
+
service_intentions = consul.ConfigEntry("service_intentions",
|
|
358
|
+
name=sd.name,
|
|
347
359
|
kind="service-intentions",
|
|
348
360
|
config_json=pulumi.Output.json_dumps({
|
|
349
361
|
"Sources": [
|
|
@@ -389,17 +401,16 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
389
401
|
],
|
|
390
402
|
}))
|
|
391
403
|
```
|
|
392
|
-
<!--End PulumiCodeChooser -->
|
|
393
404
|
|
|
394
405
|
### `exported-services` config entry
|
|
395
406
|
|
|
396
|
-
<!--Start PulumiCodeChooser -->
|
|
397
407
|
```python
|
|
398
408
|
import pulumi
|
|
399
409
|
import json
|
|
400
410
|
import pulumi_consul as consul
|
|
401
411
|
|
|
402
|
-
exported_services = consul.ConfigEntry("
|
|
412
|
+
exported_services = consul.ConfigEntry("exported_services",
|
|
413
|
+
name="test",
|
|
403
414
|
kind="exported-services",
|
|
404
415
|
config_json=json.dumps({
|
|
405
416
|
"Services": [{
|
|
@@ -411,17 +422,16 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
411
422
|
}],
|
|
412
423
|
}))
|
|
413
424
|
```
|
|
414
|
-
<!--End PulumiCodeChooser -->
|
|
415
425
|
|
|
416
426
|
### `mesh` config entry
|
|
417
427
|
|
|
418
|
-
<!--Start PulumiCodeChooser -->
|
|
419
428
|
```python
|
|
420
429
|
import pulumi
|
|
421
430
|
import json
|
|
422
431
|
import pulumi_consul as consul
|
|
423
432
|
|
|
424
433
|
mesh = consul.ConfigEntry("mesh",
|
|
434
|
+
name="mesh",
|
|
425
435
|
kind="mesh",
|
|
426
436
|
partition="default",
|
|
427
437
|
config_json=json.dumps({
|
|
@@ -430,17 +440,16 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
430
440
|
},
|
|
431
441
|
}))
|
|
432
442
|
```
|
|
433
|
-
<!--End PulumiCodeChooser -->
|
|
434
443
|
|
|
435
444
|
### `jwt-provider` config entry
|
|
436
445
|
|
|
437
|
-
<!--Start PulumiCodeChooser -->
|
|
438
446
|
```python
|
|
439
447
|
import pulumi
|
|
440
448
|
import json
|
|
441
449
|
import pulumi_consul as consul
|
|
442
450
|
|
|
443
|
-
jwt_provider = consul.ConfigEntry("
|
|
451
|
+
jwt_provider = consul.ConfigEntry("jwt_provider",
|
|
452
|
+
name="provider-name",
|
|
444
453
|
kind="jwt-provider",
|
|
445
454
|
config_json=json.dumps({
|
|
446
455
|
"Issuer": "https://your.issuer.com",
|
|
@@ -456,7 +465,6 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
456
465
|
},
|
|
457
466
|
}))
|
|
458
467
|
```
|
|
459
|
-
<!--End PulumiCodeChooser -->
|
|
460
468
|
|
|
461
469
|
## Import
|
|
462
470
|
|
|
@@ -486,14 +494,14 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
486
494
|
"""
|
|
487
495
|
## Example Usage
|
|
488
496
|
|
|
489
|
-
<!--Start PulumiCodeChooser -->
|
|
490
497
|
```python
|
|
491
498
|
import pulumi
|
|
492
499
|
import json
|
|
493
500
|
import pulumi_consul as consul
|
|
494
501
|
|
|
495
|
-
proxy_defaults = consul.ConfigEntry("
|
|
502
|
+
proxy_defaults = consul.ConfigEntry("proxy_defaults",
|
|
496
503
|
kind="proxy-defaults",
|
|
504
|
+
name="global",
|
|
497
505
|
config_json=json.dumps({
|
|
498
506
|
"Config": {
|
|
499
507
|
"local_connect_timeout_ms": 1000,
|
|
@@ -501,17 +509,20 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
501
509
|
},
|
|
502
510
|
}))
|
|
503
511
|
web = consul.ConfigEntry("web",
|
|
512
|
+
name="web",
|
|
504
513
|
kind="service-defaults",
|
|
505
514
|
config_json=json.dumps({
|
|
506
515
|
"Protocol": "http",
|
|
507
516
|
}))
|
|
508
517
|
admin = consul.ConfigEntry("admin",
|
|
518
|
+
name="admin",
|
|
509
519
|
kind="service-defaults",
|
|
510
520
|
config_json=json.dumps({
|
|
511
521
|
"Protocol": "http",
|
|
512
522
|
}))
|
|
513
|
-
service_resolver = consul.ConfigEntry("
|
|
523
|
+
service_resolver = consul.ConfigEntry("service_resolver",
|
|
514
524
|
kind="service-resolver",
|
|
525
|
+
name=web.name,
|
|
515
526
|
config_json=json.dumps({
|
|
516
527
|
"DefaultSubset": "v1",
|
|
517
528
|
"Subsets": {
|
|
@@ -523,8 +534,9 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
523
534
|
},
|
|
524
535
|
},
|
|
525
536
|
}))
|
|
526
|
-
service_splitter = consul.ConfigEntry("
|
|
537
|
+
service_splitter = consul.ConfigEntry("service_splitter",
|
|
527
538
|
kind="service-splitter",
|
|
539
|
+
name=service_resolver.name,
|
|
528
540
|
config_json=json.dumps({
|
|
529
541
|
"Splits": [
|
|
530
542
|
{
|
|
@@ -537,8 +549,9 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
537
549
|
},
|
|
538
550
|
],
|
|
539
551
|
}))
|
|
540
|
-
service_router = consul.ConfigEntry("
|
|
552
|
+
service_router = consul.ConfigEntry("service_router",
|
|
541
553
|
kind="service-router",
|
|
554
|
+
name="web",
|
|
542
555
|
config_json=json.dumps({
|
|
543
556
|
"Routes": [{
|
|
544
557
|
"Match": {
|
|
@@ -551,7 +564,8 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
551
564
|
},
|
|
552
565
|
}],
|
|
553
566
|
}))
|
|
554
|
-
ingress_gateway = consul.ConfigEntry("
|
|
567
|
+
ingress_gateway = consul.ConfigEntry("ingress_gateway",
|
|
568
|
+
name="us-east-ingress",
|
|
555
569
|
kind="ingress-gateway",
|
|
556
570
|
config_json=json.dumps({
|
|
557
571
|
"TLS": {
|
|
@@ -565,7 +579,8 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
565
579
|
}],
|
|
566
580
|
}],
|
|
567
581
|
}))
|
|
568
|
-
terminating_gateway = consul.ConfigEntry("
|
|
582
|
+
terminating_gateway = consul.ConfigEntry("terminating_gateway",
|
|
583
|
+
name="us-west-gateway",
|
|
569
584
|
kind="terminating-gateway",
|
|
570
585
|
config_json=json.dumps({
|
|
571
586
|
"Services": [{
|
|
@@ -573,17 +588,16 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
573
588
|
}],
|
|
574
589
|
}))
|
|
575
590
|
```
|
|
576
|
-
<!--End PulumiCodeChooser -->
|
|
577
591
|
|
|
578
592
|
### `service-intentions` config entry
|
|
579
593
|
|
|
580
|
-
<!--Start PulumiCodeChooser -->
|
|
581
594
|
```python
|
|
582
595
|
import pulumi
|
|
583
596
|
import json
|
|
584
597
|
import pulumi_consul as consul
|
|
585
598
|
|
|
586
|
-
service_intentions = consul.ConfigEntry("
|
|
599
|
+
service_intentions = consul.ConfigEntry("service_intentions",
|
|
600
|
+
name="api-service",
|
|
587
601
|
kind="service-intentions",
|
|
588
602
|
config_json=json.dumps({
|
|
589
603
|
"Sources": [
|
|
@@ -602,20 +616,20 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
602
616
|
],
|
|
603
617
|
}))
|
|
604
618
|
```
|
|
605
|
-
<!--End PulumiCodeChooser -->
|
|
606
619
|
|
|
607
|
-
<!--Start PulumiCodeChooser -->
|
|
608
620
|
```python
|
|
609
621
|
import pulumi
|
|
610
622
|
import json
|
|
611
623
|
import pulumi_consul as consul
|
|
612
624
|
|
|
613
625
|
sd = consul.ConfigEntry("sd",
|
|
626
|
+
name="fort-knox",
|
|
614
627
|
kind="service-defaults",
|
|
615
628
|
config_json=json.dumps({
|
|
616
629
|
"Protocol": "http",
|
|
617
630
|
}))
|
|
618
|
-
jwt_provider = consul.ConfigEntry("
|
|
631
|
+
jwt_provider = consul.ConfigEntry("jwt_provider",
|
|
632
|
+
name="test-provider",
|
|
619
633
|
kind="jwt-provider",
|
|
620
634
|
config_json=json.dumps({
|
|
621
635
|
"Issuer": "test-issuer",
|
|
@@ -629,7 +643,8 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
629
643
|
"HeaderName": "test-token",
|
|
630
644
|
},
|
|
631
645
|
}))
|
|
632
|
-
service_intentions = consul.ConfigEntry("
|
|
646
|
+
service_intentions = consul.ConfigEntry("service_intentions",
|
|
647
|
+
name=sd.name,
|
|
633
648
|
kind="service-intentions",
|
|
634
649
|
config_json=pulumi.Output.json_dumps({
|
|
635
650
|
"Sources": [
|
|
@@ -675,17 +690,16 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
675
690
|
],
|
|
676
691
|
}))
|
|
677
692
|
```
|
|
678
|
-
<!--End PulumiCodeChooser -->
|
|
679
693
|
|
|
680
694
|
### `exported-services` config entry
|
|
681
695
|
|
|
682
|
-
<!--Start PulumiCodeChooser -->
|
|
683
696
|
```python
|
|
684
697
|
import pulumi
|
|
685
698
|
import json
|
|
686
699
|
import pulumi_consul as consul
|
|
687
700
|
|
|
688
|
-
exported_services = consul.ConfigEntry("
|
|
701
|
+
exported_services = consul.ConfigEntry("exported_services",
|
|
702
|
+
name="test",
|
|
689
703
|
kind="exported-services",
|
|
690
704
|
config_json=json.dumps({
|
|
691
705
|
"Services": [{
|
|
@@ -697,17 +711,16 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
697
711
|
}],
|
|
698
712
|
}))
|
|
699
713
|
```
|
|
700
|
-
<!--End PulumiCodeChooser -->
|
|
701
714
|
|
|
702
715
|
### `mesh` config entry
|
|
703
716
|
|
|
704
|
-
<!--Start PulumiCodeChooser -->
|
|
705
717
|
```python
|
|
706
718
|
import pulumi
|
|
707
719
|
import json
|
|
708
720
|
import pulumi_consul as consul
|
|
709
721
|
|
|
710
722
|
mesh = consul.ConfigEntry("mesh",
|
|
723
|
+
name="mesh",
|
|
711
724
|
kind="mesh",
|
|
712
725
|
partition="default",
|
|
713
726
|
config_json=json.dumps({
|
|
@@ -716,17 +729,16 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
716
729
|
},
|
|
717
730
|
}))
|
|
718
731
|
```
|
|
719
|
-
<!--End PulumiCodeChooser -->
|
|
720
732
|
|
|
721
733
|
### `jwt-provider` config entry
|
|
722
734
|
|
|
723
|
-
<!--Start PulumiCodeChooser -->
|
|
724
735
|
```python
|
|
725
736
|
import pulumi
|
|
726
737
|
import json
|
|
727
738
|
import pulumi_consul as consul
|
|
728
739
|
|
|
729
|
-
jwt_provider = consul.ConfigEntry("
|
|
740
|
+
jwt_provider = consul.ConfigEntry("jwt_provider",
|
|
741
|
+
name="provider-name",
|
|
730
742
|
kind="jwt-provider",
|
|
731
743
|
config_json=json.dumps({
|
|
732
744
|
"Issuer": "https://your.issuer.com",
|
|
@@ -742,7 +754,6 @@ class ConfigEntry(pulumi.CustomResource):
|
|
|
742
754
|
},
|
|
743
755
|
}))
|
|
744
756
|
```
|
|
745
|
-
<!--End PulumiCodeChooser -->
|
|
746
757
|
|
|
747
758
|
## Import
|
|
748
759
|
|