S3 Bucket (private) → CloudFront Distribution → Users get content fast globally
Without CloudFront, your S3 files are either fully public (risky) or private (not accessible). CloudFront lets you keep S3 private but still serve content to users securely and fast.
This is expected. We will use CloudFront to serve these files, not direct S3 links.
If you just want your full website accessible via S3 without CloudFront:
index.html{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::YOUR-BUCKET-NAME/*"
}
]
}