s3 getobject returns accessdenied from the ec2 role
An error occurred (AccessDenied) when calling the GetObject operation: Access Denied. aws s3 cp from an EC2 instance with an instance profile. The role's policy allows s3:GetObject on arn:aws:s3:::acme-configs/* and the object path is right. The bucket policy has a Deny statement for requests where aws:SecureTransport is false, but we're using HTTPS. aws sts get-caller-identity shows the expected role. What else could deny it?
4 replies