This repository has been archived on 2026-11-21. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
terraform-git/modules/github_org/modules/team/main.tf
T
unkin-agent d6d608b2a1
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/plan Pipeline was successful
split github_org into team, repository and ruleset submodules
2026-11-10 22:32:17 +11:00

17 lines
369 B
Terraform

resource "github_team" "this" {
name = var.name
description = var.description
privacy = var.privacy
}
resource "github_team_membership" "this" {
for_each = merge(
{ for u in var.members : u => "member" },
{ for u in var.maintainers : u => "maintainer" },
)
team_id = github_team.this.id
username = each.key
role = each.value
}