🌍 HCL (Terraform)easy
1. Your first HCL block
Write a Terraform resource block: resource "local_file" "hello" { … } Inside it, set two attributes: • filename — the string "./hello.txt" • content — the string "hi there"
How to approach this
HCL is built from BLOCKS and ATTRIBUTES. A block is `type "label" "label" { … }` — here the type is `resource` and the two labels name the resource type (`local_file`) and a local name (`hello`). Inside, attributes are `name = value`, one per line — note `=`, not a colon, and NO commas between them. Strings use double quotes.
main.tf