Skip to content

Commit

Permalink
fix(project): use count instead of for_each
Browse files Browse the repository at this point in the history
  • Loading branch information
erikreinert committed Sep 23, 2023
1 parent 08329b7 commit 2ffe7a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ resource "tfe_project" "self" {
}

resource "tfe_team_project_access" "self" {
for_each = toset(var.team_ids)
count = length(var.team_ids)

access = "maintain"
project_id = tfe_project.self.id
team_id = each.key
team_id = var.team_ids[count.index]
}

0 comments on commit 2ffe7a7

Please sign in to comment.