Skip to content

Commit f08a7a7

Browse files
author
Taniya Mathur
committed
Make PassRolePolicy name unique per stack
- Changed from hardcoded 'IDP-PassRolePolicy' to '-PassRolePolicy' - Resolves AlreadyExists error when deploying multiple stacks - Ensures each stack has its own unique PassRole policy
1 parent 9d92158 commit f08a7a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iam-roles/cloudformation-management/IDP-Cloudformation-Service-Role.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Resources:
109109
PassRolePolicy:
110110
Type: AWS::IAM::ManagedPolicy
111111
Properties:
112-
ManagedPolicyName: IDP-PassRolePolicy
112+
ManagedPolicyName: !Sub '${AWS::StackName}-PassRolePolicy'
113113
Description: Policy to allow passing the IDP CloudFormation service role
114114
PolicyDocument:
115115
Version: '2012-10-17'

0 commit comments

Comments
 (0)