What are the main block types in HCL?
BeginnerConceptIaC and Terraform Fundamentals
Answer
terraform, provider, resource, data, variable, locals, output, module, plus newer ones: moved, import, removed, check and ephemeral. Nested blocks inside resources (such as ingress in a security group) are provider-defined. Each top-level block has labels, for example resource "aws_vpc" "main" has type and name.
More on IaC and Terraform Fundamentals
What is Infrastructure as Code and why do teams use it?BeginnerWhat is the difference between declarative and imperative infrastructure tools?BeginnerWhat is Terraform and what problem does it solve?BeginnerWhat is HCL and can Terraform use anything else?BeginnerWhich files make up a typical Terraform root module?BeginnerHow does Terraform work internally?Advanced