This page explains how to use the Terraform Cloud ID Token Organization ID identifier to uniquely identify Terraform workloads running on Terraform Cloud (TFC) using a Terraform Cloud ID Token.
Understanding the Terraform Cloud ID token organization ID
Section titled “Understanding the Terraform Cloud ID token organization ID”When Terraform Cloud executes runs, it can issue an OIDC-compliant identity token that includes an terraform_organization_id
claim.
This value uniquely identifies the Terraform Cloud organization under which the workload runs.
Aembit uses this value to associate a Terraform run with a specific Client Workload.
For example, an organization ID might look like: org-GRNbCjYNpBB6NEH9
Applicable deployment type
Section titled “Applicable deployment type”Aembit supports this identifier only when you use the Aembit Terraform provider.
Create a Client Workload with a Terraform Cloud ID Token identifier
Section titled “Create a Client Workload with a Terraform Cloud ID Token identifier”To configure a Client Workload using the Terraform Cloud ID Token identifier, follow these steps:
-
Log into your Aembit Tenant.
-
Click Client Workloads in the left nav pane.
-
Click New, revealing the Client Workload pop out menu.
-
Enter the Name and optional Description for the Client Workload.
-
Under Client Identification, select Terraform Cloud ID Token Organization ID.
For Value, enter the Terraform Cloud Organization ID associated with the workload.
For example:
org-GRNbCjYNpBB6NEH9
-
Click Save.
Aembit displays the new Client Workload on the Client Workloads page.
Find Terraform cloud organization ID
Section titled “Find Terraform cloud organization ID”- Log into Terraform Cloud.
- Choose your organization.
- In the left navigation menu, click Settings.
- Under General Settings, you’ll find the Organization ID at the top of the page.