Category: Terraform
-
terraform terragrunt
https://www.terraform-best-practices.com/ https://github.com/terraform-linters/tflint check: terraform init # terragrunt init -upgrade 重新更新依赖 terraform validate terraform plan 交互 approve 方式执行 terraform apply 直接执行,省去交互 terraform apply -auto-approve 格式化代码 terraform fmt -recursive terragrunt hclfmt 查看 state terraform state list import state terragrunt import –terragrunt-working-dir dev/k8s/namespaces ‘kubernetes_namespace.namespaces[“app”]’ app 清理 dev 集群 hongkong terragrunt run-all plan –terragrunt-working-dir deploy/dev/gke/hongkong terragrunt run-all destroy –terragrunt-working-dir…