How to update a CloudFront origin access identity

0 votes

Hi Team,

I have created a CloudFront origin access identity in AWS. I want to update the CloudFront origin access identity. How can I do that?

Nov 3, 2020 in AWS by akhtar
• 38,260 points
1,252 views

1 answer to this question.

0 votes

Hi@akhtar,

The following example updates the origin access identity with the ID. The only field that you can update is the OAI's Comment. To update an OAI, you must have the OAI's ID and ETag.

$ aws cloudfront update-cloud-front-origin-access-identity \
    --id E74FTE3AEXAMPLE \
    --if-match E2QWRUHEXAMPLE \
    --cloud-front-origin-access-identity-config \
        CallerReference=cli-example,Comment="Example OAI Updated"
answered Nov 3, 2020 by MD
• 95,460 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,260 points
965 views
0 votes
1 answer

How to update a CloudFront distribution's default root object?

Hi@akhtar, The following example updates the default root ...READ MORE

answered Nov 3, 2020 in AWS by MD
• 95,460 points
1,773 views
0 votes
1 answer

How to list CloudFront origin access identities?

Hi@akhtar, The following example gets a list of ...READ MORE

answered Nov 3, 2020 in AWS by MD
• 95,460 points
660 views
0 votes
1 answer

How to Restrict AWS Resource Access to a Specific IAM Role

You can use iam get-role to find the Role-Id and add ...READ MORE

answered Aug 13, 2018 in AWS by Archana
• 4,170 points
1,180 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to creates a new origin access identity in Cloudfront?

Hi@akhtar, If you're using Amazon S3 for your ...READ MORE

answered Nov 2, 2020 in AWS by MD
• 95,460 points
757 views
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,460 points
4,128 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