If you’re using Amazon CloudFront for serving your web content, you can restrict access to these contents.
This will ensure that your media files will be only accessible via your Amazon CloudFront distribution.
But for that, you will have to create an Origin Access Identity and give the bucket access to your Amazon CloudFront distribution.
Creating an Origin Access Identity is optional, so you can create it at any time you want and you can add it to your CloudFront distribution.
Today, you’ll learn to create an Amazon CloudFront Origin Access Identity.
Also, lassen Sie uns anfangen.
Create An Amazon CloudFront Origin Access Identity #
Follow these simple steps to create an Amazon CloudFront Origin Access Identity:
1. Login to your AWS console CloudFront home page.
2. Under the Security menu, select Origin access identity.
It will take you to the Origin Access Identity page.
3. Now, click on the Create Origin Access Identity button, enter a comment that will indicate which site or bucket you want to use.

4. Click the Create button.

That’s it. Your Origin Access Identity is ready to use.