Skip to content

Instantly share code, notes, and snippets.

View alexbasista's full-sized avatar

Alex Basista alexbasista

  • HashiCorp
  • Cleveland, OH
View GitHub Profile
@phinze
phinze / teams-to-workspaces.tf
Last active June 21, 2022 04:23
An example of how you could map teams to many workspaces using the Terraform Enterprise provider
# Start w/ a data source to get a list of all the workspaces
# See: https://www.terraform.io/docs/providers/tfe/d/workspace_ids.html
data "tfe_workspace_ids" "all-workspaces" {
names = ["*"]
organization = "my-org-name"
}
# Look up the ID of the teamn you're looking to map
# See: https://www.terraform.io/docs/providers/tfe/d/team.html
data "tfe_team" "architects" {