HCP Terraform was formerly named Terraform Cloud. The connector repository and configuration retain the
terraform-cloud name.Capabilities
The HCP Terraform connector syncs the following resources:
Additional functionality:
The HCP Terraform connector supports automatic account provisioning.
Notes:
- Account provisioning creates an organization invitation. HCP Terraform does not accept a password through the API, so C1 does not set one. The invited person receives an email from HCP Terraform and sets their own password when they accept the invitation.
- Account deprovisioning is not supported. HCP Terraform has no user-deletion API, so removing a person from an organization is done by revoking their organization membership grant.
- Agent tokens sync as secrets for visibility only. They have no entitlements or grants.
- Projects and workspaces sync for visibility and are read-only. C1 does not provision access to them directly.
- Managing organization members and teams requires an HCP Terraform paid plan. Team management is unavailable on the free tier.
Gather HCP Terraform credentials
HCP Terraform issues several kinds of API tokens. Create a user token, which inherits the permissions of the account that owns it. Team tokens are limited to the workspaces their team can access, and organization tokens cannot cover multiple organizations, so neither is suitable for this connector.Create a user API token
1
Sign in to HCP Terraform at https://app.terraform.io as a user who is a member of the owners team.
2
Confirm that your account has owner permissions. Navigate to Organization settings > Teams and check that your account appears in the owners team.
3
Click your user icon in the top-right corner and select Account settings.
4
In the left sidebar, click Tokens.
5
Click Create an API token.
6
Configure the token:
- Enter a Description:
ConductorOne - Choose an Expiration for the token.
7
Click Generate token, then copy and save the token value securely. HCP Terraform displays the token only once.
Configure the HCP Terraform connector
- Cloud-hosted
- Self-hosted
Follow these instructions to use a built-in, no-code connector hosted by C1.Done. Your HCP Terraform connector is now pulling access data into C1.
1
In C1, navigate to Integrations > Connectors and click Add connector.
2
Search for HCP Terraform and click Add.
3
Choose how to set up the new HCP Terraform connector:
- Add the connector to a currently unmanaged app (select from the list of apps that were discovered in your identity, SSO, or federation provider that aren’t yet managed with C1)
- Add the connector to a managed app (select from the list of existing managed apps)
- Create a new managed app
4
Set the owner for this connector. You can manage the connector yourself, or choose someone else from the list of C1 users. Setting multiple owners is allowed.If you choose someone else, C1 notifies the new connector owner by email that their help is needed to complete the setup process.
5
Click Next.
6
Find the Settings area of the page and click Edit.
7
Enter the required configuration:
- API Token (required): The API token used to authenticate with Terraform Cloud.
- Address (optional): The address of the Terraform instance. Default:
https://app.terraform.io
8
Click Save.
9
The connector’s label changes to Syncing, followed by Connected. You can view the logs to ensure that information is syncing.