OAC not working as Expected

0

My OAC for the bucket.

{ "Version": "2012-10-17", "Statement": [ { "Sid": "AllowCloudFrontServicePrincipalReadOnly", "Effect": "Allow", "Principal": { "Service": "cloudfront.amazonaws.com" }, "Action": "s3:GetObject", "Resource": "arn:aws:s3:::<bucket name>/*", "Condition": { "StringEquals": { "AWS:SourceArn": "arn:aws:cloudfront::<account>:distribution/<distribution>" } } } ] }

cj
posta 6 mesi fa187 visualizzazioni
2 Risposte
0
Risposta accettata

Hello.

Your S3 bucket policy appears to be correct based on the bucket policy described in this document.
Have you configured all OAC settings using the configuration steps provided in the document below?
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html

profile picture
ESPERTO
con risposta 6 mesi fa
profile picture
ESPERTO
verificato 2 mesi fa
0

I've stepped away for a couple of months and needed a reminder, my retention curve is a little steeper than I would like. Thanks. I was using a website endpoint, so splitting the data and website and configuring two CloudFronts was an easy fix.

cj
con risposta 6 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande