What is the purpose of using Terraform modules ?


In order to easily maintain, manage and scale their infrastructure, DevOps teams design their infrastructure using modular and reusable components called Terraform modules. Terraform modules allow you to easily share and reuse the same components across multiple use cases and environments. It also helps enforce a standardised approach of defining resources and adopting best practices across your organisation. Not only does consistency ensure best practices are followed, it also helps to enforce compliant deployment, avoid accidental misconfigurations which could lead to costly errors.