Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (1.4k points)

I'm trying to restrict the access to the contents delivered in AWS CloudFront. Please explain how can I do this.

1 Answer

0 votes
by (2.6k points)
edited by

You can restrict the access of contents delivered in CloudFront using origin access identity, bucket policy and IAM. We can directly implement using origin access identity but the AWS S3 bucket is used as the origin for CloudFront distribution, it either allows public access, or restricts them.

The following policies are attached to an IAM identity.

1. Click the ID of Distribution with S3 origin.

2. Choose the settings of Distribution.

3. In Origins tab, click on origin and edit.

4. For restricting the bucket access, select ‘YES’.

Also, learn more about AWS, and become a master by enrolling for Intellipaat's AWS Certification Training!

For more information, check out this AWS Tutorial.

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer

Browse Categories

...