Link to home
Create AccountLog in
Avatar of Michael Russell
Michael Russell

asked on

Access a website on s3 via a VPC

I have a static website on AWS and I get how to make it public and see it on the internet.  What I want to do now is make the bucket private but access the website via a vpc.   I have all the components set up (s3, route53, cloudfront, vpc) but I am not sure how to get them connected so I can access the website from a private bucket.  Can someone help me with this?
ASKER CERTIFIED SOLUTION
Avatar of David Favor
David Favor
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
You need to create a VPC endpoint for this communication.
Steps:
Step1: Open the Amazon VPC console and in the left navigation pane, choose Endpoints.
Step 2: Choose Create Endpoint and follow the steps to create an Amazon S3 endpoint in your VPC.

For detailed steps please refer: https://aws.amazon.com/premiumsupport/knowledge-center/s3-private-connection-no-authentication/