Q7
How does CloudFront securely work with an S3 bucket origin?
💬Answer
Using Origin Access Control (OAC):
- Configure the S3 bucket to be completely private.
- Enable OAC in CloudFront.
- Configure the S3 bucket policy to allow read/GET access only from the CloudFront service principal. This prevents users from bypassing CDN restrictions to access the S3 bucket directly.
Related AWS Questions
View All AWSQuestions →
Created by
Apurv Gujjar
DevOps & Cloud Engineer
Specialized in:DevOpsAWSGCPKubernetesTerraformDocker
View Portfolio