HashiCorp Consul: Installation & Configuration

The Pulumi Consul provider uses the Consul SDK to manage resources.

Installation

The HashiCorp Consul provider is available as a package in all Pulumi languages:

Configuring The Provider

Pulumi relies on the Consul SDK to authenticate requests from your computer to HashiCorp Consul. Your credentials are never sent to pulumi.com. Once the credentials are obtained, there are two ways to communicate your configuration parameters to Pulumi:

  1. Set the environment variable CONSUL_HTTP_ADDR:

    $ export CONSUL_HTTP_ADDR=XXXXXX
    
  2. If you prefer that they be stored alongside your Pulumi stack for easy multi-user access:

    $ pulumi config set consul:address XXXXXX
    

The complete list of configuration parameters is in the HashiCorp Consul provider README.