Interview Prep/Terraform/IaC and Terraform Fundamentals

What does the `terraform` block do?

BeginnerConceptIaC and Terraform Fundamentals
Answer

It holds settings for Terraform itself: required_version, required_providers and the backend or cloud block.

terraform {
  required_version = ">= 1.9.0"
  required_providers {
    aws = { source = "hashicorp/aws", version = "~> 5.0" }
  }
}
All Terraform questions Roadmap: Terraform

More on IaC and Terraform Fundamentals