Restrict S3 access from everywhere other than the CloudFront distribution - AWS

0 votes
I want to access the S3 bucket only from the CloudFront distribution. I want to restrict the access to that particular bucket from everywhere else. How do I do this?
Oct 16, 2019 in AWS by Hannah
• 18,520 points
1,305 views

1 answer to this question.

0 votes

To restrict the access to only the CloudFront, add an origin access identity to your distribution. Then go ahead and review your bucket policy for the following pointers:

  • Only the OAI can access the bucket
  • CloudFront can access the bucket
  • Users cannot access the bucket in any way.
answered Oct 17, 2019 by Tanmay

Related Questions In AWS

+1 vote
2 answers
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

how to access AWS S3 from Lambda in VPC

With boto3, the S3 urls are virtual by default, ...READ MORE

answered Sep 28, 2018 in AWS by Priyaj
• 58,020 points
10,121 views
0 votes
1 answer

How is AWS DeepLens different from other cameras in the market?

Here's an abstract from AWS Docs: "AWS ...READ MORE

answered Jul 4, 2019 in AWS by Archana
• 5,640 points

edited Jul 4, 2019 by Archana 665 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP