Skip to content

jamesjsanders/tf-tgrunt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example of terragrunt setup with CircleCI

Structure Information

At the root of this repository contains environment name directories, ex: sandbox which in this case is dedicated to an AWS account. In this example the sandbox directory contains a subfolder named as the region in which has been targeted for terragrunt deployments.

Repository current layout

Uses this following folder hierarchy:

|-- empty.yaml
`-- account
    |-- state.tf
    |-- terragrunt.hcl
    `-- region
        |-- application
        |   `-- terragrunt.hcl
        |-- vpc_deployment
        |   `-- terragrunt.hcl
        |-- region.yaml
        `-- env.yaml

Where:

  • account is an AWS Account Environment, ex: sandbox
    • terragrunt.hcl is configured for plan-all, apply-all and destroy-all terragrunt commands
  • region is the AWS Region in which to deploy us-east-1
  • aplication/vpc_deployment is the resource in which you want to deploy
    • terragrunt.hcl confiuged for application specific deployments
  • region.yaml contains all regsion specific environment variables
  • env.yaml injects CI/CD enviornment variables, CircleCI in this case

About

Terragrunt Example

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors