Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.26 KB

README.md

File metadata and controls

38 lines (25 loc) · 1.26 KB

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!