HashiCorp Cloud Platform (HCP) v0.1.14 published on Friday, Dec 2, 2022 by Grapl Security
HCP: Installation & Configuration
HashiCorp Cloud Platform (HCP) v0.1.14 published on Friday, Dec 2, 2022 by Grapl Security
Installation
The Pulumi HCP provider is available as a package in the following Pulumi languages:
- JavaScript/TypeScript:
@grapl/pulumi-hcp
- Python:
pulumi_hcp
- Go:
github.com/graphl-security/pulumi-hcp/sdk
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
.
Option | Required? | Description |
---|---|---|
client_id | Required | The OAuth2 Client ID for API operations. Can be configured from the environment variable HCP_CLIENT_ID |
client_secret | Required | The OAuth2 Client Secret for API operations. Can be configured from the environment variable HCP_CLIENT_SECRET . |
HashiCorp Cloud Platform (HCP) v0.1.14 published on Friday, Dec 2, 2022 by Grapl Security