Terraform のコマンドについて備忘録として残しておく
実際のコード
基本の流れ
初期化
terraform init検証
terraform validate #=> Success! The configuration is valid.実行計画確認
terraform planインフラ構築
terraform apply
その他
コード自動整形
terraform fmt
リソース確認
terraform show
リソース削除
terraform destroy
リソース削除の実行計画確認
terraform plan -destroy