/3-tier-app-aws-terraform

Simple 3-tier app example delpoyed to AWS using Terraform

Primary LanguageHCL

3-tier-app-aws-terraform

Simple 3-tier app example deployed to AWS using Terraform.

Requirements

  • Terraform >= 0.11.1
  • AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables exported.

Usage

Clone this repository and run:

Initializing Terrraform remote backend:

λ ~/3-tier-app-aws-terraform/ terraform init -backend-config=terraform.remote

Terraform plan:

λ ~/3-tier-app-aws-terraform/ terraform plan

Terraform apply:

λ ~/3-tier-app-aws-terraform/ terraform apply

After the process is completed, should then be able to connect to http://EC2_INSTANCE_IP/app1 and http://EC2_INSTANCE_IP/app2 in your browser.

References