DEV Community

Cover image for Learning AWS Day by Day — Day 21 — VPC Hands-on — Part 3
Saloni Singh
Saloni Singh

Posted on

Learning AWS Day by Day — Day 21 — VPC Hands-on — Part 3

Exploring AWS !!

Day 21:

VPC Hands-on: Part 3

Task:

  1. Create 2 EC2 instances in any public subnet of any VPC and name them Master and Client
  2. Using security groups, make sure that Client instance can only be accessed (SSH) through the Master instance

Solution to the task:

  1. Create a VPC

Image description

  1. Create a public subnet

Image description

  1. Create Internet Gateway

Image description

  1. Attach VPC to Internet Gateway

Image description

  1. Add routes in Route Table

Image description

  1. Edit the subnet association under Route Tables, and add the public subnet we created.

Image description

  1. Go to EC2 instances

Image description

  1. Create 2 instances namely- Master and Client

Image description

  1. Edit the inbound security rules and give Private IP of Master for Client

Image description

  1. Security Group will be created

Image description

  1. Connect and update instance and install apache2

Image description

  1. Install Filezilla locally and Using Filezilla add the key file

Image description

  1. Try to load the key and connect to Client via Master

Image description

Do follow me on LinkedIn: LinkedIn

Top comments (0)