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:

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:

  1. Set the environment variables NOMAD_ADDR and NOMAD_TOKEN:

    $ export NOMAD_ADDR=XXXXXX
    $ export NOMAD_TOKEN=YYYYYY
    
  2. 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.