git clone https://github.com/cloudtruth-demo/terragrunt-cloudtruth-deploy.git
development
, production
, and staging
directories.instance
and s3
sub-folders contain a terragrunt.hcl
file that set the source
parameter to point at the specific modules in the terragrunt-cloudtruth-modules
repo. They also include
the parent terragrunt.hcl
which configures the AWS provider.terragrunt.hcl
:Terragrunt
project that are required by the Terraform modules we are calling in the terragrunt.hcl.TF_VAR
variables with unique values for resource tags across our multiple environments.TF_VAR_xxx
variables you’ve manually set in your environment and follows the same variable precedence as Terraform. Using CloudTruth Run
we will pass the CloudTruth configured TF_VAR_xxx
variables directly to the Terraform modules through Terragrunt for the specified environment.terragrunt-cloudtruth-deploy/development/
.terragrunt-cloudtruth-deploy/development/
execute the following command which passes variables from the CloudTruth project Terragrunt
for the development
environment into terragrunt:terragrunt run-all output
.