.tf file
A text file ending in .tf that holds Terraform configuration written in HCL.
In more detail
Terraform reads every .tf file in the current directory and treats them as one configuration; there is no main file and no import between them. By convention resources go in main.tf, variables in variables.tf and outputs in outputs.tf, but the names are only for people.
Related terms
- HCL — HashiCorp Configuration Language: the block-based configuration syntax of Terraform files, which end in .tf.
- Terraform configuration — The complete set of .tf files in one directory, which Terraform reads and treats as a single description of infrastructure.
Taught in
- Static IaC Scanning: Linting Terraform with Checkov — Cloud Security & DevSecOps Engineering
- What Is Infrastructure As Code? — Infrastructure as Code with Terraform
- Installing Terraform And Meeting The CLI — Infrastructure as Code with Terraform
- Parameterising With Input Variables — Infrastructure as Code with Terraform
- Return Values: Outputs And Locals — Infrastructure as Code with Terraform
- The Plan That Wanted To Destroy Production — HashiCorp Terraform Associate (004) Exam Prep
- One Hour, No Weights Published — HashiCorp Terraform Associate (004) Exam Prep
- Versions, The Lock File And Provider Aliases — HashiCorp Terraform Associate (004) Exam Prep
- Write, Plan, Apply, And What Init Prepares — HashiCorp Terraform Associate (004) Exam Prep
- Validate, Format, Destroy, And The Flags That Bend A Plan — HashiCorp Terraform Associate (004) Exam Prep
- Sensitive Data, Ephemeral Values And Secrets From Vault — HashiCorp Terraform Associate (004) Exam Prep
- Where Modules Come From — HashiCorp Terraform Associate (004) Exam Prep
- Module Versions: Pin, Upgrade, Re-Initialise — HashiCorp Terraform Associate (004) Exam Prep