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 2, 2020 in AWS by akhtar
• 38,170 points
443 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 2, 2020 by MD
• 95,060 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,170 points
57 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 2, 2020 in AWS by MD
• 95,060 points
140 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 2, 2020 in AWS by MD
• 95,060 points
81 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,150 points
497 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 1, 2020 in AWS by MD
• 95,060 points
99 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,060 points
84 views