HashiCorp Cloud Platform
HCP upload
For commands that HCP upload is enabled, you will need to configure your environment to complete the upload process.
Create service principals
Log into the HCP web portal and follow the Project service principals documentation to create a service principal.
Service principals require the HCP IAM admin
role. Refer to the HCP
IAM documentation for more information
on HCP roles.
Service principal credentials should not be shared.
Note
Be sure to securely store the client secret after creation as you will be unable to retrieve it later.
Prepare your environment
You will need to set the following environment variables for your CLI runtime referencing the newly created Service Principals.
$ export HCP_PROJECT_ID=<HCP_PROJECT_ID>
$ export HCP_CLIENT_ID=<HCP_CLIENT_ID>
$ export HCP_CLIENT_SECRET=<HCP_CLIENT_SECRET>