Terraform — Multiple Configuration Files Deployment

Photo by Ilya Pavlov on Unsplash

A Single File Deployment Model

Multiple Files Deployment Model

multi-files deployment

Terraform Files Best Practices

  • Use a consistent file structure across your projects.
  • Use modules wherever possible.
  • Use a consistent naming convention.
  • Use a consistent format and style.
  • Hold your state file remotely, not on your local machine.
  • Avoid hardcoding variables.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Rafael Medeiros

Rafael Medeiros

DevOps Engineer| 3x Azure | Terraform Certified | MCT | Security + | Talks about cloud,IAC, Security and other IT Stuff