hosting_static_page
hosting_static_page
static content. Follow these steps to set up and host a static web page on S3:
json
Copy code
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::your-bucket-name/*"
}
]
}
Replace your-bucket-name with the name of your bucket.
Save the policy and confirm any warnings about public access.
In your domain's DNS settings (in Route 53 or your DNS provider), create an Alias
record pointing to your S3 website endpoint.
Update the DNS settings as needed, then you’ll be able to access the site with your
custom domain.
Your static website should now be live and accessible to the public!