Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

botocore.exceptions.ClientError: An error occurred (AccessDenied) when calling the ListPolicies operation #394

Closed
luistm opened this issue May 9, 2018 · 5 comments

Comments

@luistm
Copy link

luistm commented May 9, 2018

After upgrading to 0.3.0 I have the following error:

botocore.exceptions.ClientError: An error occurred (AccessDenied) when calling the ListPolicies operation: User: arn:aws:iam::9999999999:user/user.name is not authorized to perform: iam:ListPolicies on resource: policy path /

I'm using the latest version of MacOS.

Anyone having the same issue ?

@sanathkr
Copy link
Contributor

sanathkr commented May 9, 2018

You need to set AWS Credentials for ‘Sam validate’ command to work. You can set them using the AWS CLI

@luistm
Copy link
Author

luistm commented May 9, 2018

I have credentials configured in ~/.aws/credentials.
`cat ~/.aws/credentials

[default]
aws_access_key_id=123
aws_secret_access_key=321`

@jfuss
Copy link
Contributor

jfuss commented May 9, 2018

@luistm Does that role have access to call iam:ListPolicies?

@luistm
Copy link
Author

luistm commented May 10, 2018

The role was missing the access to iam:ListPolicies.

Thanks

@luistm luistm closed this as completed May 10, 2018
@chkp-dhouari
Copy link

The role was missing the access to iam:ListPolicies.
How do to add that..i am trying to my codebuild service role

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants