In this demo project I am going to use a terraform to spin up an ubuntu web server. The project covers the following steps.
-
Creating a VPC.
-
Creating an Internet Gateway.
-
Creating a Custom Route Table.
-
Create a Subnet.
-
Associate a Subnet with the Route Table.
-
Create a Security group to allow ports 22 and 80.
-
Create a Network Interface with an IP creating in the step 4.
-
Assign an Elastic IP to the Network Interface created in step 7.
-
Create an Ubuntu Server and Install/Enable apache2 on it.