Building a Simple Network on AWS
This is a warmup exercise for module 02 which can be found here. https://github.com/aws-samples/aws-modern-application-workshop/tree/python/module-2
It requires you to know the basics of AWS networking.
Your Assignment
- Create a VPC
- Create a Public Subnet with an Internet Gateway attached
- Create a Private Subnet with an NAT gateway attached
- Spin up a server in the public subnet that outputs "Hello World"
- Visit the server using the IP/DNS to see "Hello World" message
- Spin up another server in the Private subnet
- SSH into it using SSH port forwarding
- Run "yum update -y" and download updates in the server
Deliveries
- Public IP of the Web Server
- Screenshot of the "Hello World" message with the public ip on the address bar
- Private IP of the Web Server
Cleanup - Do this to avoid unwanted bills from AWS
- Stop the EC2 instances
- Delete the NatGateway
- Delete the Internet Gateway
- Release Elastic IP associated with the Internet Gateway
References
- AWS VPC - https://www.youtube.com/watch?v=kdkulaBWyXw
- Security Groups and NACL in VPC - https://www.youtube.com/watch?v=pac2SZfSfzk
- Creating a VPC - https://youtu.be/iZonf_XhMpY
- Security Groups and Launching Instances - https://youtu.be/85COkRLRw98
- SSH Agent Forwarding - https://youtu.be/cHg6LWOzH98
- NAT Gateways vs NAT Instaces -https://youtu.be/un4vD6WCEJM
Create an Issue with the Deliveries. Deadline - 9th April 2019