← IaC Academy

Foundations · 4 / 23

Organize a project across files

Split declarations into files without changing their identities or dependencies.

YOUR TASK

Make this happen

3 steps
  1. Repair the team reference in membership.cococo.

  2. Keep the team in teams/team.cococo and the user in people.cococo.

  3. Check and simulate the same three-resource graph.

Read the starter files

membership.cococo

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

teams/team.cococo

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

people.cococo

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