S3 hosted website only accessible via Private Endpoint

Viewed 312

I have a task to host a website on S3 which is only accessible via the private link.

I created the website, and I am able to access it using the public link Link --> http://mywebsite.com.s3-website-us-east-1.amazonaws.com

I also created a VPC interface endpoint to access the bucket privately over the VPN. I got the DNS name from the Interface endpoint as *.vpce-xxxxx-xxx.s3.us-east-1.vpce.amazonaws.com

I did the nslookup on the mywebsite.com.vpce-xxxxx-xxx.s3.us-east-1.vpce.amazonaws.com and is getting the correct IP addresses of the ENI's

When I try to access the webite thru the VPC Interface endpoint I am getting bucket does not exist. What I am doing wrong ?

I am using this url to access the bucket.

Link : http://mywebsite.com.vpce-xxxxx-xxx.s3.us-east-1.vpce.amazonaws.com

For this POC my bucket policy is wide open so there is no restriction on the bucket policy.

0 Answers
Related