EC2 Basics
Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or
Already have an account? Sign In »

Video Transcription
00:00
>> Welcome back. In this lesson,
00:00
we're going to go ahead and dive into the EC2 basics,
00:00
so let's cover the learning objectives.
00:00
The objectives that we want to basically cover,
00:00
that the ground we want to cover here
00:00
is to define what EC2 is,
00:00
describe how it works,
00:00
and then walk through what you can do with it.
00:00
There's a lot of benefits to it.
00:00
If you can think of everything you
00:00
>> can do with a server,
00:00
>> pretty much you can do everything.
00:00
All of those same things,
00:00
and EC2 as well,
00:00
it's very versatile,
00:00
and it's very convenient.
00:00
EC2 stands for Elastic Compute Cloud.
00:00
So it's more of like an acronym,
00:00
but that's also the name of the service.
00:00
This is a service that delivers
00:00
virtual computing via the Cloud through AWS.
00:00
There are other EC2 equivalents
00:00
for other Cloud environments
00:00
like Azure has virtual machines,
00:00
and I believe Google Cloud has the same as well.
00:00
This is a virtual machine that you can spin up in
00:00
Amazon and use this for all of your server needs.
00:00
Everything you would use a virtual server for,
00:00
you can do that here with an EC2.
00:00
EC2 is very versatile.
00:00
You can install different software on it,
00:00
different operating systems on it.
00:00
You can use it for all different types of purposes,
00:00
they have some EC2s that are intended for graphics,
00:00
so if you do a lot of rendering and editing,
00:00
you can use that, have
00:00
some that are more compute intensive.
00:00
If you do a lot of data analysis,
00:00
you can use those instead.
00:00
This is a infrastructure as
00:00
a service service so this is
00:00
infrastructure, and you can spin it up.
00:00
When we're talking about the different services,
00:00
if we go back to the various service models,
00:00
this falls under the infrastructure as a service
00:00
or the IaaS service model.
00:00
The knowledge on the service
00:00
is going to be very important.
00:00
This is something that you'll
00:00
see quite a few exam questions on this one.
00:00
No telling how many exactly,
00:00
because it definitely varies depending on
00:00
the exam number that you
00:00
get when you sit down to take it.
00:00
But there are going to be
00:00
quite a few exam questions that are going to be asking,
00:00
what it is, what can it do?
00:00
What are the different limitations? Things like that.
00:00
You want to make sure that you're very familiar.
00:00
Ideally that you've hopped into
00:00
the EC2 console and you've
00:00
definitely played around with deploying them,
00:00
terminating them, all that fun stuff.
00:00
You want to really want to make sure that you've been
00:00
using the EC2 service.
00:00
Configuring EC2 instances is very easy.
00:00
You can deploy some of
00:00
the more common operating systems like
00:00
Linux, Windows, and MacOS.
00:00
Yes, macOS, you can actually do that as well.
00:00
There are resource configuration options when you are
00:00
setting up an EC2 instance such as your CPU,
00:00
how big do you want it? How many cores?
00:00
How many cores are there?
00:00
What's the power that you are looking for?
00:00
Again, going back to what's
00:00
the intent of this EC2 instance, what's your use case?
00:00
If you're looking to do something very minor,
00:00
you can deploy an EC2 that
00:00
would be equivalent to the compute
00:00
power of a Raspberry Pi.
00:00
You can do whatever you would want to do on
00:00
a Raspberry Pi in that EC2 instance.
00:00
If you are looking for a massive EC2 instance to do
00:00
something that's very workload intensive,
00:00
they have those options as well,
00:00
and the price varies depending on
00:00
the size of the instance that you're playing with.
00:00
RAM is another configuration option that you can set up.
00:00
You can put as little as one or two gigs,
00:00
and you can ramp that all the way up
00:00
to as many as you want depending on
00:00
the limitations of the type
00:00
or the tier of EC2 that you're deploying.
00:00
We'll get into that a little bit more,
00:00
you'll see what I'm talking about and there's
00:00
some documentation out there to help
00:00
you reference exactly what
00:00
those limitations are depending on the various tiers,
00:00
so you'll get a chance to see that.
00:00
Again, so when you're also
00:00
standing up your EC2 instance,
00:00
you're going to need to define your storage space.
00:00
How many drives do you want?
00:00
What kind of drives do you want?
00:00
Do you want SSDs, do you want hard drives?
00:00
Things like that, you get to
00:00
define the networking environment,
00:00
so is there going to be a public IP?
00:00
Is there going to be an elastic IP like
00:00
a persistence IP address
00:00
that is going to be associated with that EC2 instance,
00:00
which VPC is just going to be in,
00:00
what network is going to be at,
00:00
what subnet is going to be in?
00:00
Those types of things are configuration options
00:00
that you want to make sure that you set up
00:00
when you are configuring the EC2 instance.
00:00
Now, I will quickly note here that some of
00:00
these configuration options can be
00:00
changed even after you've deployed your EC2 instance.
00:00
If you can't for whatever reason, not to worry.
00:00
These are virtual machines.
00:00
It takes only a few minutes for them to spin up.
00:00
If you happen to mess it up,
00:00
you can always start back over.
00:00
Hopefully you have patch groups or you
00:00
have images that you can deploy from.
00:00
But when you do that,
00:00
it's very simple for you to just go ahead and redeploy.
00:00
That being said, you can use bootstrap scripts.
00:00
There is little space and
00:00
the configuration option that allows you to use
00:00
bootstrap scripts so you can just drop it right in there.
00:00
As soon as you spin up the EC2 instance,
00:00
the EC2 instance reads the bootstrap script and begins
00:00
to run the necessary commands that you've defined.
00:00
What is bootstrapping? [LAUGHTER] I
00:00
guess we should talk about that if we're going to be
00:00
discussing the fact that you can actually
00:00
do that when you're standing up an EC2 instance.
00:00
Bootstrapping is basically the startup process in
00:00
which you're setting up
00:00
with the EC2 or with any machine actually.
00:00
It's not just EC2, but maybe you have
00:00
a defined set of rules and things that you
00:00
want to maybe install or you
00:00
want to do very mundane task.
00:00
Like for example, you install
00:00
an operating system and the first thing
00:00
you want to do is run updates.
00:00
This is common practice.
00:00
We want to make sure that we have
00:00
all the latest updates since
00:00
the latest installation that we just put on there.
00:00
If we're installing Linux,
00:00
you typically want to do a pull request to get
00:00
the latest updates and that
00:00
you've upgraded the operating system
00:00
to its latest patches.
00:00
That's something you can define in
00:00
a bootstrap script to do automatically,
00:00
so you don't have to think about that.
00:00
Once everything is done,
00:00
you just log in and you know that you're working with
00:00
the most secure version of your AWS EC2 instance.
00:00
Those are the things that you
00:00
can do with a bootstrap script.
00:00
There's lot of things you can do with that.
00:00
You can install a particular software like Apache,
00:00
or you can define
00:00
certain characteristics onto your EC2 instance.
00:00
This is beyond the scope of this exam.
00:00
You do want to understand
00:00
what bootstrapping is, but beyond that,
00:00
you don't really need to worry about
00:00
all the different things that you can do with it.
00:00
If you're curious, I encourage you to take a look online.
00:00
There's a lot of resources out there to help you.
00:00
But aside from understanding what bootstrapping is,
00:00
I wouldn't worry about it for this test.
00:00
The different types of EC2 instances.
00:00
Here are a few examples.
00:00
Now there are a lot of options out there,
00:00
but some of the more popular ones are your T2 micros,
00:00
your T2 extra-large,
00:00
your C5D for extra large and so forth,
00:00
which is a little bit hard to
00:00
understand the naming convention,
00:00
but as you can see, the virtual CPUs
00:00
associated with them makes sense,
00:00
as you can see, there's a four extra large.
00:00
Well, with that you have 16 virtual CPU cores,
00:00
32 gigs of memory,
00:00
one 400 gig NVMe SSD
00:00
with a network performance of
00:00
up to 10 gigabits per second.
00:00
Pretty healthy size machine.
00:00
That's a pretty beefy one.
00:00
When you compare that to the t2 micro,
00:00
which I would consider more of like
00:00
a Raspberry Pi EC2 instance,
00:00
you can definitely see quite a difference there.
00:00
Cost is going to be very relative to
00:00
the type of machine that you're
00:00
working with and how you're using it,
00:00
so just keep that in mind.
00:00
For everything that we're doing in this course,
00:00
you can definitely use the T2 micro,
00:00
which is free to use.
00:00
But if you start playing with other machines,
00:00
make sure that you turn them off.
00:00
Make sure that you're not using them,
00:00
definitely not for this course
00:00
because you don't need it for this course.
00:00
But if you wanted to play with it for whatever reason,
00:00
that's another option for you as well.
00:00
These are the different instance types there are.
00:00
You may see a question asking you if
00:00
a instance type is
00:00
a real instance type and there's actually
00:00
an acronym out there
00:00
on the internet that you can leverage that'll
00:00
help you to memorize
00:00
the various EC2 instance types there are.
00:00
If you are interested in learning about that,
00:00
I do recommend taking a look at that and
00:00
maybe memorizing that mnemonic to
00:00
help you remember before going into the exam.
00:00
To summarize, we did a brief introduction on EC2,
00:00
so now you know what it is.
00:00
These are virtual machines that are running in AWS Cloud.
00:00
We covered the different configuration options with EC2.
00:00
Now, in a second here you will get a chance to dive into
00:00
this yourself and walk through this process.
00:00
You'll get to actually
00:00
spin up your EC2 instances very easy,
00:00
I promise you, you'll get to watch me
00:00
do it and then you'll do it yourself.
00:00
We also discussed what bootstrapping
00:00
is and how that works,
00:00
what you can do with it and stuff like that.
00:00
Then we also talked about
00:00
the different EC2 instance types
00:00
and some of the resources available to
00:00
you to learn all of them and
00:00
memorize the different EC2 type families,
00:00
which you may see an exam question on or two,
00:00
so be sure to check that out.
00:00
Without further ado, I'll go ahead and let you go here.
00:00
Be sure to grab a cup of coffee,
00:00
because in the next lesson,
00:00
we're going to be doing a walk through.
00:00
You'll get to watch me spin up an EC2 instance.
00:00
Then we're going to follow that up with
00:00
a lab where you will get to do it yourself.
00:00
Be excited, I'm
00:00
excited. I'll see you in the next lesson.
Up Next
How to Create an EC2 Instance
1h 3m
Hardening Ports for EC2 Instances
41m
Instance Launch Types and Spot Fleets
39m
Similar Content