Create a Terraform organization for Cloud Account Management in Cloud Workspace
Integrate with Terraform Cloud/Terraform Enterprise to organize accounts, define workflows, enforce security, improve collaboration, and enhance scalability.
Before you begin
Role required: Terraform admin
Attributes required for this setup:
- AWS Access Key
- AWS Secret Key
Make sure you have access to Terraform Cloud or Terraform Enterprise to perform the following procedure.
Procedure
Log in and navigate to the Terraform Cloud (
https://app.terraform.io/session) or Terraform Enterprise portal (https://<tfe_server_url>/api/v1).Select the user name or organization name.
In the modal window, enter a unique org name and other details.
Select Create Organization.
Note:
After a new organization is created, you’ll receive confirmation within the platform. You can manage your organization settings, add members, and configure workspaces within your newly created organization.
To see to the official Terraform documentation:
- In Terraform org, navigate to Settings > Variable set > Create variable set.
A variable set is a collection of variables shareable across multiple workspaces.
Provide a descriptive name like AWS credentials.
Select the appropriate scope (organization or a workspace).
Create two variable sets within the Variables section as follows:
- Key: AWS_ACCESS_KEY_ID and Value: <AWS access key>
Key: AWS_SECRET_ACCESS_KEY and Value: <AWS secret key>
Note: Select as Sensitive to restrict the visibility of credentials to unauthorized personnel with Terraform access.
For more details on variable sets, see https://developer.hashicorp.com/terraform/tutorials/cloud-get-started/cloud-create-variable-set#.
Parent Topic:Setting up Terraform and GitHub
Related topics