跳到正文

HashiCorp Consul Setup ​

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

Pulumi relies on the Consul SDK to authenticate requests from your computer to HashiCorp Consul. Your credentials are never sent to pulumi.com.

Configuring The Provider ​

Once obtained, there are two ways to communicate your configuration parameters to Pulumi:

  1. Set the environment variable CONSUL_HTTP_ADDR:

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

    bash
    $ pulumi config set consul:address XXXXXX

A full set of configuration parameters can be found listed on the Project README.

文档内容翻译自 Pulumi 官方文档。