Skip to main content

7. Local values, expressions & built-in functions

locals, for expressions, conditionals, and the function library.

⏱ ≈ 25 min this module · 📚 ≈ 5.8 h full track

🔒 Unlock this course to read the material and run the labs.

See options to unlock →
🔒 The written material unlocks with the course.
🧪 Hands-on lab Medium · 150 XP · 25min

Goal

Use a locals block and built-in functions to compute the bucket tags instead of hardcoding them.

Requirements

  • A locals block that builds common_tags with merge(...)
  • The Env tag must be uppercased with upper("dev")DEV
  • A ManagedBy = "terraform" tag
  • Apply the tags to a bucket named certland-labs-locals

🔒 Unlock the course to run this lab.