Reputation: 7028
I am using IAM Users credentials who has following policy attached to it
AmazonS3FullAccess
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:*",
"Resource": "*"
}
]
}
But gets Access Denied
# aws s3 ls
An error occurred (AccessDenied) when calling the ListBuckets operation: Access Denied
I do see credentials I set using aws configure
are in ~/.aws/credentials
also aws sts get-caller-identity
correct user.
I don't understand what I am missing here.
Upvotes: 0
Views: 4929
Reputation: 7028
I figure-out this was because of MFA policy attached to this user. After removing this policy it worked.
Upvotes: 1