arocki7 / terraform-aws-lamp

Create LAMP Stack using terraform with AWS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Create LAMP Stack using terraform with AWS


Languages

Language:HCL 100.0%