This repository contains the configuration for setting up and managing a Terraform Enterprise (TFE) organization using Terraform Cloud.
It provides a script for creating a new TFE organization and terraform code to automate TFE workspace creation and management.
- Terraform: Version 1.9.8 or later Download Terraform
- Terraform Cloud Account: An active account on Terraform Cloud
- Terraform Cloud User API Token: A user API token of the organization owner.
- Empty Terraform Cloud Organization: A new or unused organization in Terraform Cloud where configurations will be set up.
-
Clone this repository:
git clone <repository-url> cd terraform-tfe
-
Run the interactive CLI program install.sh to initialize your Terraform Cloud organization and GitHub integration.
./install.sh
This script will guide you through the process of creating a new Terraform Cloud organization, installing the Terraform Cloud GitHub App, and configuring the GitHub integration.
Once the organization is bootstrapped, set up your environment variables in the Terraform Cloud workspace(s) to match your infrastructure needs.
After bootstrapping, any changes to your infrastructure should be managed through this repository. Use the following workflow for updates:
- Make changes to the relevant Terraform files.
- Commit and push your changes to the source repository.
- Approve the changes in the Terraform Cloud workspace(s).
This repository was built using resources and inspiration from the ALT-F4-LLC/fem-eci-terraform-tfe project.