terraform: invite mic92 to terraform cloud
This commit is contained in:
parent
9d71fb3ece
commit
b5d2bfc3a2
1 changed files with 13 additions and 12 deletions
|
@ -6,7 +6,9 @@ locals {
|
||||||
# FIXME: add all the admins of the org
|
# FIXME: add all the admins of the org
|
||||||
# NOTE: there is a limit of 5 members in the free plan
|
# NOTE: there is a limit of 5 members in the free plan
|
||||||
tfe_owners = {
|
tfe_owners = {
|
||||||
zimbatm = "zimbatm@zimbatm.com"
|
mic92 = "joerg@thalheim.io"
|
||||||
|
# FIXME: I need to find the user ID for my account before this can be used
|
||||||
|
# zimbatm = "zimbatm@zimbatm.com"
|
||||||
}
|
}
|
||||||
|
|
||||||
tfe_org = "nix-community" #tfe_organization.nix-community.name
|
tfe_org = "nix-community" #tfe_organization.nix-community.name
|
||||||
|
@ -27,18 +29,17 @@ resource "tfe_team" "owners" {
|
||||||
organization = "nix-community"
|
organization = "nix-community"
|
||||||
}
|
}
|
||||||
|
|
||||||
# FIXME: I need to find the user ID for my account before this can be used
|
resource "tfe_organization_membership" "owners" {
|
||||||
# resource "tfe_organization_membership" "owners" {
|
for_each = local.tfe_owners
|
||||||
# for_each = local.tfe_owners
|
organization = local.tfe_org
|
||||||
# organization = local.tfe_org
|
email = each.value
|
||||||
# email = each.value
|
}
|
||||||
# }
|
|
||||||
|
|
||||||
# resource "tfe_team_organization_member" "owners" {
|
resource "tfe_team_organization_member" "owners" {
|
||||||
# for_each = local.tfe_owners
|
for_each = local.tfe_owners
|
||||||
# team_id = tfe_team.owners.id
|
team_id = tfe_team.owners.id
|
||||||
# organization_membership_id = tfe_organization_membership.owners[each.key].id
|
organization_membership_id = tfe_organization_membership.owners[each.key].id
|
||||||
# }
|
}
|
||||||
|
|
||||||
# Workspaces setup
|
# Workspaces setup
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue