Skip to content

Deploy WebServer in AWS Private Subnet using Terraform

Notifications You must be signed in to change notification settings

iankittomar/aws-terrform

Repository files navigation

Deploy WebServer in AWS Private Subnet using Terraform

Steps to Create AWS Infructure using terraform

  1. Create VPC

  2. Create Subnets a) Public Subnet b) Private Subnet

  3. Create Internet Gatway

  4. Create Net Gatway(in Public Subnet)

  5. Create Route Table a) Public Route a.1) Route table Association a.2) Internet Gateway b) Private Route a.1) Route table Association a.2) Net Gateway with Elastic IP

  6. Create Security Groups a) WEB Server Instance security_group b) Bastion Instance security_group c) Elastic Load Balancer security_group

  7. Create Bastion Host(Junp Host) Instance

WebServer Configuration

  1. Create Launch Configuration for webserver
  2. Create Auto Scalling group
  3. Create Load Balancer

Create Master Scrip as Userdata in Launch Configuration for webserver

Deploy your Terraform scrip By using Command

terraform plan

terraform apply

ws1 1

Outputs of Terraform

ws2

Use Bastion Host Instance to SSH in Private Subnet

Internet Access and WebServer in Private Subnet

ws1

About

Deploy WebServer in AWS Private Subnet using Terraform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published