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 in AWS by Hannah
• 16,720 points
18 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 16 by Tanmay

Related Questions In AWS

+1 vote
2 answers
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
• 56,940 points
2,155 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 3 in AWS by Archana
• 5,560 points

edited Jul 3 by Archana 24 views