Build my blog site in HTML, index.html.
Create an S3 bucket the same name as domain name to store portfolio files.
In Route 53, create A record that map to S3 website endpoint and choose the bucket that created in step 2.
Requested a public certificate for your domain in AWS Certificate Manager(ACM).
Setup a CloudFront Distribution. Select S3 Static website hosting bucket endpoint and ACM public certificate.
Go back to Route 53, change the A record that point to S3 website end point to point to CloudFront distribution.
Test website to make sure, it works properly.
Here you have it!
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": [
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::www.goingaws.com/*"
]
}
]
}
<!DOCTYPE html>
<html>
<head>
<title>Goingaws</title>
</head>
<body>
<p>This is an example of a simple HTML static site.</p>
</body>
</html>
Stay up-to-date with new posts