Open stormcorgi opened 1 year ago
how many resources am I using on AWS ? I think...
follow best-practice https://dev.classmethod.jp/articles/terraform-bset-practice-jp/
TicketGoal: Generate Dev Environment by Same TF file, different environment data.
https://github.com/GoogleCloudPlatform/terraformer
terraformer resolve whole issue??????
terraformer generate many datas, but its not perfect...
terraformer import aws --resources=acm,budgets,cloudwatch,eni,iam,igw,lambda,nat,s3,sg,ssm
tfenv use 0.13.0
ls generated/aws/ | xargs -I{} bash -c "cd generated/aws/{}; terraform 0.13upgrade -yes; terraform state replace-provider -auto-approve registry.terraform.io/-/aws hashicorp/aws"
tfstate version https://zenn.dev/ifhito/articles/ba235f55678329
terragrunt to execute all modules {init,plan,apply} at one comannd https://zenn.dev/nameless_gyoza/articles/terragrunt-hands-on
Using
terraform import <aws_something> <ID>
and describe AWS resources into codes.