Before you start, make sure you have the following ready:
Create an S3 Bucket:
my-website-bucket
).Configure Bucket Policy:
YOUR_BUCKET_NAME
):{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::YOUR_BUCKET_NAME/*"
}
]
}
Enable Static Website Hosting:
index.html
) and error document (optional). (set index.html
if using SPA)ci-cd-user
).