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
pulumi_consul/get_keys.py
CHANGED
|
@@ -147,23 +147,20 @@ def get_keys(datacenter: Optional[str] = None,
|
|
|
147
147
|
|
|
148
148
|
## Example Usage
|
|
149
149
|
|
|
150
|
-
<!--Start PulumiCodeChooser -->
|
|
151
150
|
```python
|
|
152
151
|
import pulumi
|
|
153
152
|
import pulumi_aws as aws
|
|
154
153
|
import pulumi_consul as consul
|
|
155
154
|
|
|
156
|
-
|
|
155
|
+
app = consul.get_keys(datacenter="nyc1",
|
|
157
156
|
keys=[consul.GetKeysKeyArgs(
|
|
158
157
|
name="ami",
|
|
159
158
|
path="service/app/launch_ami",
|
|
160
159
|
default="ami-1234",
|
|
161
160
|
)])
|
|
162
161
|
# Start our instance with the dynamic ami value
|
|
163
|
-
app_instance = aws.
|
|
164
|
-
# ...
|
|
162
|
+
app_instance = aws.index.Instance("app", ami=app.var.ami)
|
|
165
163
|
```
|
|
166
|
-
<!--End PulumiCodeChooser -->
|
|
167
164
|
|
|
168
165
|
|
|
169
166
|
:param str datacenter: The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
|
|
@@ -207,23 +204,20 @@ def get_keys_output(datacenter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
207
204
|
|
|
208
205
|
## Example Usage
|
|
209
206
|
|
|
210
|
-
<!--Start PulumiCodeChooser -->
|
|
211
207
|
```python
|
|
212
208
|
import pulumi
|
|
213
209
|
import pulumi_aws as aws
|
|
214
210
|
import pulumi_consul as consul
|
|
215
211
|
|
|
216
|
-
|
|
212
|
+
app = consul.get_keys(datacenter="nyc1",
|
|
217
213
|
keys=[consul.GetKeysKeyArgs(
|
|
218
214
|
name="ami",
|
|
219
215
|
path="service/app/launch_ami",
|
|
220
216
|
default="ami-1234",
|
|
221
217
|
)])
|
|
222
218
|
# Start our instance with the dynamic ami value
|
|
223
|
-
app_instance = aws.
|
|
224
|
-
# ...
|
|
219
|
+
app_instance = aws.index.Instance("app", ami=app.var.ami)
|
|
225
220
|
```
|
|
226
|
-
<!--End PulumiCodeChooser -->
|
|
227
221
|
|
|
228
222
|
|
|
229
223
|
:param str datacenter: The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
|
|
@@ -107,19 +107,17 @@ def get_network_area_members(datacenter: Optional[str] = None,
|
|
|
107
107
|
|
|
108
108
|
## Example Usage
|
|
109
109
|
|
|
110
|
-
<!--Start PulumiCodeChooser -->
|
|
111
110
|
```python
|
|
112
111
|
import pulumi
|
|
113
112
|
import pulumi_consul as consul
|
|
114
113
|
|
|
115
|
-
dc2_network_area = consul.NetworkArea("
|
|
114
|
+
dc2_network_area = consul.NetworkArea("dc2",
|
|
116
115
|
peer_datacenter="dc2",
|
|
117
116
|
retry_joins=["1.2.3.4"],
|
|
118
117
|
use_tls=True)
|
|
119
|
-
|
|
120
|
-
pulumi.export("members",
|
|
118
|
+
dc2 = consul.get_network_area_members_output(uuid=dc2_network_area.id)
|
|
119
|
+
pulumi.export("members", dc2.members)
|
|
121
120
|
```
|
|
122
|
-
<!--End PulumiCodeChooser -->
|
|
123
121
|
|
|
124
122
|
|
|
125
123
|
:param str datacenter: The datacenter to use. This overrides the
|
|
@@ -156,19 +154,17 @@ def get_network_area_members_output(datacenter: Optional[pulumi.Input[Optional[s
|
|
|
156
154
|
|
|
157
155
|
## Example Usage
|
|
158
156
|
|
|
159
|
-
<!--Start PulumiCodeChooser -->
|
|
160
157
|
```python
|
|
161
158
|
import pulumi
|
|
162
159
|
import pulumi_consul as consul
|
|
163
160
|
|
|
164
|
-
dc2_network_area = consul.NetworkArea("
|
|
161
|
+
dc2_network_area = consul.NetworkArea("dc2",
|
|
165
162
|
peer_datacenter="dc2",
|
|
166
163
|
retry_joins=["1.2.3.4"],
|
|
167
164
|
use_tls=True)
|
|
168
|
-
|
|
169
|
-
pulumi.export("members",
|
|
165
|
+
dc2 = consul.get_network_area_members_output(uuid=dc2_network_area.id)
|
|
166
|
+
pulumi.export("members", dc2.members)
|
|
170
167
|
```
|
|
171
|
-
<!--End PulumiCodeChooser -->
|
|
172
168
|
|
|
173
169
|
|
|
174
170
|
:param str datacenter: The datacenter to use. This overrides the
|
|
@@ -93,15 +93,13 @@ def get_network_segments(datacenter: Optional[str] = None,
|
|
|
93
93
|
|
|
94
94
|
## Example Usage
|
|
95
95
|
|
|
96
|
-
<!--Start PulumiCodeChooser -->
|
|
97
96
|
```python
|
|
98
97
|
import pulumi
|
|
99
98
|
import pulumi_consul as consul
|
|
100
99
|
|
|
101
|
-
|
|
102
|
-
pulumi.export("segments",
|
|
100
|
+
segments = consul.get_network_segments()
|
|
101
|
+
pulumi.export("segments", segments.segments)
|
|
103
102
|
```
|
|
104
|
-
<!--End PulumiCodeChooser -->
|
|
105
103
|
|
|
106
104
|
|
|
107
105
|
:param str datacenter: The datacenter to use. This overrides the
|
|
@@ -134,15 +132,13 @@ def get_network_segments_output(datacenter: Optional[pulumi.Input[Optional[str]]
|
|
|
134
132
|
|
|
135
133
|
## Example Usage
|
|
136
134
|
|
|
137
|
-
<!--Start PulumiCodeChooser -->
|
|
138
135
|
```python
|
|
139
136
|
import pulumi
|
|
140
137
|
import pulumi_consul as consul
|
|
141
138
|
|
|
142
|
-
|
|
143
|
-
pulumi.export("segments",
|
|
139
|
+
segments = consul.get_network_segments()
|
|
140
|
+
pulumi.export("segments", segments.segments)
|
|
144
141
|
```
|
|
145
|
-
<!--End PulumiCodeChooser -->
|
|
146
142
|
|
|
147
143
|
|
|
148
144
|
:param str datacenter: The datacenter to use. This overrides the
|
pulumi_consul/get_peering.py
CHANGED
|
@@ -131,14 +131,12 @@ def get_peering(partition: Optional[str] = None,
|
|
|
131
131
|
"""
|
|
132
132
|
## Example Usage
|
|
133
133
|
|
|
134
|
-
<!--Start PulumiCodeChooser -->
|
|
135
134
|
```python
|
|
136
135
|
import pulumi
|
|
137
136
|
import pulumi_consul as consul
|
|
138
137
|
|
|
139
138
|
basic = consul.get_peering(peer_name="peered-cluster")
|
|
140
139
|
```
|
|
141
|
-
<!--End PulumiCodeChooser -->
|
|
142
140
|
"""
|
|
143
141
|
__args__ = dict()
|
|
144
142
|
__args__['partition'] = partition
|
|
@@ -166,13 +164,11 @@ def get_peering_output(partition: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
166
164
|
"""
|
|
167
165
|
## Example Usage
|
|
168
166
|
|
|
169
|
-
<!--Start PulumiCodeChooser -->
|
|
170
167
|
```python
|
|
171
168
|
import pulumi
|
|
172
169
|
import pulumi_consul as consul
|
|
173
170
|
|
|
174
171
|
basic = consul.get_peering(peer_name="peered-cluster")
|
|
175
172
|
```
|
|
176
|
-
<!--End PulumiCodeChooser -->
|
|
177
173
|
"""
|
|
178
174
|
...
|
pulumi_consul/get_peerings.py
CHANGED
|
@@ -68,14 +68,12 @@ def get_peerings(partition: Optional[str] = None,
|
|
|
68
68
|
"""
|
|
69
69
|
## Example Usage
|
|
70
70
|
|
|
71
|
-
<!--Start PulumiCodeChooser -->
|
|
72
71
|
```python
|
|
73
72
|
import pulumi
|
|
74
73
|
import pulumi_consul as consul
|
|
75
74
|
|
|
76
75
|
peers = consul.get_peerings()
|
|
77
76
|
```
|
|
78
|
-
<!--End PulumiCodeChooser -->
|
|
79
77
|
"""
|
|
80
78
|
__args__ = dict()
|
|
81
79
|
__args__['partition'] = partition
|
|
@@ -94,13 +92,11 @@ def get_peerings_output(partition: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
94
92
|
"""
|
|
95
93
|
## Example Usage
|
|
96
94
|
|
|
97
|
-
<!--Start PulumiCodeChooser -->
|
|
98
95
|
```python
|
|
99
96
|
import pulumi
|
|
100
97
|
import pulumi_consul as consul
|
|
101
98
|
|
|
102
99
|
peers = consul.get_peerings()
|
|
103
100
|
```
|
|
104
|
-
<!--End PulumiCodeChooser -->
|
|
105
101
|
"""
|
|
106
102
|
...
|
pulumi_consul/get_service.py
CHANGED
|
@@ -130,13 +130,26 @@ def get_service(datacenter: Optional[str] = None,
|
|
|
130
130
|
This data source is different from the `get_services` (plural) data
|
|
131
131
|
source, which provides a summary of the current Consul services.
|
|
132
132
|
|
|
133
|
+
## Example Usage
|
|
134
|
+
|
|
135
|
+
```python
|
|
136
|
+
import pulumi
|
|
137
|
+
import pulumi_consul as consul
|
|
138
|
+
import pulumi_example as example
|
|
139
|
+
import pulumi_std as std
|
|
140
|
+
|
|
141
|
+
read_consul_dc1 = consul.get_service(name="consul",
|
|
142
|
+
datacenter="dc1")
|
|
143
|
+
# Set the description to a whitespace delimited list of the node names
|
|
144
|
+
app = example.index.Resource("app", description=std.join(separator= ,
|
|
145
|
+
input=nodes).result)
|
|
146
|
+
```
|
|
147
|
+
|
|
133
148
|
|
|
134
149
|
:param str datacenter: The Consul datacenter to query. Defaults to the
|
|
135
150
|
same value found in `query_options` parameter specified below, or if that is
|
|
136
151
|
empty, the `datacenter` value found in the Consul agent that this provider is
|
|
137
152
|
configured to talk to.
|
|
138
|
-
:param str filter: A filter expression to refine the query, see https://www.consul.io/api-docs/features/filtering
|
|
139
|
-
and https://www.consul.io/api-docs/catalog#filtering-1.
|
|
140
153
|
:param str name: The service name to select.
|
|
141
154
|
:param Sequence[pulumi.InputType['GetServiceQueryOptionArgs']] query_options: See below.
|
|
142
155
|
:param str tag: A single tag that can be used to filter the list of nodes
|
|
@@ -178,13 +191,26 @@ def get_service_output(datacenter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
178
191
|
This data source is different from the `get_services` (plural) data
|
|
179
192
|
source, which provides a summary of the current Consul services.
|
|
180
193
|
|
|
194
|
+
## Example Usage
|
|
195
|
+
|
|
196
|
+
```python
|
|
197
|
+
import pulumi
|
|
198
|
+
import pulumi_consul as consul
|
|
199
|
+
import pulumi_example as example
|
|
200
|
+
import pulumi_std as std
|
|
201
|
+
|
|
202
|
+
read_consul_dc1 = consul.get_service(name="consul",
|
|
203
|
+
datacenter="dc1")
|
|
204
|
+
# Set the description to a whitespace delimited list of the node names
|
|
205
|
+
app = example.index.Resource("app", description=std.join(separator= ,
|
|
206
|
+
input=nodes).result)
|
|
207
|
+
```
|
|
208
|
+
|
|
181
209
|
|
|
182
210
|
:param str datacenter: The Consul datacenter to query. Defaults to the
|
|
183
211
|
same value found in `query_options` parameter specified below, or if that is
|
|
184
212
|
empty, the `datacenter` value found in the Consul agent that this provider is
|
|
185
213
|
configured to talk to.
|
|
186
|
-
:param str filter: A filter expression to refine the query, see https://www.consul.io/api-docs/features/filtering
|
|
187
|
-
and https://www.consul.io/api-docs/catalog#filtering-1.
|
|
188
214
|
:param str name: The service name to select.
|
|
189
215
|
:param Sequence[pulumi.InputType['GetServiceQueryOptionArgs']] query_options: See below.
|
|
190
216
|
:param str tag: A single tag that can be used to filter the list of nodes
|
pulumi_consul/get_services.py
CHANGED
|
@@ -111,6 +111,22 @@ def get_services(query_options: Optional[Sequence[pulumi.InputType['GetServicesQ
|
|
|
111
111
|
This data source is different from the `Service` (singular) data
|
|
112
112
|
source, which provides a detailed response about a specific Consul service.
|
|
113
113
|
|
|
114
|
+
## Example Usage
|
|
115
|
+
|
|
116
|
+
```python
|
|
117
|
+
import pulumi
|
|
118
|
+
import pulumi_consul as consul
|
|
119
|
+
import pulumi_example as example
|
|
120
|
+
import pulumi_std as std
|
|
121
|
+
|
|
122
|
+
read_dc1 = consul.get_services(query_options=[consul.GetServicesQueryOptionArgs(
|
|
123
|
+
datacenter="dc1",
|
|
124
|
+
)])
|
|
125
|
+
# Set the description to a whitespace delimited list of the services
|
|
126
|
+
app = example.index.Resource("app", description=std.join(separator= ,
|
|
127
|
+
input=names).result)
|
|
128
|
+
```
|
|
129
|
+
|
|
114
130
|
|
|
115
131
|
:param Sequence[pulumi.InputType['GetServicesQueryOptionArgs']] query_options: See below.
|
|
116
132
|
"""
|
|
@@ -140,6 +156,22 @@ def get_services_output(query_options: Optional[pulumi.Input[Optional[Sequence[p
|
|
|
140
156
|
This data source is different from the `Service` (singular) data
|
|
141
157
|
source, which provides a detailed response about a specific Consul service.
|
|
142
158
|
|
|
159
|
+
## Example Usage
|
|
160
|
+
|
|
161
|
+
```python
|
|
162
|
+
import pulumi
|
|
163
|
+
import pulumi_consul as consul
|
|
164
|
+
import pulumi_example as example
|
|
165
|
+
import pulumi_std as std
|
|
166
|
+
|
|
167
|
+
read_dc1 = consul.get_services(query_options=[consul.GetServicesQueryOptionArgs(
|
|
168
|
+
datacenter="dc1",
|
|
169
|
+
)])
|
|
170
|
+
# Set the description to a whitespace delimited list of the services
|
|
171
|
+
app = example.index.Resource("app", description=std.join(separator= ,
|
|
172
|
+
input=names).result)
|
|
173
|
+
```
|
|
174
|
+
|
|
143
175
|
|
|
144
176
|
:param Sequence[pulumi.InputType['GetServicesQueryOptionArgs']] query_options: See below.
|
|
145
177
|
"""
|
pulumi_consul/intention.py
CHANGED
|
@@ -341,32 +341,28 @@ class Intention(pulumi.CustomResource):
|
|
|
341
341
|
|
|
342
342
|
Create a simplest intention with static service names:
|
|
343
343
|
|
|
344
|
-
<!--Start PulumiCodeChooser -->
|
|
345
344
|
```python
|
|
346
345
|
import pulumi
|
|
347
346
|
import pulumi_consul as consul
|
|
348
347
|
|
|
349
348
|
database = consul.Intention("database",
|
|
350
|
-
|
|
349
|
+
source_name="api",
|
|
351
350
|
destination_name="db",
|
|
352
|
-
|
|
351
|
+
action="allow")
|
|
353
352
|
```
|
|
354
|
-
<!--End PulumiCodeChooser -->
|
|
355
353
|
|
|
356
354
|
Referencing a known service via a datasource:
|
|
357
355
|
|
|
358
|
-
<!--Start PulumiCodeChooser -->
|
|
359
356
|
```python
|
|
360
357
|
import pulumi
|
|
361
358
|
import pulumi_consul as consul
|
|
362
359
|
|
|
363
360
|
database = consul.Intention("database",
|
|
364
|
-
|
|
365
|
-
destination_name=
|
|
366
|
-
|
|
361
|
+
source_name="api",
|
|
362
|
+
destination_name=pg_consul_service["name"],
|
|
363
|
+
action="allow")
|
|
367
364
|
pg = consul.get_service(name="postgresql")
|
|
368
365
|
```
|
|
369
|
-
<!--End PulumiCodeChooser -->
|
|
370
366
|
|
|
371
367
|
## Import
|
|
372
368
|
|
|
@@ -419,32 +415,28 @@ class Intention(pulumi.CustomResource):
|
|
|
419
415
|
|
|
420
416
|
Create a simplest intention with static service names:
|
|
421
417
|
|
|
422
|
-
<!--Start PulumiCodeChooser -->
|
|
423
418
|
```python
|
|
424
419
|
import pulumi
|
|
425
420
|
import pulumi_consul as consul
|
|
426
421
|
|
|
427
422
|
database = consul.Intention("database",
|
|
428
|
-
|
|
423
|
+
source_name="api",
|
|
429
424
|
destination_name="db",
|
|
430
|
-
|
|
425
|
+
action="allow")
|
|
431
426
|
```
|
|
432
|
-
<!--End PulumiCodeChooser -->
|
|
433
427
|
|
|
434
428
|
Referencing a known service via a datasource:
|
|
435
429
|
|
|
436
|
-
<!--Start PulumiCodeChooser -->
|
|
437
430
|
```python
|
|
438
431
|
import pulumi
|
|
439
432
|
import pulumi_consul as consul
|
|
440
433
|
|
|
441
434
|
database = consul.Intention("database",
|
|
442
|
-
|
|
443
|
-
destination_name=
|
|
444
|
-
|
|
435
|
+
source_name="api",
|
|
436
|
+
destination_name=pg_consul_service["name"],
|
|
437
|
+
action="allow")
|
|
445
438
|
pg = consul.get_service(name="postgresql")
|
|
446
439
|
```
|
|
447
|
-
<!--End PulumiCodeChooser -->
|
|
448
440
|
|
|
449
441
|
## Import
|
|
450
442
|
|
pulumi_consul/key_prefix.py
CHANGED
|
@@ -320,30 +320,28 @@ class KeyPrefix(pulumi.CustomResource):
|
|
|
320
320
|
"""
|
|
321
321
|
## Example Usage
|
|
322
322
|
|
|
323
|
-
<!--Start PulumiCodeChooser -->
|
|
324
323
|
```python
|
|
325
324
|
import pulumi
|
|
326
325
|
import pulumi_consul as consul
|
|
327
326
|
|
|
328
|
-
myapp_config = consul.KeyPrefix("
|
|
327
|
+
myapp_config = consul.KeyPrefix("myapp_config",
|
|
329
328
|
datacenter="nyc1",
|
|
329
|
+
token="abcd",
|
|
330
330
|
path_prefix="myapp/config/",
|
|
331
|
-
subkey_collection=[consul.KeyPrefixSubkeyCollectionArgs(
|
|
332
|
-
flags=2,
|
|
333
|
-
path="database/password",
|
|
334
|
-
value=aws_db_instance["app"]["password"],
|
|
335
|
-
)],
|
|
336
331
|
subkeys={
|
|
337
|
-
"
|
|
338
|
-
"
|
|
339
|
-
"database/
|
|
340
|
-
"database/
|
|
341
|
-
"
|
|
342
|
-
"
|
|
332
|
+
"elb_cname": app_aws_elb["dnsName"],
|
|
333
|
+
"s3_bucket_name": app_aws_s3_bucket["bucket"],
|
|
334
|
+
"database/hostname": app["address"],
|
|
335
|
+
"database/port": app["port"],
|
|
336
|
+
"database/username": app["username"],
|
|
337
|
+
"database/name": app["name"],
|
|
343
338
|
},
|
|
344
|
-
|
|
339
|
+
subkey_collection=[consul.KeyPrefixSubkeyCollectionArgs(
|
|
340
|
+
path="database/password",
|
|
341
|
+
value=app["password"],
|
|
342
|
+
flags=2,
|
|
343
|
+
)])
|
|
345
344
|
```
|
|
346
|
-
<!--End PulumiCodeChooser -->
|
|
347
345
|
|
|
348
346
|
## Import
|
|
349
347
|
|
|
@@ -381,30 +379,28 @@ class KeyPrefix(pulumi.CustomResource):
|
|
|
381
379
|
"""
|
|
382
380
|
## Example Usage
|
|
383
381
|
|
|
384
|
-
<!--Start PulumiCodeChooser -->
|
|
385
382
|
```python
|
|
386
383
|
import pulumi
|
|
387
384
|
import pulumi_consul as consul
|
|
388
385
|
|
|
389
|
-
myapp_config = consul.KeyPrefix("
|
|
386
|
+
myapp_config = consul.KeyPrefix("myapp_config",
|
|
390
387
|
datacenter="nyc1",
|
|
388
|
+
token="abcd",
|
|
391
389
|
path_prefix="myapp/config/",
|
|
392
|
-
subkey_collection=[consul.KeyPrefixSubkeyCollectionArgs(
|
|
393
|
-
flags=2,
|
|
394
|
-
path="database/password",
|
|
395
|
-
value=aws_db_instance["app"]["password"],
|
|
396
|
-
)],
|
|
397
390
|
subkeys={
|
|
398
|
-
"
|
|
399
|
-
"
|
|
400
|
-
"database/
|
|
401
|
-
"database/
|
|
402
|
-
"
|
|
403
|
-
"
|
|
391
|
+
"elb_cname": app_aws_elb["dnsName"],
|
|
392
|
+
"s3_bucket_name": app_aws_s3_bucket["bucket"],
|
|
393
|
+
"database/hostname": app["address"],
|
|
394
|
+
"database/port": app["port"],
|
|
395
|
+
"database/username": app["username"],
|
|
396
|
+
"database/name": app["name"],
|
|
404
397
|
},
|
|
405
|
-
|
|
398
|
+
subkey_collection=[consul.KeyPrefixSubkeyCollectionArgs(
|
|
399
|
+
path="database/password",
|
|
400
|
+
value=app["password"],
|
|
401
|
+
flags=2,
|
|
402
|
+
)])
|
|
406
403
|
```
|
|
407
|
-
<!--End PulumiCodeChooser -->
|
|
408
404
|
|
|
409
405
|
## Import
|
|
410
406
|
|
pulumi_consul/keys.py
CHANGED
|
@@ -247,20 +247,18 @@ class Keys(pulumi.CustomResource):
|
|
|
247
247
|
"""
|
|
248
248
|
## Example Usage
|
|
249
249
|
|
|
250
|
-
<!--Start PulumiCodeChooser -->
|
|
251
250
|
```python
|
|
252
251
|
import pulumi
|
|
253
252
|
import pulumi_consul as consul
|
|
254
253
|
|
|
255
254
|
app = consul.Keys("app",
|
|
256
255
|
datacenter="nyc1",
|
|
256
|
+
token="abcd",
|
|
257
257
|
keys=[consul.KeysKeyArgs(
|
|
258
258
|
path="service/app/elb_address",
|
|
259
|
-
value=
|
|
260
|
-
)]
|
|
261
|
-
token="abcd")
|
|
259
|
+
value=app_aws_elb["dnsName"],
|
|
260
|
+
)])
|
|
262
261
|
```
|
|
263
|
-
<!--End PulumiCodeChooser -->
|
|
264
262
|
|
|
265
263
|
:param str resource_name: The name of the resource.
|
|
266
264
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -282,20 +280,18 @@ class Keys(pulumi.CustomResource):
|
|
|
282
280
|
"""
|
|
283
281
|
## Example Usage
|
|
284
282
|
|
|
285
|
-
<!--Start PulumiCodeChooser -->
|
|
286
283
|
```python
|
|
287
284
|
import pulumi
|
|
288
285
|
import pulumi_consul as consul
|
|
289
286
|
|
|
290
287
|
app = consul.Keys("app",
|
|
291
288
|
datacenter="nyc1",
|
|
289
|
+
token="abcd",
|
|
292
290
|
keys=[consul.KeysKeyArgs(
|
|
293
291
|
path="service/app/elb_address",
|
|
294
|
-
value=
|
|
295
|
-
)]
|
|
296
|
-
token="abcd")
|
|
292
|
+
value=app_aws_elb["dnsName"],
|
|
293
|
+
)])
|
|
297
294
|
```
|
|
298
|
-
<!--End PulumiCodeChooser -->
|
|
299
295
|
|
|
300
296
|
:param str resource_name: The name of the resource.
|
|
301
297
|
:param KeysArgs args: The arguments to use to populate this resource's properties.
|
pulumi_consul/license.py
CHANGED
|
@@ -271,14 +271,13 @@ class License(pulumi.CustomResource):
|
|
|
271
271
|
|
|
272
272
|
## Example Usage
|
|
273
273
|
|
|
274
|
-
<!--Start PulumiCodeChooser -->
|
|
275
274
|
```python
|
|
276
275
|
import pulumi
|
|
277
276
|
import pulumi_consul as consul
|
|
277
|
+
import pulumi_std as std
|
|
278
278
|
|
|
279
|
-
license = consul.License("license", license=
|
|
279
|
+
license = consul.License("license", license=std.file(input="license.hclic").result)
|
|
280
280
|
```
|
|
281
|
-
<!--End PulumiCodeChooser -->
|
|
282
281
|
|
|
283
282
|
:param str resource_name: The name of the resource.
|
|
284
283
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -301,14 +300,13 @@ class License(pulumi.CustomResource):
|
|
|
301
300
|
|
|
302
301
|
## Example Usage
|
|
303
302
|
|
|
304
|
-
<!--Start PulumiCodeChooser -->
|
|
305
303
|
```python
|
|
306
304
|
import pulumi
|
|
307
305
|
import pulumi_consul as consul
|
|
306
|
+
import pulumi_std as std
|
|
308
307
|
|
|
309
|
-
license = consul.License("license", license=
|
|
308
|
+
license = consul.License("license", license=std.file(input="license.hclic").result)
|
|
310
309
|
```
|
|
311
|
-
<!--End PulumiCodeChooser -->
|
|
312
310
|
|
|
313
311
|
:param str resource_name: The name of the resource.
|
|
314
312
|
:param LicenseArgs args: The arguments to use to populate this resource's properties.
|
pulumi_consul/namespace.py
CHANGED
|
@@ -238,18 +238,17 @@ class Namespace(pulumi.CustomResource):
|
|
|
238
238
|
|
|
239
239
|
## Example Usage
|
|
240
240
|
|
|
241
|
-
<!--Start PulumiCodeChooser -->
|
|
242
241
|
```python
|
|
243
242
|
import pulumi
|
|
244
243
|
import pulumi_consul as consul
|
|
245
244
|
|
|
246
245
|
production = consul.Namespace("production",
|
|
246
|
+
name="production",
|
|
247
247
|
description="Production namespace",
|
|
248
248
|
meta={
|
|
249
249
|
"foo": "bar",
|
|
250
250
|
})
|
|
251
251
|
```
|
|
252
|
-
<!--End PulumiCodeChooser -->
|
|
253
252
|
|
|
254
253
|
## Import
|
|
255
254
|
|
|
@@ -282,18 +281,17 @@ class Namespace(pulumi.CustomResource):
|
|
|
282
281
|
|
|
283
282
|
## Example Usage
|
|
284
283
|
|
|
285
|
-
<!--Start PulumiCodeChooser -->
|
|
286
284
|
```python
|
|
287
285
|
import pulumi
|
|
288
286
|
import pulumi_consul as consul
|
|
289
287
|
|
|
290
288
|
production = consul.Namespace("production",
|
|
289
|
+
name="production",
|
|
291
290
|
description="Production namespace",
|
|
292
291
|
meta={
|
|
293
292
|
"foo": "bar",
|
|
294
293
|
})
|
|
295
294
|
```
|
|
296
|
-
<!--End PulumiCodeChooser -->
|
|
297
295
|
|
|
298
296
|
## Import
|
|
299
297
|
|
pulumi_consul/network_area.py
CHANGED
|
@@ -250,7 +250,6 @@ class NetworkArea(pulumi.CustomResource):
|
|
|
250
250
|
|
|
251
251
|
## Example Usage
|
|
252
252
|
|
|
253
|
-
<!--Start PulumiCodeChooser -->
|
|
254
253
|
```python
|
|
255
254
|
import pulumi
|
|
256
255
|
import pulumi_consul as consul
|
|
@@ -260,7 +259,6 @@ class NetworkArea(pulumi.CustomResource):
|
|
|
260
259
|
retry_joins=["1.2.3.4"],
|
|
261
260
|
use_tls=True)
|
|
262
261
|
```
|
|
263
|
-
<!--End PulumiCodeChooser -->
|
|
264
262
|
|
|
265
263
|
:param str resource_name: The name of the resource.
|
|
266
264
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -294,7 +292,6 @@ class NetworkArea(pulumi.CustomResource):
|
|
|
294
292
|
|
|
295
293
|
## Example Usage
|
|
296
294
|
|
|
297
|
-
<!--Start PulumiCodeChooser -->
|
|
298
295
|
```python
|
|
299
296
|
import pulumi
|
|
300
297
|
import pulumi_consul as consul
|
|
@@ -304,7 +301,6 @@ class NetworkArea(pulumi.CustomResource):
|
|
|
304
301
|
retry_joins=["1.2.3.4"],
|
|
305
302
|
use_tls=True)
|
|
306
303
|
```
|
|
307
|
-
<!--End PulumiCodeChooser -->
|
|
308
304
|
|
|
309
305
|
:param str resource_name: The name of the resource.
|
|
310
306
|
:param NetworkAreaArgs args: The arguments to use to populate this resource's properties.
|
pulumi_consul/node.py
CHANGED
|
@@ -248,14 +248,14 @@ class Node(pulumi.CustomResource):
|
|
|
248
248
|
|
|
249
249
|
## Example Usage
|
|
250
250
|
|
|
251
|
-
<!--Start PulumiCodeChooser -->
|
|
252
251
|
```python
|
|
253
252
|
import pulumi
|
|
254
253
|
import pulumi_consul as consul
|
|
255
254
|
|
|
256
|
-
foobar = consul.Node("foobar",
|
|
255
|
+
foobar = consul.Node("foobar",
|
|
256
|
+
address="192.168.10.10",
|
|
257
|
+
name="foobar")
|
|
257
258
|
```
|
|
258
|
-
<!--End PulumiCodeChooser -->
|
|
259
259
|
|
|
260
260
|
## Import
|
|
261
261
|
|
|
@@ -285,14 +285,14 @@ class Node(pulumi.CustomResource):
|
|
|
285
285
|
|
|
286
286
|
## Example Usage
|
|
287
287
|
|
|
288
|
-
<!--Start PulumiCodeChooser -->
|
|
289
288
|
```python
|
|
290
289
|
import pulumi
|
|
291
290
|
import pulumi_consul as consul
|
|
292
291
|
|
|
293
|
-
foobar = consul.Node("foobar",
|
|
292
|
+
foobar = consul.Node("foobar",
|
|
293
|
+
address="192.168.10.10",
|
|
294
|
+
name="foobar")
|
|
294
295
|
```
|
|
295
|
-
<!--End PulumiCodeChooser -->
|
|
296
296
|
|
|
297
297
|
## Import
|
|
298
298
|
|