S3 gateway endpoint unable to upload file to S3

0

SCENARIO: Configure an Amazon S3 gateway endpoint in a VPC. The private subnets inside the VPC do not have outbound internet access. Log in to an Amazon EC2 instance in one of the private subnets and cannot upload a file to an Amazon S3 bucket in the same AWS Region. QUESTION: Does this relate to subnet route table issues of the gateway endpoint or the bucket policy issues?

asked 23 days ago147 views
2 Answers
0

What is the error you are getting when you fail to upload the file to the bucket?

If it's a Forbidden 403 status code error, its a policy issue (could be either EC2 instance role's policy, endpoint policy or bucket policy).

If it's a timeout it can be missing route or missing outbound security group rule associated with the EC2 instance.

profile pictureAWS
EXPERT
answered 23 days ago
profile picture
EXPERT
reviewed 18 days ago
0

You can work backwards from the error message you are getting. Here is the re:post link - https://repost.aws/knowledge-center/connect-s3-vpc-endpoint that you can refer to, it gives a detailed troubleshooting steps for this scenario.

profile pictureAWS
H_Shah
answered 23 days ago
profile picture
EXPERT
reviewed 18 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions