created vpc and vpc peering
This project sets up:
- A custom VPC
- Two EC2 instances with public IPs
- An Internet Gateway
- Routing tables for internet access
- VPC Peering between two instances (in different subnets or VPCs)
| Instance | IP (Public) | Role |
|---|---|---|
| EC2-1 | 18.141.175.118 | Web Server |
| EC2-2 | 13.212.10.232 | Peer/Monitor |
- SSH into either instance:
ssh -i my-key.pem ubuntu@<instance-public-ip> 2. run python server
python3 -m http.server 8000 --bind 0.0.0.0
Visit in browser:
http://:8000