Skip to main content

8. Meta-arguments: count, for_each, depends_on, lifecycle

Multiplying resources, explicit dependencies, and lifecycle controls.

⏱ ≈ 20 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 · 20min

Goal

Use the for_each meta-argument to create three buckets from one resource block.

Requirements

  • One aws_s3_bucket resource using for_each
  • It must create exactly: certland-labs-alpha, certland-labs-beta, certland-labs-gamma

🔒 Unlock the course to run this lab.