Skip to main content

Add the Terraform Cloud integration

The integration gives Astrolabe the address of Terraform Cloud (or of your Terraform Enterprise) and a token to read it. It feeds the Terraform tab of your components.

You do it once, as an administrator.

Before you start​

You need an API token: see Create a Terraform Cloud API token.

🔧 Add the integration​

  1. In the left sidebar, at the bottom, click Administration.

  2. Under PLATFORM, click Company connections.

  3. On the Terraform Cloud card, click Configure.

  4. Top right, click Add Token.

  5. Fill in the form:

    FieldWhat to enterExample
    NameA name for youTerraform Cloud
    Terraform Cloud addressThe web address, with https://. It already reads https://app.terraform.io: change it only for your own Terraform Enterprisehttps://app.terraform.io
    API token (user or team token)The API token
  6. Click Test connection. The form says Connection works: the source accepted the credentials.

  7. Click Add. The form warns: The instance will restart after confirmation. Wait a few seconds.

The token is in the list, with State set to Connected. On Company connections, the Terraform Cloud card says Connected and its button reads Manage.

✅ That's it!

Next: Show the Terraform tab on a component.