Chapter 4: Deep Dive into Terraform
In the previous chapter, we discussed Terraform providers, which mainly help Terraform to understand which API to use for deployment. We also covered Terraform resources, which help you to consume the provider's service API to provision the respective services. Moving on, we discussed taking input from users by defining Terraform variables, which make Terraform code reusable. We also saw how you can validate the output of the resources that you have provisioned or that already exist using Terraform output, and finally, we discussed how you can use already-existing resources by calling the Terraform data block in your configuration code.
In this chapter, we are going to discuss the Terraform backend, which helps you to store your Terraform tfstate
file. Furthermore, we will be covering Terraform provisioners, which help you to execute script within the Terraform configuration code. Later, we will be discussing different Terraform loops (iterations...