How to creates a new origin access identity in Cloudfront

0 votes

Hi Team,

I have created one S3 bucket. I want to create a new origin access identity in Cloudfront for the S3 bucket. So that user can access the data without any delay. How can I do that?

Nov 1, 2020 in AWS by akhtar
• 38,180 points
149 views

1 answer to this question.

0 votes

Hi@akhtar,

If you're using Amazon S3 for your origin, you can use an origin access identity to require users to access your content using a CloudFront URL instead of the Amazon S3 URL.

$aws cloudfront create-cloud-front-origin-access-identity --cloud-front-origin-access-identity-config CallerReference="cli-example",Comment="Example OAI"
answered Nov 1, 2020 by MD
• 95,240 points

Related Questions In AWS

0 votes
1 answer

How to get a CloudFront origin access identity?

Hi@MD, The following example gets the CloudFront origin ...READ MORE

answered Nov 2, 2020 in AWS by akhtar
• 38,180 points
136 views
+1 vote
1 answer

How to configure a Lambda function to access resources in a VPC?

Hi@akhtar, You can configure a Lambda function to ...READ MORE

answered Aug 27, 2020 in AWS by MD
• 95,240 points
688 views
0 votes
1 answer

Creates a new web distribution in Cloudfront.

Hi@akhtar, You can create a CloudFront distribution to ...READ MORE

answered Nov 1, 2020 in AWS by MD
• 95,240 points
60 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to delete an origin access identity in Cloudfront?

Hi@akhtar, You can delete your origin access identity ...READ MORE

answered Nov 2, 2020 in AWS by MD
• 95,240 points
169 views
0 votes
1 answer

How to update a CloudFront origin access identity?

Hi@akhtar, The following example updates the origin access ...READ MORE

answered Nov 2, 2020 in AWS by MD
• 95,240 points
501 views