Adding OAI to CloudFront after the distribution is created

0

https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html#private-content-creating-oai-console

If you didn’t create an OAI when you created your distribution...

I try to follow the instructions in the documentation but I can't find the OAI in S3 origin. Is the documentation outdated? I am trying to add OAI after the distribution has been created.

2 Antworten
1

If you didn’t create an OAI when you created your distribution, you basically have two options:

  • create a CloudFront OAI using the CloudFront console - step by step instructions
  • use the CloudFront API. First you would need to create the OAI then add the OAI to your distribution
RoB
beantwortet vor 2 Jahren
0

You can create OAI, and attach it to the origin in Update Origin Functionality.

Note: If you're using the s3 website endpoint as origin, OAI will not be available, you can use s3 rest API endpoint.

beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen