Skip to main content
All CollectionsConnectionsProvider
Connect Terraform to Drata
Connect Terraform to Drata
Updated over a week ago

Integrating Terraform with Drata automates your user access reviews, saving time and reducing errors by syncing user data directly from Terraform.

Prerequisites

  • Ensure you have Admin privileges within your Terraform organization.

  • Copy your Terraform Organization name.

    1. Log in to your Terraform instance.

    2. Navigate to your Workspaces page. Then you can copy the name from the URL (https://app.terraform.io/app/{Organization_Name}/workspaces) or from the Workspace page, near the top left corner.

  • Create your Terraform API Key.

    1. Select your profile icon within the left side navigation and then select Account settings.

    2. Then, select Tokens in the left side navigation. This is underneath the Account Settings.

    3. On the Tokens page, select Create API token.

    4. Enter description, set the expiration to No expiration, and generate the token.

    5. Copy your Terraform API key. You will need this to connect Elastic to Drata.

Enable Terraform

  1. Select Connections on the side navigation menu.

  2. Select the Available connections tab, search for Terraform, and select Connect.

  3. Follow the instructions on the connection drawer.

    • After you select connect to Terraform, on the popup modal, enter the required fields with the values that you obtained from the previous section.

Additional resources

Did this answer your question?