THE DEV BENCH
🌍 HCL (Terraform)medium

6. Fix the broken HCL

This 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.

How to approach this

HCL is not JSON and not YAML. Strings use DOUBLE quotes (single quotes are a syntax error). Attributes use `key = value` with an equals sign, NOT a colon. And you never put commas between attributes in a block body. Fix those and it parses.

main.tf