Terraform is an infrastructure-as-code tool created by Hashicorp to write infrastructure configurations in declarative code.
Terraform can manage components such as storage, computing, networking, DNS entries, and the security of your applications.
Terraform workflow has three core stages: write, plan, and apply.
Terraform modules allow you to organize all related resources into reusable packages by grouping them into specific .tf files.
Terraform modules make programmatic infrastructure management easier, they are perfect for large-scale and complex infrastructure deployment.
In this article, we explained how Terraform modules help our infrastructure code become scalable and reusable, especially in complex infrastructure setups.
We also wrapped it up by creating an ec2 instance using Terraform modules on AWS.
A Terraform modules project should have root module, child modules, and published modules(optional).
Terraform workflow involves three steps: write, plan and apply.
Modules in Terraform allow you to organize all related resources into reusable packages by grouping them into specific .tf files.