Consul v3.11.0 published on Monday, Nov 20, 2023 by Pulumi
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:
- JavaScript/TypeScript:
@pulumi/consul
- Python:
pulumi-consul
- Go:
github.com/pulumi/pulumi-consul/sdk/v3/go/consul
- .NET:
Pulumi.Consul
- Java:
com.pulumi/consul
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:
Set the environment variable
CONSUL_HTTP_ADDR
:$ export CONSUL_HTTP_ADDR=XXXXXX
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.