Skip to content

Commit

Permalink
Added Count variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sukeshreddyg committed Feb 6, 2024
1 parent 2f56fc6 commit acf47ad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions terraform/environments/bootstrap/member-bootstrap/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -572,19 +572,21 @@ resource "aws_iam_policy" "member-access-eu-central" {

resource "aws_ssm_parameter" "environment_management_arn" {
#checkov:skip=CKV_AWS_337: Standard key is fine here
count = local.account_data.account-type == "member" ? 1 : 0
name = "environment_management_arn"
type = "SecureString"
value = data.aws_secretsmanager_secret.environment_management.arn
tags = local.tags
tags = local.tags
}

# Create a parameter for the modernisation platform account id that can be used
# by providers in member accounts to assume a role in MP

resource "aws_ssm_parameter" "modernisation_platform_account_id" {
#checkov:skip=CKV_AWS_337: Standard key is fine here
count = local.account_data.account-type == "member" ? 1 : 0
name = "modernisation_platform_account_id"
type = "SecureString"
value = local.environment_management.modernisation_platform_account_id
tags = local.tags
tags = local.tags
}

0 comments on commit acf47ad

Please sign in to comment.