HCP

Community
Package contributed by a community member
v0.1.9 published on Friday, Jun 24, 2022 by Grapl Security

Installation

The Pulumi HCP provider is available as a package in the following Pulumi languages:

Setup

To provision resources with the Pulumi HCP provider, you need to have HCP credentials.

Set environment variables

Once you have provisioned these credentials, you can set environment variables to provision resources in HCP:

$ export HCP_CLIENT_ID=<HCP_CLIENT_ID>
$ export HCP_CLIENT_SECRET=<HCP_CLIENT_SECRET>
$ export HCP_CLIENT_ID=<HCP_CLIENT_ID>
$ export HCP_CLIENT_SECRET=<HCP_CLIENT_SECRET>
> $env:HCP_CLIENT_ID = "<HCP_CLIENT_ID>"
> $env:HCP_CLIENT_SECRET = "<HCP_CLIENT_SECRET>"

Configuration Options

Use pulumi config set hcp:<option> or pass options to the constructor of new hcp.Provider.

OptionRequired/OptionalDescription
client_idRequiredThe OAuth2 Client ID for API operations. Can be configured from the environment variable HCP_CLIENT_ID.
client_secretRequiredThe OAuth2 Client Secret for API operations. Can be configured from the environment variable HCP_CLIENT_SECRET.