THE DEV BENCH
🌍 HCL (Terraform)medium

4. Lists and maps

Write a resource `resource "azurerm_network_security_rule" "web" { … }` with: • priority — the number 100 • destination_port_ranges — a list of the two strings "80" and "443" • tags — a map (object) with env = "prod"

How to approach this

HCL has structured values too. A list is `[a, b]` (comma-separated, in brackets). A map/object is `{ key = value }` — same `=` and one-per-line as a block body. So an attribute can hold a whole nested object: `tags = { env = "prod" }`. Note the ports are quoted strings here (port RANGES are strings in this Azure argument).

main.tf