Interview Prep/AWS/DNS, CDN and Messaging

What is Origin Access Control (OAC)?

IntermediateConceptDNS, CDN and Messaging
Answer

OAC lets CloudFront sign requests to a private S3 bucket (SigV4) so objects are not public. The bucket policy allows the cloudfront.amazonaws.com service principal conditioned on AWS:SourceArn equal to your distribution ARN. It replaces the older Origin Access Identity (OAI) and supports SSE-KMS and all Regions.

{"Effect":"Allow","Principal":{"Service":"cloudfront.amazonaws.com"},"Action":"s3:GetObject",
 "Resource":"arn:aws:s3:::site/*",
 "Condition":{"StringEquals":{"AWS:SourceArn":"arn:aws:cloudfront::123456789012:distribution/E123"}}}
aws All AWS questions Roadmap: AWS core services

More on DNS, CDN and Messaging