Fixing AccessDeniedException user is not authorized to perform: codepipeline:ListPipelines on resource: * because no identity-based policy allows the codepipeline:ListPipelines action
I was trying to access code pipeline once, but it threw an error at me.
AccessDeniedException
User: arn:aws:iam::1234567890:user/cynefrithe is not authorized to perform: codepipeline:ListPipelines on resource: arn:aws:codepipeline:ap-northeast-1:1234567891:* because no identity-based policy allows the codepipeline:ListPipelines action
To solve this error, login as an ROOT, click on IAM > users.
Then click on the name of the group, in my case the name of the group is developer.
You will then see a page with a list of users and permissions. Click on permissions .
Then click on Add permissions > Attach policies.
Filter the permissions using the keyword pipeline. You will see a list of permissions related to code pipeline. If you scan the permissions one by one, you'll be able to check the actions that they provide. In this case, our error had something to do with codepipeline:ListPipelines so we should be looking for that permission here.
It is found in the AWSCodePipeline_ReadOnlyAccess permission, click on the check box and click on Add permissions.
After adding this permission, your user should now be able to see the list of pipelines with no problems.
Comments
Post a Comment