About • AWS Diagram • Installation • Improvements
This project automates the deployment of a static website on AWS using Terraform. It sets up the necessary infrastructure components such as an S3 bucket for storing website content, CloudFront for content delivery, configuring Cloudflare as a DNS service, and CodePipeline for continuous integration and continuous deployment (CI/CD) from this GitHub repository.
Though I am displaying a meme, this repository is a great starting point to launch a static website in AWS. Whether it be for a portfolio, resume, or a landing page website. I am using CloudFlare as my DNS provider since I use them for my homelab. Route 53 would an alternative if you're looking to use an AWS resource.
aws configure
-
Create
terraform.tfvars
file to storecloudflare_api
andzone_id
token. -
Run the following Terraform commands.
terrform init
terraform apply
- To delete resources run.
terraform destroy
I would store the terraform state file in a s3 bucket for the reasons detailed here. I would also provide more resources with tags so they can be easily identified in AWS.