This repository contains Terraform code to host a static website on AWS S3.
- Terraform: Infrastructure as Code (IaC) tool for provisioning and managing AWS resources.
- AWS S3: Simple Storage Service for storing and serving static website content.
- CloudFront: Content Delivery Network (CDN) for distributing static content globally and improving performance.
- Amazon Certificate Manager:
This is a basic example of a Terraform AWS S3 static site. Depending on your requirements, you might need to add more services or modify this architecture.
- Terraform installed
- AWS CLI installed
- AWS account with valid credentials
- Navigate to the repository:
cd terraform-s3-website
- Configure AWS credentials:
aws configure
- Create a Terraform backend:
terraform init
- Review changes:
terraform plan
- Create the infrastructure:
terraform apply
- Destroy the infrastructure:
terraform destroy