- tfstate管理用のS3 bucketを準備
- 1つのbucketを複数リソースで使いまわしていいので、2つ目以降は不要
- このスケルトンをcloneして、ディレクトリ名を変更
- make env
- Makefile.env のパラメータ書き換え
- make init
- Makefile.env がちゃんと設定できてれば、tfvars はいい感じに自動生成されるので、気にしないでいい
- *.tf でリソースを定義
- make all
- test => plan => apply
- make status
- show
karinharp / terraform-skeleton Goto Github PK
View Code? Open in Web Editor NEWterraform-skeleton