Terraform file and folder structure for multiple AWS environments and regions and accounts

Make your life easier by starting with the best folder structure for your use-case Most companies and ops teams will face the challenge in managing multiple environments (e.g. development, staging, pre-production, production) for their applications. Sometimes even in multiple regions. So you better think about how you organize all these files in terraform. Terraform doesn’t care what’s in what file, as long as the file ends with .tf in your current directory. You can work with symlinks from other folders to share configurations or define the ssh key of the admin individually per team member by adding the file to .gitignore. I assume you work with git (or some version control system), if not: lol! ...

October 29, 2020 · 3 min · Seb