← IaC Academy

Values and collections · 9 / 23

Parameterize the stack

Declare a stack setting and use its value without duplicating it.

YOUR TASK

Make this happen

3 steps
  1. Set the default of team_name to Fulfillment.

  2. Keep name = var.team_name.

  3. Check and simulate.

Read the starter files

main.cococo

variable "team_name" {
  default = "TODO"
}

team "fulfillment" {
  name = var.team_name
  description = "Ships customer orders"
}