[Music]
hello
i am shannon a class support engineer
here at the adabs office in sydney
today i'm going to show you how to
create and connect to
amazon linux 2 ec2 instance let's get
started
first log in to the advanced management
console
choose the region selector and select
the region
that is geographically closed to you
then navigate to the amazon elastic
compute cloud console
select the key pairs page
if you already have some key pairs being
created
they will appear on this page choose the
create key pair to create a new key pair
enter a name for the key pair then
select the file format
if you are using a mac os system or will
use the open ssh software to connect to
a
linux instance choose the pin format
if you are using a windows system and
want to use the party to connect to a
linux easy to instance
choose the ppk format i'll choose a pin
format and then choose create key pair
button
this will create a key pair and save the
private key to my local computer
if you use a ssh client on a mac os
or linux computer to connect to your
linux instance
the private key file should be updated
with the read only permission
now let's go to the ec2 instance page to
launch
amazon linux 2 instance
choose the launch instance button choose
the amazon links to imi
and then choose select on this page
you can choose the desired instance type
i will use the default option
which is the title micro here and then
choose
next on this page you can configure the
instance details
such as the number of instances to
launch the networking settings
and several other settings by leaving
all the settings as a default
the instance launches within the default
vpc for us
here i will use the default settings and
then i will choose
review and launch the review
page displays the details about this
launch
such as the image the specified instance
type
instance details and so on after we
review the settings and decide to create
the instance
let's choose the launch for this final
step we need to specify the keypair that
will be used for connecting to the
instance
in this example the key pair that we
created before
is selected but if you have multiple key
pairs and
want to use another one you can select
it here
then tick the checkbox and choose the
launch instance
to create the instance now you will see
this page
which means the instance is launched
successfully
choose the view instances to check the
instance
status
choose the connect button and then
select the
ssh client you'll see an example command
for connecting to this instance
copy the command when the instance state
is in the running status and has passed
the status check
you can connect to the instance in this
demo
i will use the mac os terminal software
to connect to the linux instance
so i will now open the mac os terminal
software
paste the command and correct the key
pause then press the enter key
to connect for the first time when
connecting to a new linux server
you must verify the fingerprint first
once confirmed enter yes and then you'll
be connected
to that linux instance successfully so
now
you know how to create and connect to
the amazon links to
ec2 instance to avoid unnecessary
charges on your account
stop the instance when you are not using
it
thanks for watching and happy cloud
computing from all of us here at aws