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
2. Create a public subnet
3. Create Internet Gateway
4. Attach VPC to Internet Gateway
5. Add routes in Route Table
6. Edit the subnet association under Route Tables, and add the public subnet we created.
7. Go to EC2 instances
8. Create 2 instances namely- Master and Client
9. Edit the inbound security rules and give Private IP of Master for Client
10. Security Group will be created
11. Connect and update instance and install apache2
12. Install Filezilla locally and Using Filezilla add the key file
13. Try to load the key and connect to Client via Master