Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/khuedoan/terraform-cloud
Manage Terraform Cloud using Terraform
https://github.com/khuedoan/terraform-cloud
saas terraform
Last synced: 13 days ago
JSON representation
Manage Terraform Cloud using Terraform
- Host: GitHub
- URL: https://github.com/khuedoan/terraform-cloud
- Owner: khuedoan
- License: gpl-3.0
- Created: 2021-11-11T08:10:41.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-04-11T06:15:52.000Z (9 months ago)
- Last Synced: 2024-10-28T05:17:13.872Z (2 months ago)
- Topics: saas, terraform
- Language: HCL
- Homepage:
- Size: 20.5 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Terraform Cloud
Manage Terraform Cloud using Terraform
## Prerequisites
- Create a Terraform Cloud account at
- Create an Organization (I named mine `khuedoan`)
- Create an API token at
- Create a Workspace named `terraform-cloud`
- Create an environment variable for the token:
- Key: `TFE_TOKEN`
- Value: `mysupersecret.token.abcdefghijklmnop` (from the previous step)
- Sensitive: `true`
- Description: `Terraform Cloud API token`## Import current workspaces (if any)
```sh
terraform init
terraform import tfe_workspace.$NAME $ID
```## Apply changes
```sh
terraform init
terraform apply
```## Setup GitHub Actions
- Create another Terraform Cloud API token named `github-actions`
- Go to GitHub project Settings -> Secrets -> New repository secret:
- Name: `TF_API_TOKEN`
- Value: `mysupersecret.token.abcdefghijklmnop` (from the previous step)