Skip to content

Commit

Permalink
Deduplicate role names
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-elliott-nhsd committed Oct 15, 2024
1 parent 39adc13 commit 184a98a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ resource "aws_cognito_identity_pool_roles_attachment" "main" {
}

resource "aws_iam_role" "identity_pool_authenticated_role" {
name = "${local.csi}-cognito-identity"
name = "${local.csi}-identity-pool-authenticated"
assume_role_policy = data.aws_iam_policy_document.identity_pool_authenticated_assume_role_policy.json
}

Expand Down Expand Up @@ -61,7 +61,7 @@ data "aws_iam_policy_document" "identity_pool_authenticated_assume_role_policy"
}

resource "aws_iam_role" "identity_pool_unauthenticated_role" {
name = "${local.csi}-cognito-identity"
name = "${local.csi}-identity-pool-unauthenticated"
assume_role_policy = data.aws_iam_policy_document.identity_pool_unauthenticated_assume_role_policy.json
}

Expand Down

0 comments on commit 184a98a

Please sign in to comment.