Create an S3 bucket
-
Create the bucket, make sure to enable public access
-
Set the bucket policy (replace
mykb.mife.ca
with your bucket name):
{
"Version":"2012-10-17",
"Statement":[{
"Sid":"PublicReadGetObject",
"Effect":"Allow",
"Principal": "*",
"Action":["s3:GetObject"],
"Resource":["arn:aws:s3:::mykb.mife.ca/*"
]
}
]
}
- Enable website access for this bucket. Specify 404.html as the error document (this is Hugo-specific)