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
|
@@ -26,8 +26,8 @@ class ConfigEntryServiceSplitterArgs:
|
|
|
26
26
|
:param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceSplitterSplitArgs']]] splits: Defines how much traffic to send to sets of service instances during a traffic split.
|
|
27
27
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] meta: Specifies key-value pairs to add to the KV store.
|
|
28
28
|
:param pulumi.Input[str] name: Specifies a name for the configuration entry.
|
|
29
|
-
:param pulumi.Input[str] namespace: Specifies the namespace to
|
|
30
|
-
:param pulumi.Input[str] partition: Specifies the admin partition to
|
|
29
|
+
:param pulumi.Input[str] namespace: Specifies the namespace to apply the configuration entry.
|
|
30
|
+
:param pulumi.Input[str] partition: Specifies the admin partition to apply the configuration entry.
|
|
31
31
|
"""
|
|
32
32
|
pulumi.set(__self__, "splits", splits)
|
|
33
33
|
if meta is not None:
|
|
@@ -79,7 +79,7 @@ class ConfigEntryServiceSplitterArgs:
|
|
|
79
79
|
@pulumi.getter
|
|
80
80
|
def namespace(self) -> Optional[pulumi.Input[str]]:
|
|
81
81
|
"""
|
|
82
|
-
Specifies the namespace to
|
|
82
|
+
Specifies the namespace to apply the configuration entry.
|
|
83
83
|
"""
|
|
84
84
|
return pulumi.get(self, "namespace")
|
|
85
85
|
|
|
@@ -91,7 +91,7 @@ class ConfigEntryServiceSplitterArgs:
|
|
|
91
91
|
@pulumi.getter
|
|
92
92
|
def partition(self) -> Optional[pulumi.Input[str]]:
|
|
93
93
|
"""
|
|
94
|
-
Specifies the admin partition to
|
|
94
|
+
Specifies the admin partition to apply the configuration entry.
|
|
95
95
|
"""
|
|
96
96
|
return pulumi.get(self, "partition")
|
|
97
97
|
|
|
@@ -112,8 +112,8 @@ class _ConfigEntryServiceSplitterState:
|
|
|
112
112
|
Input properties used for looking up and filtering ConfigEntryServiceSplitter resources.
|
|
113
113
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] meta: Specifies key-value pairs to add to the KV store.
|
|
114
114
|
:param pulumi.Input[str] name: Specifies a name for the configuration entry.
|
|
115
|
-
:param pulumi.Input[str] namespace: Specifies the namespace to
|
|
116
|
-
:param pulumi.Input[str] partition: Specifies the admin partition to
|
|
115
|
+
:param pulumi.Input[str] namespace: Specifies the namespace to apply the configuration entry.
|
|
116
|
+
:param pulumi.Input[str] partition: Specifies the admin partition to apply the configuration entry.
|
|
117
117
|
:param pulumi.Input[Sequence[pulumi.Input['ConfigEntryServiceSplitterSplitArgs']]] splits: Defines how much traffic to send to sets of service instances during a traffic split.
|
|
118
118
|
"""
|
|
119
119
|
if meta is not None:
|
|
@@ -155,7 +155,7 @@ class _ConfigEntryServiceSplitterState:
|
|
|
155
155
|
@pulumi.getter
|
|
156
156
|
def namespace(self) -> Optional[pulumi.Input[str]]:
|
|
157
157
|
"""
|
|
158
|
-
Specifies the namespace to
|
|
158
|
+
Specifies the namespace to apply the configuration entry.
|
|
159
159
|
"""
|
|
160
160
|
return pulumi.get(self, "namespace")
|
|
161
161
|
|
|
@@ -167,7 +167,7 @@ class _ConfigEntryServiceSplitterState:
|
|
|
167
167
|
@pulumi.getter
|
|
168
168
|
def partition(self) -> Optional[pulumi.Input[str]]:
|
|
169
169
|
"""
|
|
170
|
-
Specifies the admin partition to
|
|
170
|
+
Specifies the admin partition to apply the configuration entry.
|
|
171
171
|
"""
|
|
172
172
|
return pulumi.get(self, "partition")
|
|
173
173
|
|
|
@@ -202,13 +202,13 @@ class ConfigEntryServiceSplitter(pulumi.CustomResource):
|
|
|
202
202
|
"""
|
|
203
203
|
## Example Usage
|
|
204
204
|
|
|
205
|
-
<!--Start PulumiCodeChooser -->
|
|
206
205
|
```python
|
|
207
206
|
import pulumi
|
|
208
207
|
import json
|
|
209
208
|
import pulumi_consul as consul
|
|
210
209
|
|
|
211
210
|
web = consul.ConfigEntry("web",
|
|
211
|
+
name="web",
|
|
212
212
|
kind="service-defaults",
|
|
213
213
|
config_json=json.dumps({
|
|
214
214
|
"Protocol": "http",
|
|
@@ -216,7 +216,8 @@ class ConfigEntryServiceSplitter(pulumi.CustomResource):
|
|
|
216
216
|
"MeshGateway": {},
|
|
217
217
|
"TransparentProxy": {},
|
|
218
218
|
}))
|
|
219
|
-
service_resolver = consul.ConfigEntryServiceResolver("
|
|
219
|
+
service_resolver = consul.ConfigEntryServiceResolver("service_resolver",
|
|
220
|
+
name="service-resolver",
|
|
220
221
|
default_subset="v1",
|
|
221
222
|
subsets=[
|
|
222
223
|
consul.ConfigEntryServiceResolverSubsetArgs(
|
|
@@ -229,6 +230,7 @@ class ConfigEntryServiceSplitter(pulumi.CustomResource):
|
|
|
229
230
|
),
|
|
230
231
|
])
|
|
231
232
|
foo = consul.ConfigEntryServiceSplitter("foo",
|
|
233
|
+
name=service_resolver.name,
|
|
232
234
|
meta={
|
|
233
235
|
"key": "value",
|
|
234
236
|
},
|
|
@@ -270,7 +272,6 @@ class ConfigEntryServiceSplitter(pulumi.CustomResource):
|
|
|
270
272
|
),
|
|
271
273
|
])
|
|
272
274
|
```
|
|
273
|
-
<!--End PulumiCodeChooser -->
|
|
274
275
|
|
|
275
276
|
## Import
|
|
276
277
|
|
|
@@ -282,8 +283,8 @@ class ConfigEntryServiceSplitter(pulumi.CustomResource):
|
|
|
282
283
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
283
284
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] meta: Specifies key-value pairs to add to the KV store.
|
|
284
285
|
:param pulumi.Input[str] name: Specifies a name for the configuration entry.
|
|
285
|
-
:param pulumi.Input[str] namespace: Specifies the namespace to
|
|
286
|
-
:param pulumi.Input[str] partition: Specifies the admin partition to
|
|
286
|
+
:param pulumi.Input[str] namespace: Specifies the namespace to apply the configuration entry.
|
|
287
|
+
:param pulumi.Input[str] partition: Specifies the admin partition to apply the configuration entry.
|
|
287
288
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceSplitterSplitArgs']]]] splits: Defines how much traffic to send to sets of service instances during a traffic split.
|
|
288
289
|
"""
|
|
289
290
|
...
|
|
@@ -295,13 +296,13 @@ class ConfigEntryServiceSplitter(pulumi.CustomResource):
|
|
|
295
296
|
"""
|
|
296
297
|
## Example Usage
|
|
297
298
|
|
|
298
|
-
<!--Start PulumiCodeChooser -->
|
|
299
299
|
```python
|
|
300
300
|
import pulumi
|
|
301
301
|
import json
|
|
302
302
|
import pulumi_consul as consul
|
|
303
303
|
|
|
304
304
|
web = consul.ConfigEntry("web",
|
|
305
|
+
name="web",
|
|
305
306
|
kind="service-defaults",
|
|
306
307
|
config_json=json.dumps({
|
|
307
308
|
"Protocol": "http",
|
|
@@ -309,7 +310,8 @@ class ConfigEntryServiceSplitter(pulumi.CustomResource):
|
|
|
309
310
|
"MeshGateway": {},
|
|
310
311
|
"TransparentProxy": {},
|
|
311
312
|
}))
|
|
312
|
-
service_resolver = consul.ConfigEntryServiceResolver("
|
|
313
|
+
service_resolver = consul.ConfigEntryServiceResolver("service_resolver",
|
|
314
|
+
name="service-resolver",
|
|
313
315
|
default_subset="v1",
|
|
314
316
|
subsets=[
|
|
315
317
|
consul.ConfigEntryServiceResolverSubsetArgs(
|
|
@@ -322,6 +324,7 @@ class ConfigEntryServiceSplitter(pulumi.CustomResource):
|
|
|
322
324
|
),
|
|
323
325
|
])
|
|
324
326
|
foo = consul.ConfigEntryServiceSplitter("foo",
|
|
327
|
+
name=service_resolver.name,
|
|
325
328
|
meta={
|
|
326
329
|
"key": "value",
|
|
327
330
|
},
|
|
@@ -363,7 +366,6 @@ class ConfigEntryServiceSplitter(pulumi.CustomResource):
|
|
|
363
366
|
),
|
|
364
367
|
])
|
|
365
368
|
```
|
|
366
|
-
<!--End PulumiCodeChooser -->
|
|
367
369
|
|
|
368
370
|
## Import
|
|
369
371
|
|
|
@@ -431,8 +433,8 @@ class ConfigEntryServiceSplitter(pulumi.CustomResource):
|
|
|
431
433
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
432
434
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] meta: Specifies key-value pairs to add to the KV store.
|
|
433
435
|
:param pulumi.Input[str] name: Specifies a name for the configuration entry.
|
|
434
|
-
:param pulumi.Input[str] namespace: Specifies the namespace to
|
|
435
|
-
:param pulumi.Input[str] partition: Specifies the admin partition to
|
|
436
|
+
:param pulumi.Input[str] namespace: Specifies the namespace to apply the configuration entry.
|
|
437
|
+
:param pulumi.Input[str] partition: Specifies the admin partition to apply the configuration entry.
|
|
436
438
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigEntryServiceSplitterSplitArgs']]]] splits: Defines how much traffic to send to sets of service instances during a traffic split.
|
|
437
439
|
"""
|
|
438
440
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -466,7 +468,7 @@ class ConfigEntryServiceSplitter(pulumi.CustomResource):
|
|
|
466
468
|
@pulumi.getter
|
|
467
469
|
def namespace(self) -> pulumi.Output[Optional[str]]:
|
|
468
470
|
"""
|
|
469
|
-
Specifies the namespace to
|
|
471
|
+
Specifies the namespace to apply the configuration entry.
|
|
470
472
|
"""
|
|
471
473
|
return pulumi.get(self, "namespace")
|
|
472
474
|
|
|
@@ -474,7 +476,7 @@ class ConfigEntryServiceSplitter(pulumi.CustomResource):
|
|
|
474
476
|
@pulumi.getter
|
|
475
477
|
def partition(self) -> pulumi.Output[Optional[str]]:
|
|
476
478
|
"""
|
|
477
|
-
Specifies the admin partition to
|
|
479
|
+
Specifies the admin partition to apply the configuration entry.
|
|
478
480
|
"""
|
|
479
481
|
return pulumi.get(self, "partition")
|
|
480
482
|
|
|
@@ -187,7 +187,6 @@ def get_acl_auth_method(name: Optional[str] = None,
|
|
|
187
187
|
|
|
188
188
|
## Example Usage
|
|
189
189
|
|
|
190
|
-
<!--Start PulumiCodeChooser -->
|
|
191
190
|
```python
|
|
192
191
|
import pulumi
|
|
193
192
|
import pulumi_consul as consul
|
|
@@ -195,7 +194,6 @@ def get_acl_auth_method(name: Optional[str] = None,
|
|
|
195
194
|
test = consul.get_acl_auth_method(name="minikube")
|
|
196
195
|
pulumi.export("consulAclAuthMethod", test.config)
|
|
197
196
|
```
|
|
198
|
-
<!--End PulumiCodeChooser -->
|
|
199
197
|
|
|
200
198
|
|
|
201
199
|
:param str name: The name of the ACL Auth Method.
|
|
@@ -235,7 +233,6 @@ def get_acl_auth_method_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
235
233
|
|
|
236
234
|
## Example Usage
|
|
237
235
|
|
|
238
|
-
<!--Start PulumiCodeChooser -->
|
|
239
236
|
```python
|
|
240
237
|
import pulumi
|
|
241
238
|
import pulumi_consul as consul
|
|
@@ -243,7 +240,6 @@ def get_acl_auth_method_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
243
240
|
test = consul.get_acl_auth_method(name="minikube")
|
|
244
241
|
pulumi.export("consulAclAuthMethod", test.config)
|
|
245
242
|
```
|
|
246
|
-
<!--End PulumiCodeChooser -->
|
|
247
243
|
|
|
248
244
|
|
|
249
245
|
:param str name: The name of the ACL Auth Method.
|
pulumi_consul/get_acl_policy.py
CHANGED
|
@@ -117,7 +117,6 @@ def get_acl_policy(name: Optional[str] = None,
|
|
|
117
117
|
|
|
118
118
|
## Example Usage
|
|
119
119
|
|
|
120
|
-
<!--Start PulumiCodeChooser -->
|
|
121
120
|
```python
|
|
122
121
|
import pulumi
|
|
123
122
|
import pulumi_consul as consul
|
|
@@ -125,7 +124,6 @@ def get_acl_policy(name: Optional[str] = None,
|
|
|
125
124
|
agent = consul.get_acl_policy(name="agent")
|
|
126
125
|
pulumi.export("consulAclPolicy", agent.rules)
|
|
127
126
|
```
|
|
128
|
-
<!--End PulumiCodeChooser -->
|
|
129
127
|
|
|
130
128
|
|
|
131
129
|
:param str name: The name of the ACL Policy.
|
|
@@ -160,7 +158,6 @@ def get_acl_policy_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
160
158
|
|
|
161
159
|
## Example Usage
|
|
162
160
|
|
|
163
|
-
<!--Start PulumiCodeChooser -->
|
|
164
161
|
```python
|
|
165
162
|
import pulumi
|
|
166
163
|
import pulumi_consul as consul
|
|
@@ -168,7 +165,6 @@ def get_acl_policy_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
168
165
|
agent = consul.get_acl_policy(name="agent")
|
|
169
166
|
pulumi.export("consulAclPolicy", agent.rules)
|
|
170
167
|
```
|
|
171
|
-
<!--End PulumiCodeChooser -->
|
|
172
168
|
|
|
173
169
|
|
|
174
170
|
:param str name: The name of the ACL Policy.
|
pulumi_consul/get_acl_role.py
CHANGED
|
@@ -150,7 +150,6 @@ def get_acl_role(name: Optional[str] = None,
|
|
|
150
150
|
|
|
151
151
|
## Example Usage
|
|
152
152
|
|
|
153
|
-
<!--Start PulumiCodeChooser -->
|
|
154
153
|
```python
|
|
155
154
|
import pulumi
|
|
156
155
|
import pulumi_consul as consul
|
|
@@ -158,9 +157,9 @@ def get_acl_role(name: Optional[str] = None,
|
|
|
158
157
|
test = consul.get_acl_role(name="example-role")
|
|
159
158
|
pulumi.export("consulAclRole", test.id)
|
|
160
159
|
```
|
|
161
|
-
<!--End PulumiCodeChooser -->
|
|
162
160
|
|
|
163
161
|
|
|
162
|
+
:param str name: The name of the ACL Role.
|
|
164
163
|
:param str namespace: The namespace to lookup the role.
|
|
165
164
|
:param str partition: The partition to lookup the role.
|
|
166
165
|
"""
|
|
@@ -193,7 +192,6 @@ def get_acl_role_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
193
192
|
|
|
194
193
|
## Example Usage
|
|
195
194
|
|
|
196
|
-
<!--Start PulumiCodeChooser -->
|
|
197
195
|
```python
|
|
198
196
|
import pulumi
|
|
199
197
|
import pulumi_consul as consul
|
|
@@ -201,9 +199,9 @@ def get_acl_role_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
201
199
|
test = consul.get_acl_role(name="example-role")
|
|
202
200
|
pulumi.export("consulAclRole", test.id)
|
|
203
201
|
```
|
|
204
|
-
<!--End PulumiCodeChooser -->
|
|
205
202
|
|
|
206
203
|
|
|
204
|
+
:param str name: The name of the ACL Role.
|
|
207
205
|
:param str namespace: The namespace to lookup the role.
|
|
208
206
|
:param str partition: The partition to lookup the role.
|
|
209
207
|
"""
|
pulumi_consul/get_acl_token.py
CHANGED
|
@@ -188,7 +188,6 @@ def get_acl_token(accessor_id: Optional[str] = None,
|
|
|
188
188
|
|
|
189
189
|
## Example Usage
|
|
190
190
|
|
|
191
|
-
<!--Start PulumiCodeChooser -->
|
|
192
191
|
```python
|
|
193
192
|
import pulumi
|
|
194
193
|
import pulumi_consul as consul
|
|
@@ -196,7 +195,6 @@ def get_acl_token(accessor_id: Optional[str] = None,
|
|
|
196
195
|
test = consul.get_acl_token(accessor_id="00000000-0000-0000-0000-000000000002")
|
|
197
196
|
pulumi.export("consulAclPolicies", test.policies)
|
|
198
197
|
```
|
|
199
|
-
<!--End PulumiCodeChooser -->
|
|
200
198
|
|
|
201
199
|
|
|
202
200
|
:param str accessor_id: The accessor ID of the ACL token.
|
|
@@ -237,7 +235,6 @@ def get_acl_token_output(accessor_id: Optional[pulumi.Input[str]] = None,
|
|
|
237
235
|
|
|
238
236
|
## Example Usage
|
|
239
237
|
|
|
240
|
-
<!--Start PulumiCodeChooser -->
|
|
241
238
|
```python
|
|
242
239
|
import pulumi
|
|
243
240
|
import pulumi_consul as consul
|
|
@@ -245,7 +242,6 @@ def get_acl_token_output(accessor_id: Optional[pulumi.Input[str]] = None,
|
|
|
245
242
|
test = consul.get_acl_token(accessor_id="00000000-0000-0000-0000-000000000002")
|
|
246
243
|
pulumi.export("consulAclPolicies", test.policies)
|
|
247
244
|
```
|
|
248
|
-
<!--End PulumiCodeChooser -->
|
|
249
245
|
|
|
250
246
|
|
|
251
247
|
:param str accessor_id: The accessor ID of the ACL token.
|
|
@@ -109,23 +109,22 @@ def get_acl_token_secret_id(accessor_id: Optional[str] = None,
|
|
|
109
109
|
"""
|
|
110
110
|
## Example Usage
|
|
111
111
|
|
|
112
|
-
<!--Start PulumiCodeChooser -->
|
|
113
112
|
```python
|
|
114
113
|
import pulumi
|
|
115
114
|
import pulumi_consul as consul
|
|
116
115
|
|
|
117
|
-
|
|
116
|
+
test = consul.AclPolicy("test",
|
|
117
|
+
name="test",
|
|
118
118
|
rules="node \\"\\" { policy = \\"read\\" }",
|
|
119
119
|
datacenters=["dc1"])
|
|
120
|
-
test_acl_token = consul.AclToken("
|
|
120
|
+
test_acl_token = consul.AclToken("test",
|
|
121
121
|
description="test",
|
|
122
|
-
policies=[
|
|
122
|
+
policies=[test.name],
|
|
123
123
|
local=True)
|
|
124
124
|
read = consul.get_acl_token_secret_id_output(accessor_id=test_acl_token.id,
|
|
125
125
|
pgp_key="keybase:my_username")
|
|
126
126
|
pulumi.export("consulAclTokenSecretId", read.encrypted_secret_id)
|
|
127
127
|
```
|
|
128
|
-
<!--End PulumiCodeChooser -->
|
|
129
128
|
|
|
130
129
|
|
|
131
130
|
:param str accessor_id: The accessor ID of the ACL token.
|
|
@@ -159,23 +158,22 @@ def get_acl_token_secret_id_output(accessor_id: Optional[pulumi.Input[str]] = No
|
|
|
159
158
|
"""
|
|
160
159
|
## Example Usage
|
|
161
160
|
|
|
162
|
-
<!--Start PulumiCodeChooser -->
|
|
163
161
|
```python
|
|
164
162
|
import pulumi
|
|
165
163
|
import pulumi_consul as consul
|
|
166
164
|
|
|
167
|
-
|
|
165
|
+
test = consul.AclPolicy("test",
|
|
166
|
+
name="test",
|
|
168
167
|
rules="node \\"\\" { policy = \\"read\\" }",
|
|
169
168
|
datacenters=["dc1"])
|
|
170
|
-
test_acl_token = consul.AclToken("
|
|
169
|
+
test_acl_token = consul.AclToken("test",
|
|
171
170
|
description="test",
|
|
172
|
-
policies=[
|
|
171
|
+
policies=[test.name],
|
|
173
172
|
local=True)
|
|
174
173
|
read = consul.get_acl_token_secret_id_output(accessor_id=test_acl_token.id,
|
|
175
174
|
pgp_key="keybase:my_username")
|
|
176
175
|
pulumi.export("consulAclTokenSecretId", read.encrypted_secret_id)
|
|
177
176
|
```
|
|
178
|
-
<!--End PulumiCodeChooser -->
|
|
179
177
|
|
|
180
178
|
|
|
181
179
|
:param str accessor_id: The accessor ID of the ACL token.
|
|
@@ -128,7 +128,6 @@ def get_agent_config(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGe
|
|
|
128
128
|
|
|
129
129
|
## Example Usage
|
|
130
130
|
|
|
131
|
-
<!--Start PulumiCodeChooser -->
|
|
132
131
|
```python
|
|
133
132
|
import pulumi
|
|
134
133
|
import pulumi_consul as consul
|
|
@@ -136,7 +135,6 @@ def get_agent_config(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGe
|
|
|
136
135
|
remote_agent = consul.get_agent_config()
|
|
137
136
|
pulumi.export("consulVersion", remote_agent.version)
|
|
138
137
|
```
|
|
139
|
-
<!--End PulumiCodeChooser -->
|
|
140
138
|
"""
|
|
141
139
|
__args__ = dict()
|
|
142
140
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
@@ -165,7 +163,6 @@ def get_agent_config_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulu
|
|
|
165
163
|
|
|
166
164
|
## Example Usage
|
|
167
165
|
|
|
168
|
-
<!--Start PulumiCodeChooser -->
|
|
169
166
|
```python
|
|
170
167
|
import pulumi
|
|
171
168
|
import pulumi_consul as consul
|
|
@@ -173,6 +170,5 @@ def get_agent_config_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulu
|
|
|
173
170
|
remote_agent = consul.get_agent_config()
|
|
174
171
|
pulumi.export("consulVersion", remote_agent.version)
|
|
175
172
|
```
|
|
176
|
-
<!--End PulumiCodeChooser -->
|
|
177
173
|
"""
|
|
178
174
|
...
|
|
@@ -102,7 +102,6 @@ def get_autopilot_health(datacenter: Optional[str] = None,
|
|
|
102
102
|
|
|
103
103
|
## Example Usage
|
|
104
104
|
|
|
105
|
-
<!--Start PulumiCodeChooser -->
|
|
106
105
|
```python
|
|
107
106
|
import pulumi
|
|
108
107
|
import pulumi_consul as consul
|
|
@@ -110,7 +109,6 @@ def get_autopilot_health(datacenter: Optional[str] = None,
|
|
|
110
109
|
read = consul.get_autopilot_health()
|
|
111
110
|
pulumi.export("health", read.healthy)
|
|
112
111
|
```
|
|
113
|
-
<!--End PulumiCodeChooser -->
|
|
114
112
|
|
|
115
113
|
|
|
116
114
|
:param str datacenter: The datacenter to use. This overrides the agent's
|
|
@@ -139,7 +137,6 @@ def get_autopilot_health_output(datacenter: Optional[pulumi.Input[Optional[str]]
|
|
|
139
137
|
|
|
140
138
|
## Example Usage
|
|
141
139
|
|
|
142
|
-
<!--Start PulumiCodeChooser -->
|
|
143
140
|
```python
|
|
144
141
|
import pulumi
|
|
145
142
|
import pulumi_consul as consul
|
|
@@ -147,7 +144,6 @@ def get_autopilot_health_output(datacenter: Optional[pulumi.Input[Optional[str]]
|
|
|
147
144
|
read = consul.get_autopilot_health()
|
|
148
145
|
pulumi.export("health", read.healthy)
|
|
149
146
|
```
|
|
150
|
-
<!--End PulumiCodeChooser -->
|
|
151
147
|
|
|
152
148
|
|
|
153
149
|
:param str datacenter: The datacenter to use. This overrides the agent's
|
|
@@ -132,13 +132,26 @@ def get_catalog_service(datacenter: Optional[str] = None,
|
|
|
132
132
|
This data source is different from the `get_services` (plural) data
|
|
133
133
|
source, which provides a summary of the current Consul services.
|
|
134
134
|
|
|
135
|
+
## Example Usage
|
|
136
|
+
|
|
137
|
+
```python
|
|
138
|
+
import pulumi
|
|
139
|
+
import pulumi_consul as consul
|
|
140
|
+
import pulumi_example as example
|
|
141
|
+
import pulumi_std as std
|
|
142
|
+
|
|
143
|
+
read_consul_dc1 = consul.get_service(name="consul",
|
|
144
|
+
datacenter="dc1")
|
|
145
|
+
# Set the description to a whitespace delimited list of the node names
|
|
146
|
+
app = example.index.Resource("app", description=std.join(separator= ,
|
|
147
|
+
input=nodes).result)
|
|
148
|
+
```
|
|
149
|
+
|
|
135
150
|
|
|
136
151
|
:param str datacenter: The Consul datacenter to query. Defaults to the
|
|
137
152
|
same value found in `query_options` parameter specified below, or if that is
|
|
138
153
|
empty, the `datacenter` value found in the Consul agent that this provider is
|
|
139
154
|
configured to talk to.
|
|
140
|
-
:param str filter: A filter expression to refine the query, see https://www.consul.io/api-docs/features/filtering
|
|
141
|
-
and https://www.consul.io/api-docs/catalog#filtering-1.
|
|
142
155
|
:param str name: The service name to select.
|
|
143
156
|
:param Sequence[pulumi.InputType['GetCatalogServiceQueryOptionArgs']] query_options: See below.
|
|
144
157
|
:param str tag: A single tag that can be used to filter the list of nodes
|
|
@@ -181,13 +194,26 @@ def get_catalog_service_output(datacenter: Optional[pulumi.Input[Optional[str]]]
|
|
|
181
194
|
This data source is different from the `get_services` (plural) data
|
|
182
195
|
source, which provides a summary of the current Consul services.
|
|
183
196
|
|
|
197
|
+
## Example Usage
|
|
198
|
+
|
|
199
|
+
```python
|
|
200
|
+
import pulumi
|
|
201
|
+
import pulumi_consul as consul
|
|
202
|
+
import pulumi_example as example
|
|
203
|
+
import pulumi_std as std
|
|
204
|
+
|
|
205
|
+
read_consul_dc1 = consul.get_service(name="consul",
|
|
206
|
+
datacenter="dc1")
|
|
207
|
+
# Set the description to a whitespace delimited list of the node names
|
|
208
|
+
app = example.index.Resource("app", description=std.join(separator= ,
|
|
209
|
+
input=nodes).result)
|
|
210
|
+
```
|
|
211
|
+
|
|
184
212
|
|
|
185
213
|
:param str datacenter: The Consul datacenter to query. Defaults to the
|
|
186
214
|
same value found in `query_options` parameter specified below, or if that is
|
|
187
215
|
empty, the `datacenter` value found in the Consul agent that this provider is
|
|
188
216
|
configured to talk to.
|
|
189
|
-
:param str filter: A filter expression to refine the query, see https://www.consul.io/api-docs/features/filtering
|
|
190
|
-
and https://www.consul.io/api-docs/catalog#filtering-1.
|
|
191
217
|
:param str name: The service name to select.
|
|
192
218
|
:param Sequence[pulumi.InputType['GetCatalogServiceQueryOptionArgs']] query_options: See below.
|
|
193
219
|
:param str tag: A single tag that can be used to filter the list of nodes
|
|
@@ -113,6 +113,22 @@ def get_catalog_services(query_options: Optional[Sequence[pulumi.InputType['GetC
|
|
|
113
113
|
This data source is different from the `Service` (singular) data
|
|
114
114
|
source, which provides a detailed response about a specific Consul service.
|
|
115
115
|
|
|
116
|
+
## Example Usage
|
|
117
|
+
|
|
118
|
+
```python
|
|
119
|
+
import pulumi
|
|
120
|
+
import pulumi_consul as consul
|
|
121
|
+
import pulumi_example as example
|
|
122
|
+
import pulumi_std as std
|
|
123
|
+
|
|
124
|
+
read_dc1 = consul.get_services(query_options=[consul.GetServicesQueryOptionArgs(
|
|
125
|
+
datacenter="dc1",
|
|
126
|
+
)])
|
|
127
|
+
# Set the description to a whitespace delimited list of the services
|
|
128
|
+
app = example.index.Resource("app", description=std.join(separator= ,
|
|
129
|
+
input=names).result)
|
|
130
|
+
```
|
|
131
|
+
|
|
116
132
|
|
|
117
133
|
:param Sequence[pulumi.InputType['GetCatalogServicesQueryOptionArgs']] query_options: See below.
|
|
118
134
|
"""
|
|
@@ -143,6 +159,22 @@ def get_catalog_services_output(query_options: Optional[pulumi.Input[Optional[Se
|
|
|
143
159
|
This data source is different from the `Service` (singular) data
|
|
144
160
|
source, which provides a detailed response about a specific Consul service.
|
|
145
161
|
|
|
162
|
+
## Example Usage
|
|
163
|
+
|
|
164
|
+
```python
|
|
165
|
+
import pulumi
|
|
166
|
+
import pulumi_consul as consul
|
|
167
|
+
import pulumi_example as example
|
|
168
|
+
import pulumi_std as std
|
|
169
|
+
|
|
170
|
+
read_dc1 = consul.get_services(query_options=[consul.GetServicesQueryOptionArgs(
|
|
171
|
+
datacenter="dc1",
|
|
172
|
+
)])
|
|
173
|
+
# Set the description to a whitespace delimited list of the services
|
|
174
|
+
app = example.index.Resource("app", description=std.join(separator= ,
|
|
175
|
+
input=names).result)
|
|
176
|
+
```
|
|
177
|
+
|
|
146
178
|
|
|
147
179
|
:param Sequence[pulumi.InputType['GetCatalogServicesQueryOptionArgs']] query_options: See below.
|
|
148
180
|
"""
|
pulumi_consul/get_key_prefix.py
CHANGED
|
@@ -145,38 +145,34 @@ def get_key_prefix(datacenter: Optional[str] = None,
|
|
|
145
145
|
"""
|
|
146
146
|
## Example Usage
|
|
147
147
|
|
|
148
|
-
<!--Start PulumiCodeChooser -->
|
|
149
148
|
```python
|
|
150
149
|
import pulumi
|
|
151
150
|
import pulumi_aws as aws
|
|
152
151
|
import pulumi_consul as consul
|
|
153
152
|
|
|
154
|
-
|
|
153
|
+
app = consul.get_key_prefix(datacenter="nyc1",
|
|
154
|
+
token="abcd",
|
|
155
155
|
path_prefix="myapp/config/",
|
|
156
156
|
subkey_collection=[consul.GetKeyPrefixSubkeyCollectionArgs(
|
|
157
|
-
default="ami-1234",
|
|
158
157
|
name="ami",
|
|
159
158
|
path="app/launch_ami",
|
|
160
|
-
|
|
161
|
-
|
|
159
|
+
default="ami-1234",
|
|
160
|
+
)])
|
|
162
161
|
# Start our instance with the dynamic ami value
|
|
163
|
-
app_instance = aws.
|
|
162
|
+
app_instance = aws.index.Instance("app", ami=app.var.ami)
|
|
164
163
|
```
|
|
165
|
-
<!--End PulumiCodeChooser -->
|
|
166
164
|
|
|
167
|
-
<!--Start PulumiCodeChooser -->
|
|
168
165
|
```python
|
|
169
166
|
import pulumi
|
|
170
167
|
import pulumi_aws as aws
|
|
171
168
|
import pulumi_consul as consul
|
|
172
169
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
170
|
+
web = consul.get_key_prefix(datacenter="nyc1",
|
|
171
|
+
token="efgh",
|
|
172
|
+
path_prefix="myapp/config/")
|
|
176
173
|
# Start our instance with the dynamic ami value
|
|
177
|
-
web_instance = aws.
|
|
174
|
+
web_instance = aws.index.Instance("web", ami=web.subkeys.app_launch_ami)
|
|
178
175
|
```
|
|
179
|
-
<!--End PulumiCodeChooser -->
|
|
180
176
|
|
|
181
177
|
|
|
182
178
|
:param str datacenter: The datacenter to use. This overrides the
|
|
@@ -224,38 +220,34 @@ def get_key_prefix_output(datacenter: Optional[pulumi.Input[Optional[str]]] = No
|
|
|
224
220
|
"""
|
|
225
221
|
## Example Usage
|
|
226
222
|
|
|
227
|
-
<!--Start PulumiCodeChooser -->
|
|
228
223
|
```python
|
|
229
224
|
import pulumi
|
|
230
225
|
import pulumi_aws as aws
|
|
231
226
|
import pulumi_consul as consul
|
|
232
227
|
|
|
233
|
-
|
|
228
|
+
app = consul.get_key_prefix(datacenter="nyc1",
|
|
229
|
+
token="abcd",
|
|
234
230
|
path_prefix="myapp/config/",
|
|
235
231
|
subkey_collection=[consul.GetKeyPrefixSubkeyCollectionArgs(
|
|
236
|
-
default="ami-1234",
|
|
237
232
|
name="ami",
|
|
238
233
|
path="app/launch_ami",
|
|
239
|
-
|
|
240
|
-
|
|
234
|
+
default="ami-1234",
|
|
235
|
+
)])
|
|
241
236
|
# Start our instance with the dynamic ami value
|
|
242
|
-
app_instance = aws.
|
|
237
|
+
app_instance = aws.index.Instance("app", ami=app.var.ami)
|
|
243
238
|
```
|
|
244
|
-
<!--End PulumiCodeChooser -->
|
|
245
239
|
|
|
246
|
-
<!--Start PulumiCodeChooser -->
|
|
247
240
|
```python
|
|
248
241
|
import pulumi
|
|
249
242
|
import pulumi_aws as aws
|
|
250
243
|
import pulumi_consul as consul
|
|
251
244
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
245
|
+
web = consul.get_key_prefix(datacenter="nyc1",
|
|
246
|
+
token="efgh",
|
|
247
|
+
path_prefix="myapp/config/")
|
|
255
248
|
# Start our instance with the dynamic ami value
|
|
256
|
-
web_instance = aws.
|
|
249
|
+
web_instance = aws.index.Instance("web", ami=web.subkeys.app_launch_ami)
|
|
257
250
|
```
|
|
258
|
-
<!--End PulumiCodeChooser -->
|
|
259
251
|
|
|
260
252
|
|
|
261
253
|
:param str datacenter: The datacenter to use. This overrides the
|