diff --git a/teams.tf b/teams.tf index d2923d0..cee4bb4 100644 --- a/teams.tf +++ b/teams.tf @@ -4,5 +4,6 @@ resource "grafana_team" "this" { org_id = local.org_id name = each.value.name email = each.value.email + members = each.value.members ignore_externally_synced_members = true } diff --git a/variables.tf b/variables.tf index a6774bd..a8299b4 100644 --- a/variables.tf +++ b/variables.tf @@ -49,8 +49,9 @@ variable "members" { variable "teams" { type = map(object({ - name = string - email = optional(string) + name = string + email = optional(string) + members = optional(list(string), []) })) default = {} sensitive = false