A complete walkthrough for hosting staticsite.bandarkarami.com — from bucket creation to a CloudFront-fronted, SSL-secured domain on Route 53.
GetObject only — never grant write or delete to the public.Attach the following statement under Permissions → Bucket policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadAccess",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::staticsite.bandarkarami.com/*"
}
]
}
Request.Next.Request.staticsite.bandarkarami.com.s3.<region>...Next.Create distribution.Create the DNS records that point the subdomain at the CloudFront distribution: