Simple 3-tier app example deployed to AWS using Terraform.
- Terraform >=
0.11.1
AWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
environment variables exported.
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.