Chapter 7: Terraform Modules
In our previous chapter, we discussed the core workflow of the Terraform tool, which consists of creating a Terraform configuration file (write
), previewing the changes (terraform plan
), and then finally committing those changes to the target environment (terraform apply
). Once we are done with the creation of the resources, we might be required to get rid of those infrastructures (terraform destroy
). In a nutshell, we discussed complete Terraform core workflows, which mainly consist of terraform init
, terraform plan
, terraform apply
, terraform destroy
, and the respective subcommands and their outputs.
In this chapter, we will discuss Terraform modules for Amazon Web Services (AWS), Azure, and Google Cloud Platform (GCP) cloud providers. From this chapter, you will learn how you can write modules and how you can publish and consume them. Learning about Terraform modules is important as this will help you to deploy large enterprise-scalable and repeatable...