Chapter 8: Terraform Configuration Files

In our last chapter, we discussed Terraform modules, module use cases, and different arguments supported by the modules. We also discussed how we can contribute to the Terraform community by writing Terraform modules and getting them published to the Terraform registry so that everyone is able to consume them.

In this chapter, we are planning to discuss industry best practices for writing Terraform configuration files. While drafting Terraform configuration, we will be using our previous learning such as resources, data sources, locals, variables, and modules. Further, we will be discussing how to write a configuration file for the respective cloud platforms of GCP, Azure, and AWS.

The following topics ...

Get HashiCorp Infrastructure Automation Certification Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.