1. Packages
  2. HCP
  3. Installation & Configuration
HashiCorp Cloud Platform (HCP) v0.1.14 published on Friday, Dec 2, 2022 by Grapl Security

HCP: Installation & Configuration

hcp logo
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:

    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?Description
    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.
    hcp logo
    HashiCorp Cloud Platform (HCP) v0.1.14 published on Friday, Dec 2, 2022 by Grapl Security