Skip to content

DevanM/blockchain-terraform

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Here is quick HOWTO use terragrunt with multiple environments.

Requirements:

Terragrunt allows to store terraform manifests separately from terraform [sensitive] values and support multiple environments.

In this example we have 3 envs - dev,staging, and prod. Adjust all the terragrunt.hcl files to suit your environments. Let's deploy staging env. Start from infra deployment.

  • Init
cd examples/live/staging/infra
terragrunt init
  • Check terraform plan
terragrunt plan
  • Apply changes, it takes some time, 10-30min
terragrunt apply -auto-approve

Similar for basic preparations inside k8s

cd examples/live/staging/in-k8s
terragrunt init
terragrunt plan
terragrunt apply -auto-approve
  • Destroy all the staff, when required
cd examples/live/staging/infra
terragrunt destroy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 98.2%
  • Smarty 1.8%