medium10 pts · first answer countsiamvpc-networkingtroubleshooting
AccessDenied from a VPC endpoint policy
An instance role allows s3:* and the bucket policy allows the role. The instance reaches S3 through a gateway VPC endpoint. Uploads fail with the error below. What should you change?
An error occurred (AccessDenied) when calling the PutObject operation: User: arn:aws:sts::111122223333:assumed-role/app-role/i-0abc12 is not authorized to perform: s3:PutObject on resource: "arn:aws:s3:::app-uploads/a.csv" because no VPC endpoint policy allows the s3:PutObject action
Discussion 0
Join free to post in the discussion.
Related questions
- Principle of least privilegeCloud Engineer
- What makes a subnet public?Cloud Engineer
- Usable IPs in a /24 subnetCloud Engineer
- Which identity is the AWS CLI using?Cloud Engineer
- Protecting the root userCloud Engineer
- Security groups vs network ACLsCloud Engineer
- Outbound internet from a private subnetCloud Engineer
- Giving a VM access to cloud APIsCloud Engineer