Skip to content

Commit feca7a4

Browse files
committed
Fix conflict with IAM role name for additional apps
1 parent 22f377f commit feca7a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iam.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ data "aws_iam_policy_document" "amplify_trust_relationship" {
1717
resource "aws_iam_role" "amplify_codecommit" {
1818
# count = var.create_codecommit_repo ? 1 : 0
1919
count = var.create_codecommit_repo ? 1 : 0
20-
name = var.amplify_codecommit_role_name
20+
name = "${var.amplify_codecommit_role_name}-${var.app_name}"
2121
assume_role_policy = data.aws_iam_policy_document.amplify_trust_relationship.json
2222
managed_policy_arns = ["arn:aws:iam::aws:policy/AWSCodeCommitReadOnly"]
2323
}

0 commit comments

Comments
 (0)