← IaC Academy

Foundations · 2 / 23

Add an existing person to a team

Look up Alice by email and connect her to Fulfillment with a managed membership. Keep ownership of her account outside IaC.

YOUR TASK

Make this happen

4 steps
  1. Keep the existing Alice lookup in people.cococo: alice@example.com.

  2. In main.cococo, add a team_membership linking team.fulfillment.id and user.alice.id.

  3. Keep the Fulfillment team. Create no service account and leave Alice unchanged.

  4. Choose Check solution, then Apply in simulation. Confirm the second plan needs no changes.

Read the starter files

people.cococo

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

main.cococo

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

# Add a team_membership block below.