Understanding Terraform configuration files
We keep mentioning Terraform configuration files throughout the book but so far we haven't had a chance to discuss this in detail. We will get a thorough understanding of Terraform configuration files in this chapter.
A Terraform configuration file is a well-defined and structured file written in the Terraform language that tells Terraform how to manage the complete infrastructure. A Terraform configuration file can have one or more files and directories.
A Terraform configuration file can be written in two formats. A Terraform configuration file written with HashiCorp configuration language is the recommended approach for the writing configuration files and it ends with a file extension, that is, .tf
. There is one more way of writing a Terraform configuration file, which ends with .tf.json
. The configuration files that end with .tf
are human-readable and the JSON
format is machine-readable. Every cloud provider, such as AWS...