Terraform Static website with custom domain name

Automate website hosting on AWS using Terraform with S3, CloudFront, Route 53, and ACM Certificate

S3_Bucket

This is the S3 bucket after deploying

S3 Bucket

Certificate

This is the Certificate after deploying

Certificate

Cloudfront

This is the Cloudfront distribution after deploying

Cloudfront

Route53

This is the hosted zones in route53 after deploying

hosted zones

Website

This is the website using cloudfront url after deploying

website_cloudfront

Website using custom domain name

This is the website using my custom domain name after deploying

website_domain

I also attached the successful deployment snapshot after running the command terraform apply

success