Table of contents
Tools Used:
1. AWS S3 bucket.
2. AWS Route53
Implementation:
1. Created an S3 bucket with public access.
2. Upload the code to the bucket.
3. Host it by enabling, “Static Website Hosting”.
4. Give access to the objects that are in the S3 bucket, by editing “Bucket Policy”.
5. It will generate a link to access the static website.
6. Using Route53, we can connect it to a specific domain name.
Changes Bucket policy
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "publicReadForGetBucketObjects",
"Effect":"Allow",
"Principal": "*",
"Action" :"s3:GetObject",
"Resource":"arn:aws:s3:::akash6474/*"
}
]
}
enable static web hosting
Thank you for enjoying my DevOps blog! Your positive response fuels my passion to dive deeper into technology and innovation.
Stay tuned for more captivating DevOps articles, where we'll explore this dynamic field together. Follow me on Hashnode and connect on LinkedIn (https://www.linkedin.com/in/akash-singh-70o/) for the latest updates and discussions.