Skip to content
Discussion options

You must be logged in to vote

Hi there @entest-hai - I was able to get this working. Your error is that arn:aws:sts::123456:assumed-role/cdk-hnb659fds-deploy-role-123456-ap-southeast-1/aws-cdk-haitran is not authorized to perform iam:PassRole - so you need to add those permissions to the deploy role, not the CloudFormation execution role. Here's what I was getting when I tried this:

CdkTestingFolderStack failed: AccessDenied: User: 
arn:aws:sts::570774169190:assumed-role/cdk-hnb659fds-deploy-role-570774169190-us-east-1/aws-cdk-node is not
authorized to perform: iam:PassRole on resource: arn:aws:iam::570774169190:role/test1234 because no
identity-based policy allows the iam:PassRole action

In my case, it was the cdk-h…

Replies: 13 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@n-miles
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@vechorko
Comment options

Comment options

You must be logged in to vote
2 replies
@kellertk
Comment options

@kellertk
Comment options

Answer selected by peterwoodworth
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants
Converted from issue

This discussion was converted from issue #18830 on March 31, 2022 23:44.