Next we're going to create an ec2 server instance to run our project open up the
AWS console and select services and EC2 underneath the compute option this is
where all of our ec2 server instances are in AWS
an ec2 server instance is
simply just a virtual machine that you can spin up and connect to to deploy our
application once you're on the ec2 page click on launch instance to create a new
instance
if you're in the 12 month free tier period then you shouldn't be
charged for following the steps in this course as long as you choose all of the
options for the free tier so what we're going to do is we're going to use the
Ubuntu operating system with the ami version that I put in the resources of
this video so if you click the link in the resources and then copy the ami ID
just to make sure we get the specific version that I did for the steps in this
course
copy the ami and then head back to the choose an Amazon machine image
page and enter the ami into the search box here and hit enter so we're going to
be using this Ubuntu 18.04 LTS SSD volume type image as you can see here it's
eligible for the free tier so if you're in the 12-month free tier period then
you shouldn't be charged
Once you've found this click on select to select
this as our server instance and then we're going to choose the micro instance
which is the second one down and is also in the free tier then click on configure
instance details and we're going to make some changes to the instance and the
changes that we're going to make is we're going to add a or allow HTTP
access to the instance by default when AWS creates an instance the only port
that's open is port 22 for SSH access we also want to open port 80 so that we can
connect to our web server once we create it
so click on this option 6 here which
is configure security group and then we're going to add a new rule and we're
going to choose HTTP
and then we're going to click review and
launch this will let us review the settings of our instance so just have a
check here make sure it matches or is similar to what I have on the screen and
then click on launch
next you're going to be prompted to choose the SSH key
that you want to set up on the server the SSH key is what we're going to use
to connect to the server once it's created so make sure you choose the
right one so I'm going to select the key pair for mark desktop and then check the
box that acknowledges you have access to this key then click Launch instance and
your instance will be created in AWS