Hosting a Static Website on AWS with Terraform: My Tamil Nadu Tour Guide Project Software developer Divyapriya S built the Tamil Nadu Tour Guide, a static website hosted on Amazon S3 and provisioned entirely with Terraform, including an AI guide powered by PartyRock. The Terraform configuration creates nine resources — a uniquely named S3 bucket, public access settings, website configuration, a public-read bucket policy and per-file object uploads — and can be torn down with a single terraform destroy. By Divyapriya S — Software Developer | Cloud Engineer One command to build a website on AWS, and one command to remove it. That idea — Infrastructure as Code — is at the heart of my latest project. I built the Tamil Nadu Tour Guide , a static website that helps visitors explore places in Tamil Nadu by type, plan a quick trip, discover local food, and open an AI guide built with PartyRock. Instead of clicking through the AWS console, I managed everything with Terraform . Live website: http://tamilnadu-tour-guide-6e9ce982.s3-website.ap-south-1.amazonaws.com/ places http://tamilnadu-tour-guide-6e9ce982.s3-website.ap-south-1.amazonaws.com/ places Source code: https://github.com/DivyaPriya250413/tn-tour-guide-terraform https://github.com/DivyaPriya250413/tn-tour-guide-terraform git clone . .tf files and ran the workflow: init → validate → plan → apply . index.html , CSS and JavaScript — no web server needed. random id.suffix — an 8-character hex suffix, because S3 bucket names must be globally unique aws s3 bucket.site — the bucket tamilnadu-tour-guide-6e9ce982 aws s3 bucket public access block.site — relaxes Block Public Access for this bucket so the public policy can work aws s3 bucket website configuration.site — enables website hosting with error.html aws s3 bucket policy.public read — allows public s3:GetObject so visitors can read the site aws s3 object.site files — uploads each file in website/ with the correct content type, re-uploading only changed files The result of terraform apply : Apply complete Resources: 9 added, 0 changed, 0 destroyed. bucket name = "tamilnadu-tour-guide-6e9ce982", website url = " http://tamilnadu-tour-guide-6e9ce982.s3-website.ap-south-1.amazonaws.com http://tamilnadu-tour-guide-6e9ce982.s3-website.ap-south-1.amazonaws.com " terraform.tfstate lets terraform destroy removes everything Terraform created, and stopping the EC2 instance keeps costs low. Visit the Tamil Nadu Tour Guide here: http://tamilnadu-tour-guide-6e9ce982.s3-website.ap-south-1.amazonaws.com/ places http://tamilnadu-tour-guide-6e9ce982.s3-website.ap-south-1.amazonaws.com/ places The full step-by-step guide, with every command explained, is in my PDF guide: Hosting a Static Website on AWS with Terraform — The Tamil Nadu Tour Guide site, built with Amazon S3, EC2 and GitHub https://github.com/DivyaPriya250413/tn-tour-guide-terraform/blob/main/Tamil-Nadu-Tour-Guide-AWS-Terraform-Guide.pdf