hashicorp / terraform-provider-tfe

Official HCP Terraform and Terraform Enterprise provider, maintained by HashiCorp. Provision HCP Terraform or Terraform Enterprise - with Terraform!
https://registry.terraform.io/providers/hashicorp/tfe
Mozilla Public License 2.0
161 stars 154 forks source link

broader workspace team access data source #370

Open devopsrick opened 2 years ago

devopsrick commented 2 years ago

The tfe_team_access data resource in its current form is very limited as you must know the team id and the workspace id to look up team access on a workspace. It would be very useful to be able to see all team access on a given workspace.

Our current use-case is that we manage our VCS permissions with terraform and we would like to be able to programmatically match permissions on the repository to the permissions on the workspaces (i.e. read/write/admin) but we have no easy way to loop through all teams/workspaces currently.

eriksw commented 2 years ago

Related: https://github.com/hashicorp/terraform-provider-tfe/issues/214