Skip to content

Commit 8626e82

Browse files
committed
Replace legacy CloudFront OAI with OAC
1 parent 1041371 commit 8626e82

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

2-Create_CloudFront_Distribution/README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ In this step you will create an Amazon CloudFront distribution with your Amazon
77
2. Choose **Create Distribution**.
88
3. Under Web, choose **Get Started**.
99
4. For **Origin Domain Name** choose your Amazon S3 Bucket from Step 1.
10-
5. For **Restrict Bucket Access** choose **Yes**.
11-
6. For **Origin Access Identity** choose **Create a New Identity**.
12-
7. For **Grant Read Permissions on Bucket** choose **Yes, Update Bucket Policy**. This will automatically add an Amazon Bucket policy to the your bucket allowing only this CloudFront distribution to read from the bucket.
10+
5. For **Origin access** choose **Origin access control settings**.
11+
6. For **Origin access control** choose **Create control setting**.
12+
7. For **Signing behavior** choose **Sign requests**. Leave **Do not override authorization header** unchecked. Choose **Create** to continue.
1313
8. Leave everything else as default and choose **Create Distribution**.
14-
9. In the distribution details screen, note the **Distribution Status**. Wait for the status to change from **In Progress** to **Deployed**. It can take upward of 5 minutes for the process to complete.
15-
10. Under **Domain Name** copy the FQDN, similar to `dxxxxxxxxxz.cloudfront.net`.
14+
9. In the distribution view, choose **Origins** tab.
15+
10. In the **Origins** tab, select the origin you just created and choose **Edit**.
16+
11. In the **Edit origin** view, choose **Copy policy** to copy the S3 bucket policy to your clipboard.
17+
12. Add the S3 bucket policy to your S3 bucket.
18+
13. In the distribution details screen, note the **Distribution Status**. Wait for the status to change from **In Progress** to **Deployed**. It can take upward of 5 minutes for the process to complete.
19+
14. Under **Domain Name** copy the FQDN, similar to `dxxxxxxxxxz.cloudfront.net`.
1620

1721
### Test Public Distribution
1822
You want to test to verify that the distribution is setup correctly and has access to the Amazon S3 contents.

0 commit comments

Comments
 (0)