pulumi-nomad 2.3.0a1713333813__py3-none-any.whl → 2.3.0a1713561631__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.
@@ -306,7 +306,8 @@ class AclAuthMethod(pulumi.CustomResource):
306
306
  import pulumi
307
307
  import pulumi_nomad as nomad
308
308
 
309
- my_nomad_acl_auth_method = nomad.AclAuthMethod("myNomadAclAuthMethod",
309
+ my_nomad_acl_auth_method = nomad.AclAuthMethod("my_nomad_acl_auth_method",
310
+ name="my-nomad-acl-auth-method",
310
311
  type="OIDC",
311
312
  token_locality="global",
312
313
  max_token_ttl="10m0s",
@@ -364,7 +365,8 @@ class AclAuthMethod(pulumi.CustomResource):
364
365
  import pulumi
365
366
  import pulumi_nomad as nomad
366
367
 
367
- my_nomad_acl_auth_method = nomad.AclAuthMethod("myNomadAclAuthMethod",
368
+ my_nomad_acl_auth_method = nomad.AclAuthMethod("my_nomad_acl_auth_method",
369
+ name="my-nomad-acl-auth-method",
368
370
  type="OIDC",
369
371
  token_locality="global",
370
372
  max_token_ttl="10m0s",
@@ -173,38 +173,6 @@ class AclPolicy(pulumi.CustomResource):
173
173
  """
174
174
  Manages an ACL policy registered in Nomad.
175
175
 
176
- ## Example Usage
177
-
178
- Registering a policy from a HCL file:
179
-
180
- <!--Start PulumiCodeChooser -->
181
- ```python
182
- import pulumi
183
- import pulumi_nomad as nomad
184
-
185
- dev = nomad.AclPolicy("dev",
186
- description="Submit jobs to the dev environment.",
187
- rules_hcl=(lambda path: open(path).read())(f"{path['module']}/dev.hcl"))
188
- ```
189
- <!--End PulumiCodeChooser -->
190
-
191
- Registering a policy from inline HCL:
192
-
193
- <!--Start PulumiCodeChooser -->
194
- ```python
195
- import pulumi
196
- import pulumi_nomad as nomad
197
-
198
- dev = nomad.AclPolicy("dev",
199
- description="Submit jobs to the dev environment.",
200
- rules_hcl=\"\"\"namespace "dev" {
201
- policy = "write"
202
- }
203
-
204
- \"\"\")
205
- ```
206
- <!--End PulumiCodeChooser -->
207
-
208
176
  :param str resource_name: The name of the resource.
209
177
  :param pulumi.ResourceOptions opts: Options for the resource.
210
178
  :param pulumi.Input[str] description: `(string: "")` - A description of the policy.
@@ -222,38 +190,6 @@ class AclPolicy(pulumi.CustomResource):
222
190
  """
223
191
  Manages an ACL policy registered in Nomad.
224
192
 
225
- ## Example Usage
226
-
227
- Registering a policy from a HCL file:
228
-
229
- <!--Start PulumiCodeChooser -->
230
- ```python
231
- import pulumi
232
- import pulumi_nomad as nomad
233
-
234
- dev = nomad.AclPolicy("dev",
235
- description="Submit jobs to the dev environment.",
236
- rules_hcl=(lambda path: open(path).read())(f"{path['module']}/dev.hcl"))
237
- ```
238
- <!--End PulumiCodeChooser -->
239
-
240
- Registering a policy from inline HCL:
241
-
242
- <!--Start PulumiCodeChooser -->
243
- ```python
244
- import pulumi
245
- import pulumi_nomad as nomad
246
-
247
- dev = nomad.AclPolicy("dev",
248
- description="Submit jobs to the dev environment.",
249
- rules_hcl=\"\"\"namespace "dev" {
250
- policy = "write"
251
- }
252
-
253
- \"\"\")
254
- ```
255
- <!--End PulumiCodeChooser -->
256
-
257
193
  :param str resource_name: The name of the resource.
258
194
  :param AclPolicyArgs args: The arguments to use to populate this resource's properties.
259
195
  :param pulumi.ResourceOptions opts: Options for the resource.
pulumi_nomad/acl_token.py CHANGED
@@ -357,11 +357,12 @@ class AclToken(pulumi.CustomResource):
357
357
  import pulumi_nomad as nomad
358
358
 
359
359
  dakota = nomad.AclToken("dakota",
360
+ name="Dakota",
361
+ type="client",
360
362
  policies=[
361
363
  "dev",
362
364
  "qa",
363
- ],
364
- type="client")
365
+ ])
365
366
  ```
366
367
  <!--End PulumiCodeChooser -->
367
368
 
@@ -373,12 +374,13 @@ class AclToken(pulumi.CustomResource):
373
374
  import pulumi_nomad as nomad
374
375
 
375
376
  dakota = nomad.AclToken("dakota",
376
- global_=True,
377
+ name="Dakota",
378
+ type="client",
377
379
  policies=[
378
380
  "dev",
379
381
  "qa",
380
382
  ],
381
- type="client")
383
+ global_=True)
382
384
  ```
383
385
  <!--End PulumiCodeChooser -->
384
386
 
@@ -389,7 +391,9 @@ class AclToken(pulumi.CustomResource):
389
391
  import pulumi
390
392
  import pulumi_nomad as nomad
391
393
 
392
- iman = nomad.AclToken("iman", type="management")
394
+ iman = nomad.AclToken("iman",
395
+ name="Iman",
396
+ type="management")
393
397
  ```
394
398
  <!--End PulumiCodeChooser -->
395
399
 
@@ -444,11 +448,12 @@ class AclToken(pulumi.CustomResource):
444
448
  import pulumi_nomad as nomad
445
449
 
446
450
  dakota = nomad.AclToken("dakota",
451
+ name="Dakota",
452
+ type="client",
447
453
  policies=[
448
454
  "dev",
449
455
  "qa",
450
- ],
451
- type="client")
456
+ ])
452
457
  ```
453
458
  <!--End PulumiCodeChooser -->
454
459
 
@@ -460,12 +465,13 @@ class AclToken(pulumi.CustomResource):
460
465
  import pulumi_nomad as nomad
461
466
 
462
467
  dakota = nomad.AclToken("dakota",
463
- global_=True,
468
+ name="Dakota",
469
+ type="client",
464
470
  policies=[
465
471
  "dev",
466
472
  "qa",
467
473
  ],
468
- type="client")
474
+ global_=True)
469
475
  ```
470
476
  <!--End PulumiCodeChooser -->
471
477
 
@@ -476,7 +482,9 @@ class AclToken(pulumi.CustomResource):
476
482
  import pulumi
477
483
  import pulumi_nomad as nomad
478
484
 
479
- iman = nomad.AclToken("iman", type="management")
485
+ iman = nomad.AclToken("iman",
486
+ name="Iman",
487
+ type="management")
480
488
  ```
481
489
  <!--End PulumiCodeChooser -->
482
490
 
@@ -648,12 +648,14 @@ class ExternalVolume(pulumi.CustomResource):
648
648
  import pulumi
649
649
  import pulumi_nomad as nomad
650
650
 
651
+ # It can sometimes be helpful to wait for a particular plugin to be available
651
652
  ebs = nomad.get_plugin(plugin_id="aws-ebs0",
652
653
  wait_for_healthy=True)
653
- mysql_volume = nomad.ExternalVolume("mysqlVolume",
654
+ mysql_volume = nomad.ExternalVolume("mysql_volume",
654
655
  type="csi",
655
656
  plugin_id="aws-ebs0",
656
657
  volume_id="mysql_volume",
658
+ name="mysql_volume",
657
659
  capacity_min="10GiB",
658
660
  capacity_max="20GiB",
659
661
  capabilities=[nomad.ExternalVolumeCapabilityArgs(
@@ -717,12 +719,14 @@ class ExternalVolume(pulumi.CustomResource):
717
719
  import pulumi
718
720
  import pulumi_nomad as nomad
719
721
 
722
+ # It can sometimes be helpful to wait for a particular plugin to be available
720
723
  ebs = nomad.get_plugin(plugin_id="aws-ebs0",
721
724
  wait_for_healthy=True)
722
- mysql_volume = nomad.ExternalVolume("mysqlVolume",
725
+ mysql_volume = nomad.ExternalVolume("mysql_volume",
723
726
  type="csi",
724
727
  plugin_id="aws-ebs0",
725
728
  volume_id="mysql_volume",
729
+ name="mysql_volume",
726
730
  capacity_min="10GiB",
727
731
  capacity_max="20GiB",
728
732
  capabilities=[nomad.ExternalVolumeCapabilityArgs(
@@ -87,8 +87,8 @@ def get_datacenters(ignore_down_nodes: Optional[bool] = None,
87
87
  import pulumi
88
88
  import pulumi_nomad as nomad
89
89
 
90
- datacenters = nomad.get_datacenters(ignore_down_nodes=True,
91
- prefix="prod")
90
+ datacenters = nomad.get_datacenters(prefix="prod",
91
+ ignore_down_nodes=True)
92
92
  ```
93
93
  <!--End PulumiCodeChooser -->
94
94
 
@@ -123,8 +123,8 @@ def get_datacenters_output(ignore_down_nodes: Optional[pulumi.Input[Optional[boo
123
123
  import pulumi
124
124
  import pulumi_nomad as nomad
125
125
 
126
- datacenters = nomad.get_datacenters(ignore_down_nodes=True,
127
- prefix="prod")
126
+ datacenters = nomad.get_datacenters(prefix="prod",
127
+ ignore_down_nodes=True)
128
128
  ```
129
129
  <!--End PulumiCodeChooser -->
130
130
 
@@ -86,18 +86,6 @@ def get_job_parser(canonicalize: Optional[bool] = None,
86
86
  """
87
87
  Parse a HCL jobspec and produce the equivalent JSON encoded job.
88
88
 
89
- ## Example Usage
90
-
91
- <!--Start PulumiCodeChooser -->
92
- ```python
93
- import pulumi
94
- import pulumi_nomad as nomad
95
-
96
- my_job = nomad.get_job_parser(hcl=(lambda path: open(path).read())(f"{path['module']}/jobspec.hcl"),
97
- canonicalize=False)
98
- ```
99
- <!--End PulumiCodeChooser -->
100
-
101
89
 
102
90
  :param bool canonicalize: `(boolean: true)` - flag to enable setting any unset fields to their default values.
103
91
  :param str hcl: `(string)` - the HCL definition of the job.
@@ -122,18 +110,6 @@ def get_job_parser_output(canonicalize: Optional[pulumi.Input[Optional[bool]]] =
122
110
  """
123
111
  Parse a HCL jobspec and produce the equivalent JSON encoded job.
124
112
 
125
- ## Example Usage
126
-
127
- <!--Start PulumiCodeChooser -->
128
- ```python
129
- import pulumi
130
- import pulumi_nomad as nomad
131
-
132
- my_job = nomad.get_job_parser(hcl=(lambda path: open(path).read())(f"{path['module']}/jobspec.hcl"),
133
- canonicalize=False)
134
- ```
135
- <!--End PulumiCodeChooser -->
136
-
137
113
 
138
114
  :param bool canonicalize: `(boolean: true)` - flag to enable setting any unset fields to their default values.
139
115
  :param str hcl: `(string)` - the HCL definition of the job.
@@ -71,6 +71,7 @@ def get_namespaces(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetN
71
71
  namespace = []
72
72
  for range in [{"value": i} for i in range(0, len(namespaces.namespaces))]:
73
73
  namespace.append(nomad.AclPolicy(f"namespace-{range['value']}",
74
+ name=f"namespace-{namespaces[range['value']]}",
74
75
  description=f"Write to the namespace {namespaces[range['value']]}",
75
76
  rules_hcl=f\"\"\"namespace "{namespaces[range["value"]]}" {{
76
77
  policy = "write"
@@ -104,6 +105,7 @@ def get_namespaces_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi
104
105
  namespace = []
105
106
  for range in [{"value": i} for i in range(0, len(namespaces.namespaces))]:
106
107
  namespace.append(nomad.AclPolicy(f"namespace-{range['value']}",
108
+ name=f"namespace-{namespaces[range['value']]}",
107
109
  description=f"Write to the namespace {namespaces[range['value']]}",
108
110
  rules_hcl=f\"\"\"namespace "{namespaces[range["value"]]}" {{
109
111
  policy = "write"
@@ -59,6 +59,25 @@ class AwaitableGetRegionsResult(GetRegionsResult):
59
59
  def get_regions(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetRegionsResult:
60
60
  """
61
61
  Retrieve a list of regions available in Nomad.
62
+
63
+ ## Example Usage
64
+
65
+ <!--Start PulumiCodeChooser -->
66
+ ```python
67
+ import pulumi
68
+ import pulumi_nomad as nomad
69
+
70
+
71
+ def not_implemented(msg):
72
+ raise NotImplementedError(msg)
73
+
74
+ my_regions = nomad.get_regions()
75
+ jobs = not_implemented("The template_file data resource is not yet supported.")
76
+ app = []
77
+ for range in [{"value": i} for i in range(0, len(my_regions.regions))]:
78
+ app.append(nomad.Job(f"app-{range['value']}", jobspec=jobs[range["value"]]["rendered"]))
79
+ ```
80
+ <!--End PulumiCodeChooser -->
62
81
  """
63
82
  __args__ = dict()
64
83
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
@@ -73,5 +92,24 @@ def get_regions(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetRegi
73
92
  def get_regions_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetRegionsResult]:
74
93
  """
75
94
  Retrieve a list of regions available in Nomad.
95
+
96
+ ## Example Usage
97
+
98
+ <!--Start PulumiCodeChooser -->
99
+ ```python
100
+ import pulumi
101
+ import pulumi_nomad as nomad
102
+
103
+
104
+ def not_implemented(msg):
105
+ raise NotImplementedError(msg)
106
+
107
+ my_regions = nomad.get_regions()
108
+ jobs = not_implemented("The template_file data resource is not yet supported.")
109
+ app = []
110
+ for range in [{"value": i} for i in range(0, len(my_regions.regions))]:
111
+ app.append(nomad.Job(f"app-{range['value']}", jobspec=jobs[range["value"]]["rendered"]))
112
+ ```
113
+ <!--End PulumiCodeChooser -->
76
114
  """
77
115
  ...
pulumi_nomad/namespace.py CHANGED
@@ -255,12 +255,13 @@ class Namespace(pulumi.CustomResource):
255
255
  import pulumi_nomad as nomad
256
256
 
257
257
  dev = nomad.Namespace("dev",
258
+ name="dev",
258
259
  description="Shared development environment.",
260
+ quota="dev",
259
261
  meta={
260
- "foo": "bar",
261
262
  "owner": "John Doe",
262
- },
263
- quota="dev")
263
+ "foo": "bar",
264
+ })
264
265
  ```
265
266
  <!--End PulumiCodeChooser -->
266
267
 
@@ -271,7 +272,8 @@ class Namespace(pulumi.CustomResource):
271
272
  import pulumi
272
273
  import pulumi_nomad as nomad
273
274
 
274
- web_team = nomad.QuoteSpecification("webTeam",
275
+ web_team = nomad.QuoteSpecification("web_team",
276
+ name="web-team",
275
277
  description="web team quota",
276
278
  limits=[nomad.QuoteSpecificationLimitArgs(
277
279
  region="global",
@@ -281,6 +283,7 @@ class Namespace(pulumi.CustomResource):
281
283
  ),
282
284
  )])
283
285
  web = nomad.Namespace("web",
286
+ name="web",
284
287
  description="Web team production environment.",
285
288
  quota=web_team.name)
286
289
  ```
@@ -320,12 +323,13 @@ class Namespace(pulumi.CustomResource):
320
323
  import pulumi_nomad as nomad
321
324
 
322
325
  dev = nomad.Namespace("dev",
326
+ name="dev",
323
327
  description="Shared development environment.",
328
+ quota="dev",
324
329
  meta={
325
- "foo": "bar",
326
330
  "owner": "John Doe",
327
- },
328
- quota="dev")
331
+ "foo": "bar",
332
+ })
329
333
  ```
330
334
  <!--End PulumiCodeChooser -->
331
335
 
@@ -336,7 +340,8 @@ class Namespace(pulumi.CustomResource):
336
340
  import pulumi
337
341
  import pulumi_nomad as nomad
338
342
 
339
- web_team = nomad.QuoteSpecification("webTeam",
343
+ web_team = nomad.QuoteSpecification("web_team",
344
+ name="web-team",
340
345
  description="web team quota",
341
346
  limits=[nomad.QuoteSpecificationLimitArgs(
342
347
  region="global",
@@ -346,6 +351,7 @@ class Namespace(pulumi.CustomResource):
346
351
  ),
347
352
  )])
348
353
  web = nomad.Namespace("web",
354
+ name="web",
349
355
  description="Web team production environment.",
350
356
  quota=web_team.name)
351
357
  ```
pulumi_nomad/node_pool.py CHANGED
@@ -184,6 +184,7 @@ class NodePool(pulumi.CustomResource):
184
184
  import pulumi_nomad as nomad
185
185
 
186
186
  dev = nomad.NodePool("dev",
187
+ name="dev",
187
188
  description="Nodes for the development environment.",
188
189
  meta={
189
190
  "department": "Engineering",
@@ -219,6 +220,7 @@ class NodePool(pulumi.CustomResource):
219
220
  import pulumi_nomad as nomad
220
221
 
221
222
  dev = nomad.NodePool("dev",
223
+ name="dev",
222
224
  description="Nodes for the development environment.",
223
225
  meta={
224
226
  "department": "Engineering",
@@ -149,7 +149,8 @@ class QuoteSpecification(pulumi.CustomResource):
149
149
  import pulumi
150
150
  import pulumi_nomad as nomad
151
151
 
152
- prod_api = nomad.QuoteSpecification("prodApi",
152
+ prod_api = nomad.QuoteSpecification("prod_api",
153
+ name="prod-api",
153
154
  description="Production instances of backend API servers",
154
155
  limits=[nomad.QuoteSpecificationLimitArgs(
155
156
  region="global",
@@ -186,7 +187,8 @@ class QuoteSpecification(pulumi.CustomResource):
186
187
  import pulumi
187
188
  import pulumi_nomad as nomad
188
189
 
189
- prod_api = nomad.QuoteSpecification("prodApi",
190
+ prod_api = nomad.QuoteSpecification("prod_api",
191
+ name="prod-api",
190
192
  description="Production instances of backend API servers",
191
193
  limits=[nomad.QuoteSpecificationLimitArgs(
192
194
  region="global",
@@ -150,14 +150,14 @@ class SchedulerConfig(pulumi.CustomResource):
150
150
  import pulumi_nomad as nomad
151
151
 
152
152
  config = nomad.SchedulerConfig("config",
153
+ scheduler_algorithm="spread",
153
154
  memory_oversubscription_enabled=True,
154
155
  preemption_config={
156
+ "system_scheduler_enabled": True,
155
157
  "batch_scheduler_enabled": True,
156
158
  "service_scheduler_enabled": True,
157
159
  "sysbatch_scheduler_enabled": True,
158
- "system_scheduler_enabled": True,
159
- },
160
- scheduler_algorithm="spread")
160
+ })
161
161
  ```
162
162
  <!--End PulumiCodeChooser -->
163
163
 
@@ -191,14 +191,14 @@ class SchedulerConfig(pulumi.CustomResource):
191
191
  import pulumi_nomad as nomad
192
192
 
193
193
  config = nomad.SchedulerConfig("config",
194
+ scheduler_algorithm="spread",
194
195
  memory_oversubscription_enabled=True,
195
196
  preemption_config={
197
+ "system_scheduler_enabled": True,
196
198
  "batch_scheduler_enabled": True,
197
199
  "service_scheduler_enabled": True,
198
200
  "sysbatch_scheduler_enabled": True,
199
- "system_scheduler_enabled": True,
200
- },
201
- scheduler_algorithm="spread")
201
+ })
202
202
  ```
203
203
  <!--End PulumiCodeChooser -->
204
204
 
@@ -225,8 +225,8 @@ class SentinelPolicy(pulumi.CustomResource):
225
225
  import pulumi_nomad as nomad
226
226
 
227
227
  exec_only = nomad.SentinelPolicy("exec-only",
228
+ name="exec-only",
228
229
  description="Only allow jobs that are based on an exec driver.",
229
- enforcement_level="soft-mandatory",
230
230
  policy=\"\"\"main = rule { all_drivers_exec }
231
231
 
232
232
  # all_drivers_exec checks that all the drivers in use are exec
@@ -237,9 +237,9 @@ class SentinelPolicy(pulumi.CustomResource):
237
237
  }
238
238
  }
239
239
  }
240
-
241
240
  \"\"\",
242
- scope="submit-job")
241
+ scope="submit-job",
242
+ enforcement_level="soft-mandatory")
243
243
  ```
244
244
  <!--End PulumiCodeChooser -->
245
245
 
@@ -275,8 +275,8 @@ class SentinelPolicy(pulumi.CustomResource):
275
275
  import pulumi_nomad as nomad
276
276
 
277
277
  exec_only = nomad.SentinelPolicy("exec-only",
278
+ name="exec-only",
278
279
  description="Only allow jobs that are based on an exec driver.",
279
- enforcement_level="soft-mandatory",
280
280
  policy=\"\"\"main = rule { all_drivers_exec }
281
281
 
282
282
  # all_drivers_exec checks that all the drivers in use are exec
@@ -287,9 +287,9 @@ class SentinelPolicy(pulumi.CustomResource):
287
287
  }
288
288
  }
289
289
  }
290
-
291
290
  \"\"\",
292
- scope="submit-job")
291
+ scope="submit-job",
292
+ enforcement_level="soft-mandatory")
293
293
  ```
294
294
  <!--End PulumiCodeChooser -->
295
295
 
pulumi_nomad/variable.py CHANGED
@@ -141,10 +141,10 @@ class Variable(pulumi.CustomResource):
141
141
  import pulumi_nomad as nomad
142
142
 
143
143
  example = nomad.Variable("example",
144
+ path="some/path/of/your/choosing",
144
145
  items={
145
146
  "example_key": "example_value",
146
- },
147
- path="some/path/of/your/choosing")
147
+ })
148
148
  ```
149
149
  <!--End PulumiCodeChooser -->
150
150
 
@@ -155,10 +155,12 @@ class Variable(pulumi.CustomResource):
155
155
  import pulumi
156
156
  import pulumi_nomad as nomad
157
157
 
158
- example_namespace = nomad.Namespace("exampleNamespace", description="Example namespace.")
159
- example_variable = nomad.Variable("exampleVariable",
158
+ example = nomad.Namespace("example",
159
+ name="example",
160
+ description="Example namespace.")
161
+ example_variable = nomad.Variable("example",
160
162
  path="some/path/of/your/choosing",
161
- namespace=example_namespace.name,
163
+ namespace=example.name,
162
164
  items={
163
165
  "example_key": "example_value",
164
166
  })
@@ -188,10 +190,10 @@ class Variable(pulumi.CustomResource):
188
190
  import pulumi_nomad as nomad
189
191
 
190
192
  example = nomad.Variable("example",
193
+ path="some/path/of/your/choosing",
191
194
  items={
192
195
  "example_key": "example_value",
193
- },
194
- path="some/path/of/your/choosing")
196
+ })
195
197
  ```
196
198
  <!--End PulumiCodeChooser -->
197
199
 
@@ -202,10 +204,12 @@ class Variable(pulumi.CustomResource):
202
204
  import pulumi
203
205
  import pulumi_nomad as nomad
204
206
 
205
- example_namespace = nomad.Namespace("exampleNamespace", description="Example namespace.")
206
- example_variable = nomad.Variable("exampleVariable",
207
+ example = nomad.Namespace("example",
208
+ name="example",
209
+ description="Example namespace.")
210
+ example_variable = nomad.Variable("example",
207
211
  path="some/path/of/your/choosing",
208
- namespace=example_namespace.name,
212
+ namespace=example.name,
209
213
  items={
210
214
  "example_key": "example_value",
211
215
  })
pulumi_nomad/volume.py CHANGED
@@ -725,13 +725,15 @@ class Volume(pulumi.CustomResource):
725
725
  import pulumi
726
726
  import pulumi_nomad as nomad
727
727
 
728
+ # It can sometimes be helpful to wait for a particular plugin to be available
728
729
  ebs = nomad.get_plugin(plugin_id="aws-ebs0",
729
730
  wait_for_healthy=True)
730
- mysql_volume = nomad.Volume("mysqlVolume",
731
+ mysql_volume = nomad.Volume("mysql_volume",
731
732
  type="csi",
732
733
  plugin_id="aws-ebs0",
733
734
  volume_id="mysql_volume",
734
- external_id=module["hashistack"]["ebs_test_volume_id"],
735
+ name="mysql_volume",
736
+ external_id=hashistack["ebsTestVolumeId"],
735
737
  capabilities=[nomad.VolumeCapabilityArgs(
736
738
  access_mode="single-node-writer",
737
739
  attachment_mode="file-system",
@@ -799,13 +801,15 @@ class Volume(pulumi.CustomResource):
799
801
  import pulumi
800
802
  import pulumi_nomad as nomad
801
803
 
804
+ # It can sometimes be helpful to wait for a particular plugin to be available
802
805
  ebs = nomad.get_plugin(plugin_id="aws-ebs0",
803
806
  wait_for_healthy=True)
804
- mysql_volume = nomad.Volume("mysqlVolume",
807
+ mysql_volume = nomad.Volume("mysql_volume",
805
808
  type="csi",
806
809
  plugin_id="aws-ebs0",
807
810
  volume_id="mysql_volume",
808
- external_id=module["hashistack"]["ebs_test_volume_id"],
811
+ name="mysql_volume",
812
+ external_id=hashistack["ebsTestVolumeId"],
809
813
  capabilities=[nomad.VolumeCapabilityArgs(
810
814
  access_mode="single-node-writer",
811
815
  attachment_mode="file-system",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_nomad
3
- Version: 2.3.0a1713333813
3
+ Version: 2.3.0a1713561631
4
4
  Summary: A Pulumi package for creating and managing nomad cloud resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -1,14 +1,14 @@
1
1
  pulumi_nomad/__init__.py,sha256=QUArXGICF8dmn0esax2QRn_bSJNVdbfnLlaahZRlmAU,4332
2
2
  pulumi_nomad/_inputs.py,sha256=usdXoIDUl9uStnrOTaVJRgdjF79shLPGXxK6rUCamGU,73944
3
3
  pulumi_nomad/_utilities.py,sha256=b6gJn0IIeM1t6Q7EVjqw3yhuGyP-uENQhtL5yp7aHR8,9248
4
- pulumi_nomad/acl_auth_method.py,sha256=op2mW3Um1ztWiYMz-aryNbccv0gZr6ffXVuapCSd-UY,23832
4
+ pulumi_nomad/acl_auth_method.py,sha256=DV2FqKxKZYYtZa7_jFtSBeyYYJ60IUZY6Huz_WIpeGA,23930
5
5
  pulumi_nomad/acl_binding_rule.py,sha256=7YZsOVUoabSUsThSiusJBju9S5kYcQGAclPqqRjj3PY,16396
6
- pulumi_nomad/acl_policy.py,sha256=FZsHQ-Csd2I2OmHFm0znGJBwZ2TbX-XD3ZPikAD6r_I,13862
6
+ pulumi_nomad/acl_policy.py,sha256=xN0klfhu-e5EPhKsaofxnj96m3TPTthsdtRbHW4Xr2Y,12176
7
7
  pulumi_nomad/acl_role.py,sha256=AzyAijJ-05LPP71sGis0paEqTI9wjVjj9EnTAN1Ln7A,10526
8
- pulumi_nomad/acl_token.py,sha256=SdRo62U8dczC0ZonjO5mg_SDBpxJ64q7CNRRqQwo_x8,29169
8
+ pulumi_nomad/acl_token.py,sha256=xsZ7sSMwrTakS7wNCEF-rR8JzNlxc17bdThikn8oFSE,29351
9
9
  pulumi_nomad/csi_volume.py,sha256=OvyQzy3HejF2Z_cOLVGDRpj9uUvh92QEL0LcW0QGUeQ,50670
10
10
  pulumi_nomad/csi_volume_registration.py,sha256=lLoYUAdyjs0CbNZ2tviAWxiegb7DGGPcnTNomo68Z54,52609
11
- pulumi_nomad/external_volume.py,sha256=C0uMzTZNqujNq5cAxQvHjQblAg_MRRIvbMgeexuhnS4,52423
11
+ pulumi_nomad/external_volume.py,sha256=IW4mBTgGiJnpJN0Y8ZThpUp0r5swEDdtncYbHvQma4k,52663
12
12
  pulumi_nomad/get_acl_policies.py,sha256=yOlZOApdRFEZtUd9mC-W_40IJPNQhRsBl4yrvrr-n6k,3690
13
13
  pulumi_nomad/get_acl_policy.py,sha256=H1_cLpAJKo0_KiPAzC7xLbyV13DoXadg9KkeAjJQ8ko,3940
14
14
  pulumi_nomad/get_acl_role.py,sha256=0E48rEByK4-ML_LBivWmf7mMGhGtho8kx8L9G7rCL5U,4013
@@ -16,39 +16,39 @@ pulumi_nomad/get_acl_roles.py,sha256=WkTV118LhSJBGIXAG7Sqdzl_AHA4Ak5lZPM_rbbBYDI
16
16
  pulumi_nomad/get_acl_token.py,sha256=7iO6G5_4xoIZQ-tvuDqtKmUhjGIeSZYv_YVDqQITLdQ,7770
17
17
  pulumi_nomad/get_acl_tokens.py,sha256=9iim76Kv5TC2GRfvgP8_n61LKtyeXqX6t5ZYOL5qnpM,3559
18
18
  pulumi_nomad/get_allocations.py,sha256=MArJUqco0qw3zWN2ynvy-7bRfGjgO1vgzUm7CRLn_Ec,5490
19
- pulumi_nomad/get_datacenters.py,sha256=84hJ-FNMmkFI5I_WVSg7y2iojJEBsSCTJg3Sx1zMzmE,4787
19
+ pulumi_nomad/get_datacenters.py,sha256=Y_2tJC-JLkHOXg7DrqwgWjUiFkm7zT2WHzafS1n0lgc,4787
20
20
  pulumi_nomad/get_deployments.py,sha256=5Vb127w47avaRjYId1Nl_atp56oTyLmVVbyXe2stxOQ,2855
21
21
  pulumi_nomad/get_job.py,sha256=Y_9h7REpEWBl14JhTPGotUUxbUT4gSgkL-kmMl_7Uqk,13544
22
- pulumi_nomad/get_job_parser.py,sha256=ZwoO_SPRLkRlJJJKM7Wk9J-a0zkRiLkTpfwRhN_9tzM,4601
22
+ pulumi_nomad/get_job_parser.py,sha256=seb5mrC1Mr3siKwi21_Jz9IMu4zcTZl0GUo8k4NZBi4,4001
23
23
  pulumi_nomad/get_namespace.py,sha256=-mbFZICuMhqRhGeqPl6tHnbq7eee1W6BsZdwgf9Ztds,5484
24
- pulumi_nomad/get_namespaces.py,sha256=IsCb9UWnLu2KviL-tWSjKWWNGMXbgd_1W9On5lb30Gs,3581
24
+ pulumi_nomad/get_namespaces.py,sha256=ZwjVBwZBbpBIfc43ma_i1MF5ISep6WXuA5eLwhjckCE,3701
25
25
  pulumi_nomad/get_node_pool.py,sha256=Rzd3k3YFJ5iqGdaRLnOd5L2jWPdZ69BcNxgD1VT2aBw,4567
26
26
  pulumi_nomad/get_node_pools.py,sha256=Z_2wMEN09OupmAnT3OSQrbbhl16C3ml-rHia7OHl97Y,4510
27
27
  pulumi_nomad/get_plugin.py,sha256=TaRHZvSdIqMUOzt_FeWKqoR2yeXcv9Kf0dsdwRGjVe0,10872
28
28
  pulumi_nomad/get_plugins.py,sha256=vAfKtqQOVmN9DJP7jkvSJbbnM9GL0M_CyxFPnjywdw0,3249
29
- pulumi_nomad/get_regions.py,sha256=lo008485fC7yjnmpzL7R9_m01FeczuAfx8lRe252BC4,2336
29
+ pulumi_nomad/get_regions.py,sha256=vRO2vcVDvUWo2d4P-UGsh0iHbR1Z5kNeg8gdNW6Pimg,3426
30
30
  pulumi_nomad/get_scaling_policies.py,sha256=gdF77qXTNwqjfXrYw0dQa1upnHzZNnANz6poPrX92h4,4798
31
31
  pulumi_nomad/get_scaling_policy.py,sha256=kDGLWYiZ2N2Pif6YlOfWheVJD7GpADPdPStQSInjy1Q,5256
32
32
  pulumi_nomad/get_scheduler_policy.py,sha256=jCMlDXQZvCnS76XMLWmeUZUW0Rm2psNVA7n2ZHRT50w,4686
33
33
  pulumi_nomad/get_variable.py,sha256=dGzWoEhOnqQF2dL9ZGVG52DzLIIKKknC9TjzGtggVCg,4253
34
34
  pulumi_nomad/get_volumes.py,sha256=ecBvniqg-ltQ_XvLsYTb4_g3Se3MneS0LQwDbbZl_5w,5560
35
35
  pulumi_nomad/job.py,sha256=DJ525lS2XkxkgKd3-TkIJCrTLba-NhWPjdo8KwKIgRk,51951
36
- pulumi_nomad/namespace.py,sha256=uLt6-h0CGTntslI-BVRxy4Gwfhz-I_1lE_hf2_vKID8,20661
37
- pulumi_nomad/node_pool.py,sha256=gElsf_T0PTUZzUVp4C9m94h_LKkqTWW-zjaow5PUsNA,13234
36
+ pulumi_nomad/namespace.py,sha256=ZK8Y0x77-x4WMDGuZ_qFA_IPtuUZ2PfmoqU-TTzxfu8,20817
37
+ pulumi_nomad/node_pool.py,sha256=HpWp51H9bucTIXCdEEgigxdHxU1YXsFfiBRmNJv2W5w,13282
38
38
  pulumi_nomad/outputs.py,sha256=Ye8Vi1txnZ4bnTdX_wu0kVGChgM-wza7yBnTUxqY6nM,100555
39
39
  pulumi_nomad/provider.py,sha256=kXiczhVPifjDrveY1h4jz1sqGvu8ahRNbh-f3QLDuew,21549
40
40
  pulumi_nomad/pulumi-plugin.json,sha256=2s0bEeojFder0tplFBIeTqy2h7Y8kNsJQ696Q6gJHqU,42
41
41
  pulumi_nomad/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
42
- pulumi_nomad/quote_specification.py,sha256=kHZfd9wL-yXeRFsb0dmKKtrGiB3B4hkKxO8uxGkiBuI,12209
43
- pulumi_nomad/scheduler_config.py,sha256=7Ap8fKun8dqdHE-sw9-yK60RdAfAgCzvu9IhcVD1rSI,14266
44
- pulumi_nomad/sentinel_policy.py,sha256=Bc7s9bUhHrrtgEZQgGK9gYinWN5c9V1e37vXsM8GQlg,17156
45
- pulumi_nomad/variable.py,sha256=uImwdvXU8YwupEqoZAQ8j03cjOk-MjfNVqVPM719u_4,11835
46
- pulumi_nomad/volume.py,sha256=oUiBi2pCV5-3INaTz-dZZScR7U3fw1ECHqaq4-KLmbE,57464
42
+ pulumi_nomad/quote_specification.py,sha256=EBaiGbs959ddAf9d7kaPfhBoBF3Zm6yefrso5QGYUbc,12269
43
+ pulumi_nomad/scheduler_config.py,sha256=f-z3UuyiBdF25S6mgOwnto2pHXV0-aQqHtndojAoLSY,14266
44
+ pulumi_nomad/sentinel_policy.py,sha256=u2hY6qzs3-KBLuZWgDMtAWKbDL406cdgGY90SxEOqz4,17214
45
+ pulumi_nomad/variable.py,sha256=e0xUnBYU4mVjlMGu4oerk7Iox-qGkx6eJZaWJmcnEjc,11841
46
+ pulumi_nomad/volume.py,sha256=vFUk98CryYI0Waz9edD_dg-zcpS6exmaENuwJvhHQCY,57678
47
47
  pulumi_nomad/config/__init__.py,sha256=cfY0smRZD3fDVc93ZIAxEl_IM2pynmXB52n3Ahzi030,285
48
48
  pulumi_nomad/config/__init__.pyi,sha256=xqQrj9Co22MZN1IMoQwefoce6b6zI5nQfuA4L_uqw3Q,1865
49
49
  pulumi_nomad/config/outputs.py,sha256=EJXQtJx8CPqK4-XlVBLC4rbjzI1AVUBUrOjFgyxwtuk,1003
50
50
  pulumi_nomad/config/vars.py,sha256=pNNlDdaVJeMKr6TPOOJ4wW-_KPneYFizgpPjUIxa9rU,3432
51
- pulumi_nomad-2.3.0a1713333813.dist-info/METADATA,sha256=l4g-DSYfp7FlBrCQCBJhbfV9OaDFhP2H9cK00RRHzJM,4730
52
- pulumi_nomad-2.3.0a1713333813.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
53
- pulumi_nomad-2.3.0a1713333813.dist-info/top_level.txt,sha256=1JxoZWssmXqN-8vVDXtedeoWtI703uNWUOzlm8Byv-o,13
54
- pulumi_nomad-2.3.0a1713333813.dist-info/RECORD,,
51
+ pulumi_nomad-2.3.0a1713561631.dist-info/METADATA,sha256=_z9LeRWF5ClYGNkXEZX9zSVKTBa7WcMThJITsLEsDg0,4730
52
+ pulumi_nomad-2.3.0a1713561631.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
53
+ pulumi_nomad-2.3.0a1713561631.dist-info/top_level.txt,sha256=1JxoZWssmXqN-8vVDXtedeoWtI703uNWUOzlm8Byv-o,13
54
+ pulumi_nomad-2.3.0a1713561631.dist-info/RECORD,,