Learn how to deploy a static website in under 5 minutes using Amazon Simple Storage Service.
Log in to the AWS Management Console, open S3, and click Create bucket. Name it uniquely (e.g., my-first-aws-website-123).
Under the bucket's Properties tab, scroll down to Static website hosting, select Enable, and set index.html as your index document.
Under Permissions, uncheck Block all public access, then paste this JSON policy into the Bucket Policy editor:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::YOUR-BUCKET-NAME/*"
}
]
}