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 年前檢視次數 380 次
2 個答案
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
已回答 2 年前
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.

已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南