TL;DR Terraform のディレクトリ設計の個人の意見です。 マサカリはむしろください。より良い構成のために。 Terraform でVPC EC2 を作る例を元にディレクトリ設計の案を出します。 About Terraform のディレクトリ設計が溢れているので、俺の考えた最強のディレクトリ構成を提案します。 各所でディレクトリ構成について聞かれることが多いのと、ついにTerraform がGAしたのものあり、形に残しておきたかったこともあります。 Version terraform 1.0.6 Repository y-ohgi/blog-terraform-dir ディレクトリ構成 $ tree . |-- Makefile |-- README.md |-- docker-compose.yaml |-- ec2 | |-- main.tf | |-- provider.t