Day-2 AWS EC2, Template, Load-balancer and Auto-Scalling

Aishwarya UpareAishwarya Upare
2 min read

Lets learn today EC2, Template,Load-balancer and Auto-scalling group.

AWS EC2 - Elastic Compute Cloud one of the the back bone in AWS services. We will learn how to make EC2 instance here and how to make hosting web page

search EC2 and and select launch instance after that

Give a name for your EC2 instance here I gave “my-first-server”

then select Ubuntu amazon machine Image(AMI)-basic OS images provided by AWS

Create a key pair- when we launch first time our instance we need key pair for connection

then launch the instance

Now go to connect and connect to server and select EC2 instance connect

your ubuntu server is here which we are made earlier

Now we are making our simple HTML webpage this webpage we here hosting on using nginx

for that we are using linux comands here

run your commands and paste the IP adress which is publicIP on browser like 3.148.249.142:80 which means for running the our page we need port number 80 , here our page

Our web page is ready now

Lets discussed now EC2 templates , What is template- A Launch Templates is a blueprint for launching EC2 instances.

here are steps-go to instance then actions select the option image and templates go then create template from instance

what we steps did in launching step we have to reapeat some steps here and here we have to select security group then launch templete and its done.

We can modify our template also here and make our version of template also

Here we are directly using AWS CLI where we put our commands earlier which we used on ubuntu server then create template version.

here is shown version 2 of template

Now we are ready to Go and our Project is complete

0
Subscribe to my newsletter

Read articles from Aishwarya Upare directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Aishwarya Upare
Aishwarya Upare