enthought / terraform-modules

Reusable terraform modules
BSD 3-Clause "New" or "Revised" License
26 stars 17 forks source link

managed_repository tries to create multiple teams with the same name #11

Closed dpinte closed 5 years ago

dpinte commented 5 years ago

git version: 1.0.1

From https://github.com/enthought/terraform/pull/457#issuecomment-452698567, the team definitions must be fixed not to rely on the count attribute as they have a fixed name. For example:

resource "github_team" "managed_repository-external_pull" {
  count       = "${length(var.push_teams_external)}"
  name        = "${var.project_name}-external_pull"
  description = "${var.project_name} external pull access team"
  privacy     = "closed"
}
dbolack commented 5 years ago

This has been resolved.