Skip to content

Scalable Web Infra on AWS + Terraform (EC2 - VPC - S3 - CloudFront - Route53 - RDS | DynamoDB)

Notifications You must be signed in to change notification settings

Bryan-0/aws-terraform-scalable-web-app

Repository files navigation

Scalable Web App Blueprint (AWS + Terraform)

Infrastructure Design

image

Feel free to modify and adapt it to your needs, this is a purely practice project but it can be refined, enhanced and used in a production environment if needed.

Note: The private subnet part hasn't been done yet, everything else is functional!

Dependencies

  • Terraform version ~> 1.4.2
  • AWS Account
  • AWS CLI any supported version.

Deploying

Once you've cloned this repo into your local computer, you will need to:

  • Configure your AWS credentials, run aws configure.
  • Configure your environment variables with the following: (create a tfvars file e.g. dev.tfvars)
infra_region = "eu-west-1"
web_domain = "example.com"
environment = "dev"
  • Run terraform init to initialize modules.
  • Run terraform plan -var-file="dev.tfvars" or simply make tf-plan-dev to double-check if needed, also remember to check your configured region.
  • Run terraform apply -var-file="dev.tfvars" or simply make tf-apply-dev and enjoy!

Hosted web app:

image

Thank you!

About

Scalable Web Infra on AWS + Terraform (EC2 - VPC - S3 - CloudFront - Route53 - RDS | DynamoDB)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published