← IaC Academy

Foundations · 3 / 23

Connect identities, not strings

A reference carries a resource identity and a dependency. Repair the membership without guessing an ID.

YOUR TASK

Make this happen

3 steps
  1. Use team.fulfillment.id for teamId.

  2. Use user.alice.id for userId, then inspect the dependency links.

  3. Check and simulate the plan.

Read the starter files

people.cococo

user "alice" {
  email = "alice@example.com"
}

main.cococo

team "fulfillment" {
  name = "Fulfillment"
  description = "Ships customer orders"
}

team_membership "alice" {
  teamId = user.alice.id
  userId = user.alice.id
}