From b5d2bfc3a27e4a21d39754520bbcb22b8ff93c83 Mon Sep 17 00:00:00 2001 From: zimbatm Date: Sun, 22 Jan 2023 12:17:49 +0100 Subject: [PATCH 1/2] terraform: invite mic92 to terraform cloud --- terraform/terraform_cloud.tf | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/terraform/terraform_cloud.tf b/terraform/terraform_cloud.tf index f696a68b..88e0d619 100644 --- a/terraform/terraform_cloud.tf +++ b/terraform/terraform_cloud.tf @@ -6,7 +6,9 @@ locals { # FIXME: add all the admins of the org # NOTE: there is a limit of 5 members in the free plan 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 @@ -27,18 +29,17 @@ resource "tfe_team" "owners" { organization = "nix-community" } -# FIXME: I need to find the user ID for my account before this can be used -# resource "tfe_organization_membership" "owners" { -# for_each = local.tfe_owners -# organization = local.tfe_org -# email = each.value -# } +resource "tfe_organization_membership" "owners" { + for_each = local.tfe_owners + organization = local.tfe_org + email = each.value +} -# resource "tfe_team_organization_member" "owners" { -# for_each = local.tfe_owners -# team_id = tfe_team.owners.id -# organization_membership_id = tfe_organization_membership.owners[each.key].id -# } +resource "tfe_team_organization_member" "owners" { + for_each = local.tfe_owners + team_id = tfe_team.owners.id + organization_membership_id = tfe_organization_membership.owners[each.key].id +} # Workspaces setup From b4ae4bc2ccff21a1f0357bf1ef40823fdd989b46 Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Mon, 23 Jan 2023 13:17:38 +1000 Subject: [PATCH 2/2] terraform: invite zowoq to terraform cloud --- terraform/terraform_cloud.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/terraform/terraform_cloud.tf b/terraform/terraform_cloud.tf index 88e0d619..05772bfb 100644 --- a/terraform/terraform_cloud.tf +++ b/terraform/terraform_cloud.tf @@ -9,6 +9,7 @@ locals { mic92 = "joerg@thalheim.io" # FIXME: I need to find the user ID for my account before this can be used # zimbatm = "zimbatm@zimbatm.com" + zowoq = "zowoq.gh@gmail.com" } tfe_org = "nix-community" #tfe_organization.nix-community.name