Lab 1: To launch amazon Linux EC2 instance
What is EC2?
It is web service that provides you secure and resizable compute capacity in the cloud it's just like a virtual machine.
Why we Use ?
To Launch servers one or more as you need and configure security,capacity,networking and storage.
What are EC2 kaywords?
AMI------------> It provide the information which type of instance you want to launch like Ubuntu,amazon linux,linux,redhat,windows etc...
Storage instance size-------------> you can choose the type of instance size like t2.micro,m4,large ....so on..
Security Group------------------->It provide the security for an instance that filter the traffic coming and out.
Key pair------------------------->To login to an instance we must create a key pair.
Lab: To Launch an instance
Go to EC2 dashboard,and then click on launch instance.
select the region in which you want to launch an instance.
Step 1:Choose an AMI
Select your AMI
Go with free trail version
Step 2: Instance size
Go with t2.micro for trail free
After selecting just go configuration instance details
Step 3: Configuration instance details.
Leave all as default
You can give number of instance based on how many instance you need.
In network you can give your own vpc or you can go with default on also
Step 4: Add Storage
Then go to the add storage.
Go with default size
Step :5 Add tags
Then go the Configurtion your security groups
Step 6:Security Groups
Create the new security group by giving name and inbound rules.
select default inbound rules
Then click review and Launch and select a key pair
Create a new key pair by giving key pair name after creating the new key pair download the key pair and launch the instance.
To Start,Stop and terminate the instance
Select the instance
click on Action
Select instance state there you have started,stop,terminate options
Exercises:
a)Launch an Ubuntu ami
b)Launch an redhat ami
Reference :https://docs.aws.amazon.com/etc/latest/ug/gs-step-one-create-ec2-resources.html
Comments
Post a Comment