terraform-provider-github
terraform-provider-github copied to clipboard
[FEAT]: github_team_members support for no team members
Describe the need
We have teams where we want to enforce no direct members (membership through child teams only).
We are unable to enforce this as we cannot use github_team_members resources with no members present.
The only way to ensure there are no members would be to constantly import the team_members and then delete the resource, which feels wrong.
Proposal
resource "github_team_members" "no_team_members" {
team_id = github_team.some_team.id
}
Alternative
resource "github_team_members" "no_team_members" {
team_id = github_team.some_team.id
no_members = true # just in case we want it explicit
}
SDK Version
No response
API Version
No response
Relevant log output
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct