Skip to content

Commit

Permalink
Update workspace condition in member-access module to include sprinkl…
Browse files Browse the repository at this point in the history
…er-development
  • Loading branch information
sukeshreddyg committed Nov 20, 2024
1 parent 8949144 commit 6d90e08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions terraform/environments/bootstrap/member-bootstrap/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ locals {
}

module "member-access" {
count = (local.account_data.account-type == "member" && terraform.workspace != "testing-test" && terraform.workspace != "sprinkler-development") ? 1 : 0
count = (local.account_data.account-type == "member" && terraform.workspace != "testing-test") ? 1 : 0
source = "github.com/ministryofjustice/modernisation-platform-terraform-cross-account-access?ref=6819b090bce6d3068d55c7c7b9b3fd18c9dca648" #v3.0.0
account_id = local.modernisation_platform_account.id
additional_trust_roles = [module.github-oidc[0].github_actions_role, one(data.aws_iam_roles.member-sso-admin-access.arns)]
Expand Down Expand Up @@ -323,7 +323,7 @@ resource "aws_iam_role_policy_attachment" "testing_member_infrastructure_access_

# MemberInfrastructureAccessUSEast
module "member-access-us-east" {
count = (local.account_data.account-type == "member" && terraform.workspace != "testing-test" && terraform.workspace != "sprinkler-development") ? 1 : 0
count = (local.account_data.account-type == "member" && terraform.workspace != "testing-test") ? 1 : 0
source = "github.com/ministryofjustice/modernisation-platform-terraform-cross-account-access?ref=6819b090bce6d3068d55c7c7b9b3fd18c9dca648" #v3.0.0
account_id = local.modernisation_platform_account.id
additional_trust_roles = [module.github-oidc[0].github_actions_role, one(data.aws_iam_roles.member-sso-admin-access.arns)]
Expand Down Expand Up @@ -597,7 +597,7 @@ data "aws_iam_policy_document" "policy" {

# MemberInfrastructureBedrockEuCentral
module "member-access-eu-central" {
count = (local.account_data.account-type == "member" && terraform.workspace != "testing-test" && terraform.workspace != "sprinkler-development") ? 1 : 0
count = (local.account_data.account-type == "member" && terraform.workspace != "testing-test") ? 1 : 0
source = "github.com/ministryofjustice/modernisation-platform-terraform-cross-account-access?ref=6819b090bce6d3068d55c7c7b9b3fd18c9dca648" #v3.0.0
account_id = local.modernisation_platform_account.id
additional_trust_roles = [module.github-oidc[0].github_actions_role, one(data.aws_iam_roles.member-sso-admin-access.arns)]
Expand Down

0 comments on commit 6d90e08

Please sign in to comment.