Skip to content

Commit 4f06b9d

Browse files
committed
add passrole permission for nested stacks
1 parent cffc4e0 commit 4f06b9d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sdlf-cicd/template-cicd-domain-roles.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,13 @@ Resources:
343343
- lambda.amazonaws.com
344344
- lakeformation.amazonaws.com
345345
- events.amazonaws.com
346+
- Effect: Allow
347+
Action: iam:PassRole
348+
Resource: !Sub arn:${AWS::Partition}:iam::${AWS::AccountId}:role/sdlf-cicd-domain # nested stacks
349+
Condition:
350+
StringEquals:
351+
"iam:PassedToService":
352+
- cloudformation.amazonaws.com
346353
- Effect: Allow
347354
Action:
348355
- iam:DeleteRole

0 commit comments

Comments
 (0)