CloudFormation deploying CodePipeline error: User: is not authorized to perform: iam:PassRole on resource: ...
A quick guide to how to fix this cloudformation error: is not authorized to perform: iam:PassRole on resource: The Problem: is not authorized to perform: iam:PassRole on resource: Yesterday I ran into this slightly miss leading error shown below: User: arn:aws:iam::123456789123:user/myUser is not authorized to perform: iam:PassRole on resource: CFDeployRole-lkjh1234lhj1324(Service: AWSCodePipeline; Status Code: 400; Error Code: AccessDeniedException; Request ID: xxxxxxxxx-1111-xxxx-1111-xxxxxxxxx; Proxy: null) I ran into this while deploying an IAM role in CloudFormation and then using it as the RoleARN for one action in a CodePipeline deployed by the same CloudFormation template....