--- title: "Terraform" slug: "terraform" updated: 2025-03-24T16:35:06Z published: 2025-03-24T16:35:06Z canonical: "docs.databee.buzz/terraform" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.databee.buzz/llms.txt > Use this file to discover all available pages before exploring further. # Terraform HashiCorp Terraform is an infrastructure as code tool that lets you define both cloud and on-prem resources in human-readable configuration files that you can version, reuse, and share. You can then use a consistent workflow to provision and manage all of your infrastructure throughout its lifecycle. For detailed information refer to the [Terraform’s official documentation](https://developer.hashicorp.com/terraform/docs). **Integration Method:** API **Tables**: Entity Management (3004) This integration supports the following events. | **Event** | **Description** | | --- | --- | | Policies | Fetch all policies for your organization. | This integration supports the following versions. | Terraform API version | v2.0 | | --- | --- | > [!NOTE] > **Note:** > > Terraform is a continuously updated cloud service. ## Prerequisites - The user should have access to the Terraform dashboard. - The user should have access to the DataBee console. ## Configuration Overview 1. Generate token on the Terraform dashboard to authenticate to the API. 2. Create [Terraform Data Feed](/user-manual/docs/terraform#databee-configuration) in the DataBee console with the required Token. | **DataBee Parameter** | **Proofpoint TAP Parameter** | | --- | --- | | Token | Token | | Organization Name | Organization Name | ## Terraform Configuration 1. Log in to [Terraform](https://app.terraform.io/session). 2. Select **Create organization**. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/terraform-mar2025-image-fpsi9tmo.png?sv=2026-02-06&spr=https&st=2026-11-15T00%3A04%3A50Z&se=2026-11-15T01%3A04%3A50Z&sr=c&sp=r&sig=HgWQWw18RIT57cOpanrRI8b6REIvVeoV5EwoNjADmKM%3D) 3. Under “Create a new organization” window, enter your ‘Organization name’ and click on the **Create Organization** button**.** ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/terraform-mar2025-image-fkyx0e0e.png?sv=2026-02-06&spr=https&st=2026-11-15T00%3A04%3A50Z&se=2026-11-15T01%3A04%3A50Z&sr=c&sp=r&sig=HgWQWw18RIT57cOpanrRI8b6REIvVeoV5EwoNjADmKM%3D) 4. Under the sidebar, select **Settings**. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/terraform-mar2025-image-zy2mitki.png?sv=2026-02-06&spr=https&st=2026-11-15T00%3A04%3A50Z&se=2026-11-15T01%3A04%3A50Z&sr=c&sp=r&sig=HgWQWw18RIT57cOpanrRI8b6REIvVeoV5EwoNjADmKM%3D) 5. Scroll down and select **API tokens**. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/terraform-mar2025-image-m71eczmk.png?sv=2026-02-06&spr=https&st=2026-11-15T00%3A04%3A50Z&se=2026-11-15T01%3A04%3A50Z&sr=c&sp=r&sig=HgWQWw18RIT57cOpanrRI8b6REIvVeoV5EwoNjADmKM%3D) 6. Under **User Tokens**, select **account settings page**. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/terraform-mar2025-image-gavjvjsc.png?sv=2026-02-06&spr=https&st=2026-11-15T00%3A04%3A50Z&se=2026-11-15T01%3A04%3A50Z&sr=c&sp=r&sig=HgWQWw18RIT57cOpanrRI8b6REIvVeoV5EwoNjADmKM%3D) 7. Select **Create an API token**. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/terraform-mar2025-image-13y77k28.png?sv=2026-02-06&spr=https&st=2026-11-15T00%3A04%3A50Z&se=2026-11-15T01%3A04%3A50Z&sr=c&sp=r&sig=HgWQWw18RIT57cOpanrRI8b6REIvVeoV5EwoNjADmKM%3D) 8. Enter the token ‘Description’ and select the token ‘Expiration’ time (recommended time is 90 days). 1. Click on the **Generate token** button**.** ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/terraform-mar2025-image-fzpf0dwu.png?sv=2026-02-06&spr=https&st=2026-11-15T00%3A04%3A50Z&se=2026-11-15T01%3A04%3A50Z&sr=c&sp=r&sig=HgWQWw18RIT57cOpanrRI8b6REIvVeoV5EwoNjADmKM%3D) 9. Here you can find your token. 1. Once the Token is generated, Copy the token for the later user. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/terraform-mar2025-image-evigcepc.png?sv=2026-02-06&spr=https&st=2026-11-15T00%3A04%3A50Z&se=2026-11-15T01%3A04%3A50Z&sr=c&sp=r&sig=HgWQWw18RIT57cOpanrRI8b6REIvVeoV5EwoNjADmKM%3D) > [!NOTE] > Note: > > Make sure to copy and save token as they will not be shown again. ## DataBee Configuration 1. Login to the DataBee UI, navigate to **Data** > **Data Feeds** and click the **Add New Data Feed** button. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/terraform-mar2025-image-tbyt4ymm.png?sv=2026-02-06&spr=https&st=2026-11-15T00%3A04%3A50Z&se=2026-11-15T01%3A04%3A50Z&sr=c&sp=r&sig=HgWQWw18RIT57cOpanrRI8b6REIvVeoV5EwoNjADmKM%3D) 2. Search for **Terraform** and click it as shown below. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/terraform-mar2025-image-qaf5abne.png?sv=2026-02-06&spr=https&st=2026-11-15T00%3A04%3A50Z&se=2026-11-15T01%3A04%3A50Z&sr=c&sp=r&sig=HgWQWw18RIT57cOpanrRI8b6REIvVeoV5EwoNjADmKM%3D) 3. Click on the **API Ingest** option for collection method. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/terraform-mar2025-image-szxbsvhn.png?sv=2026-02-06&spr=https&st=2026-11-15T00%3A04%3A50Z&se=2026-11-15T01%3A04%3A50Z&sr=c&sp=r&sig=HgWQWw18RIT57cOpanrRI8b6REIvVeoV5EwoNjADmKM%3D) 4. Enter feed contact information and click **Next**. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/terraform-mar2025-image-3dde3lnf.png?sv=2026-02-06&spr=https&st=2026-11-15T00%3A04%3A50Z&se=2026-11-15T01%3A04%3A50Z&sr=c&sp=r&sig=HgWQWw18RIT57cOpanrRI8b6REIvVeoV5EwoNjADmKM%3D) 5. In the configuration page, confirm the following: - Authorization Method: Bearer Token - Token: paste the Token that generated earlier. - Organization Name: enter the Organization name. - Event Types: preselected for all the event types that integration pulls. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/terraform-mar2025-image-tcv09nhc.png?sv=2026-02-06&spr=https&st=2026-11-15T00%3A04%3A50Z&se=2026-11-15T01%3A04%3A50Z&sr=c&sp=r&sig=HgWQWw18RIT57cOpanrRI8b6REIvVeoV5EwoNjADmKM%3D) 6. Click **Submit**. ## Troubleshooting Tips - Ensure the token is pasted correctly without any extra spaces or unexpected characters. Since the token is only visible once at the time of creation, it cannot be viewed again. If necessary, generate a new token and paste it into a text editor to check for formatting errors. Once verified, reconfigure the DataBee feed.