Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 612 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 612 Bytes

Terraform - LAMP Stack in AWS

Summary

Terraform codes to create a LAMP stack with their own VPC and network components.

Terraform

Network

VPC with 1 public, 1 private subnet. 2 Subnets - one for Web Servers and another one is for DB Servers. Security groups for each Servers.

Instances

2 Amazon Linux Instances with existing SSH keys.

How to run

Make sure that you have a SSH key and mentioned in vars.tf.

Change the AWS region in vars.tf to your proferred one.

Use the below commands to build, review and execute.

terraform init
terraform get
terraform plan
terraform apply