此範例完整參考並延伸應用
- gruntwork-io/terragrunt-infrastructure-live-example
- gruntwork-io/terragrunt-infrastructure-modules-example
git clone
於本地- 根據自己需求修改此專案
- 建立一組 live 專案 Example: terragrunt-infrastructure-hifounder-live
- 於 live 專案操作
terragrunt plan --terragrunt-source <此專案local路徑>//mysql
- 若 plan 不錯, 於 live 專案操作
terragrunt apply --terragrunt-source <此專案local路徑>//mysql
- 根據自己需求修改此專案
- commit Git ex:
git commit -m "commit message"
-
git tag -a v0.0.1 -m "tag message" git push --follow-tags
- 如果你需要使用新的
release tag
記得修改live
專案的下env.hcl
的ref
- 於 live 專案操作
terragrunt plan
- 若 plan 不錯, 於 live 專案操作
terragrunt apply