Content

                                                  Content How to create an AWS free Account? Lab 1: To launch amazon Linux EC2 instance Lab 2: To Connect to the instance from Linux client Operating System Lab 3:To Launch amazon windows instance Lab 4: Installing apache in EC2 instance Lab 5: Installing Nginx in EC2 instance Lab 6: Changing Host Name Lab 7: Creating a user and making as a sudoer Lab 8:Assigning an Elastic ip Lab 9:Creating ebs,attach and detach the volumn to the instance Lab 10:Creating an S3 Bucket and creating cross replication in another region Lab 11:Load Balancer Lab 12:Two instances with Application Load Balancer Lab 13:Launching two instances with load Balancer Lab:14 Creating Own VPC  Lab 15: Two instances which classic load Balance with own VPC Lab 16:Two instances with Application load Balancer with own VPC Lab 17: Relational Data B...

Lab 1: To launch amazon Linux EC2 instance

                                              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

Popular posts from this blog

Lab 21:Installing docker in instance and build an image

Lab 22:Pushing a docker image to docker hub

Lab 5: Installing Nginx in EC2 instance