Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 2.06 KB

README.md

File metadata and controls

48 lines (36 loc) · 2.06 KB

Static MEME

AboutAWS DiagramInstallationImprovements

About

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 Diagram

Installation

  1. Download and install AWS CLI.

  2. Download and install Terraform .

  3. Attach AWS credentials to AWS CLI .

aws configure
  1. Create terraform.tfvars file to store cloudflare_api and zone_id token.

  2. Run the following Terraform commands.

terrform init
terraform apply
  1. To delete resources run.
terraform destroy

Improvements

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.