Nomad v2.3.3 published on Thursday, Oct 10, 2024 by Pulumi
HashiCorp Nomad: Installation & Configuration
The Pulumi Nomad provider uses the Nomad SDK to manage resources.
Installation
The HashiCorp Nomad provider is available as a package in all Pulumi languages:
- JavaScript/TypeScript:
@pulumi/nomad
- Python:
pulumi-nomad
- Go:
github.com/pulumi/pulumi-nomad/sdk/go/nomad
- .NET:
Pulumi.Nomad
- Java:
com.pulumi/nomad
Configuring The Provider
Pulumi relies on the Nomad SDK to authenticate requests from your computer to HashiCorp Nomad. Your credentials are never sent to pulumi.com.
Once the credentials are obtained, there are two ways to communicate your configuration tokens to Pulumi:
Set the environment variables
NOMAD_ADDR
andNOMAD_TOKEN
:$ export NOMAD_ADDR=XXXXXX $ export NOMAD_TOKEN=YYYYYY
Set them using configuration, if you prefer that they be stored alongside your Pulumi stack for easy multi-user access:
$ pulumi config set nomad:address XXXXXX $ pulumi config set nomad:secretId YYYYYY --secret
The complete list of
configuration parameters is in the HashiCorp Nomad provider README.
Remember to pass --secret
when setting secretId
so that it is properly encrypted.