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.
Log in to your Terraform instance.
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.
Select your profile icon within the left side navigation and then select Account settings.
Then, select Tokens in the left side navigation. This is underneath the Account Settings.
On the Tokens page, select Create API token.
Enter description, set the expiration to No expiration, and generate the token.
Copy your Terraform API key. You will need this to connect Elastic to Drata.
Enable Terraform
Select Connections on the side navigation menu.
Select the Available connections tab, search for Terraform, and select Connect.
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.