Create an EC2 instance, deploy it on a custom VPC on a custom subnet and assign it a public IP address so that we can SSH into it to connect and make some changes accordingly. The idea is to setup a web server so that we can handle the web traffic. Following are the steps that will be followed:
- Create VPC
- Create Internet Gateway
- Create a Custom Route Table
- Create a subnet
- Associate a subnet with the Route Table
- Create security group to allow port 22, 80, 443
- Create a network interface with an ip in the subnet that was created in step 4
- Assign an elastic ip address to the network interface created in step 7
- Create an ubuntu server and install/enable apache2