HCL (Terraform) drills
The language Terraform speaks — blocks, attributes, and references that provision cloud infrastructure everywhere.
Your HCL is parsed by a real (subset) HCL parser that runs entirely in your browser — no server, no Terraform install. If it parses, we check the resulting blocks, attributes, and types. Strings use DOUBLE quotes; single quotes are a syntax error, just like in real HCL.
🌍
HCL (Terraform)
0/6 doneThe language Terraform speaks — blocks, attributes, and references that provision cloud infrastructure everywhere.
1. Your first HCL blockWrite a Terraform resource block:easy2. Attribute typesWrite these four top-level attributes with the RIGHT types (no block needed):easy3. A variable blockDeclare a Terraform input variable:medium4. Lists and mapsWrite a resource `resource "azurerm_network_security_rule" "web" { … }` with:medium5. An Azure resource group + subnet referenceWrite TWO blocks:hard6. Fix the broken HCLThis block has the two most common HCL mistakes made by people coming from JSON/YAML: it uses single quotes, and it puts a colon instead of `=`. Fix it so the resource "aws_s3_bucket" "logs" has bucket = "my-logs" and versioning = true.medium