This module configures your Terraform organization and workspace.
Authors: David Wright ([email protected]) and Tony Vattahil ([email protected])
To deploy this module, do the following: Install Terraform. (See Install Terraform for a tutorial.)
Sign up and log into Terraform Cloud. (There is a free tier available.)
Generate terraform cloud token
terraform login
Export TERRAFORM_CONFIG
export TERRAFORM_CONFIG="$HOME/.terraform.d/credentials.tfrc.json"
Example tfvars file (replace *** with AKEY and SKEY)
AWS_SECRET_ACCESS_KEY
= "*****************"
AWS_ACCESS_KEY_ID
= "*****************"
AWS_SESSION_TOKEN
= "*****************"
Note: STS-based credentials are optional but highly recommended.
!!!!CAUTION!!!!: Make sure your credential are secured ourside version control (and follow secrets mangement bestpractices)
!!!!WARNING!!!!: Run these commands in order:
Clone the aws-quickstart/terraform-tfc_workspace repository.
git clone https://github.com/aws-quickstart/terraform-aws-tfc_workspace.git
Change directory to the root directory.
cd terraform-aws-tfc_workspace
Initalize terrafrom module
terraform init
Run terraform apply with tfvars file
terraform apply -var-file="$HOME/.aws/terraform.tfvars"