Aws 26
Aws 26
Aws 26
Tutorial
1) What is AWS?
What is Cloud Computing?
Cloud computing is a term referred to storing and accessing data over
the internet. It doesn't store any data on the hard disk of your personal
computer. In cloud computing, you can access data from a remote
server.
What is AWS?
Amazon web service is a platform that offers flexible, reliable, scalable,
easy-to-use and cost-effective cloud computing solutions.
AWS is a comprehensive, easy to use computing platform offered
Amazon. The platform is developed with a combination of infrastructure
as a service (IaaS), platform as a service (PaaS) and packaged
software as a service (SaaS) offerings.
In this tutorial, you will learn,
What is Cloud Computing?
What is AWS?
History of AWS
2002- AWS services launched
2006- Launched its cloud products
2012- Holds first customer eventImportant AWS
Services
Amazon Web Services offers a wide range of different business
purpose global cloud-based products. The products include storage,
databases, analytics, networking, mobile, development tools, enterprise
applications, with a pay-as-you-go pricing model.
Open all the services and click on EC2 under Compute services.
This will launch the dashboard of EC2.
Here is the EC2 dashboard. Here you will get all the information in gist
about the AWS EC2 resources running.
Step 2) On the top right corner of the EC2 dashboard, choose the AWS
Region in which you want to provision the EC2 server.
Here we are selecting N. Virginia. AWS provides 10 Regions all over the
globe.
Step 3) In this step
Once your desired Region is selected, come back to the EC2
Dashboard.
Click on 'Launch Instance' button in the section of Create Instance
(as shown below).
Instance creation wizard page will open as soon as you click
'Launch Instance'.
Choose AMI
Step 1) In this step we will do,
1. You will be asked to choose an AMI of your choice. (An AMI is an
Amazon Machine Image. It is a template basically of an Operating
System platform which you can use as a base to create your
instance). Once you launch an EC2 instance from your preferred
AMI, the instance will automatically be booted with the desired
OS. (We will see more about AMIs in the coming part of the
tutorial).
2. Here we are choosing the default Amazon Linux (64 bit) AMI.
Choose EC2 Instance Types
Step 1) In the next step, you have to choose the type of instance you
require based on your business needs.
1. We will choose t2.micro instance type, which is a 1vCPU and 1GB
memory server offered by AWS.
2. Click on "Configure Instance Details" for further configurations
In the next step of the wizard, enter details like no. of instances
you want to launch at a time.
Here we are launching one instance.
Configure Instance
Step 1) No. of instances- you can provision up to 20 instances at a time.
Here we are launching one instance.
Step 2) Under Purchasing Options, keep the option of 'Request Spot
Instances' unchecked as of now. (This is done when we wish to launch
Spot instances instead of on-demand ones. We will come back to Spot
instances in the later part of the tutorial).
Tag Instance
Step 1) In this step
you can tag your instance with a key-value pair. This gives
visibility to the AWS account administrator when there are lot
number of instances.
The instances should be tagged based on their department,
environment like Dev/SIT/Prod. Etc. this gives a clear view of the
costing on the instances under one common tag.
1. Here we have tagged the instance as a Dev_Web server 01
2. Go to configure Security Groups later
Configure Security Groups
Step 1) In this next step of configuring Security Groups, you can restrict
traffic on your instance ports. This is an added firewall mechanism
provided by AWS apart from your instance's OS firewall.
You can define open ports and IPs.
Since our server is a webserver=, we will do following things
1. Creating a new Security Group
2. Naming our SG for easier reference
3. Defining protocols which we want enabled on my instance
4. Assigning IPs which are allowed to access our instance on the
said protocols
5. Once, the firewall rules are set- Review and launch
Review Instances
Step 1) In this step, we will review all our choices and parameters and
go ahead to launch our instance.
When you download your key, you can open and have a look at
your RSA private key.
Step 3) Once you are done downloading and saving your key, launch
your instance.
You can see the launch status meanwhile.
You can also see the launch log.
Click on the 'Instances' option on the left pane where you can see
the status of the instance as 'Pending' for a brief while.
Once your instance is up and running, you can see its status as
'Running' now.
Note that the instance has received a Private IP from the pool of
AWS.
Create a EIP and connect to your instance
An EIP is a static public IP provided by AWS. It stands for Elastic IP.
Normally when you create an instance, it will receive a public IP from
the AWS's pool automatically. If you stop/reboot your instance, this
public IP will change- it'dynamic. In order for your application to have a
static IP from where you can connect via public networks, you can use
an EIP.
Step 1) On the left pane of EC2 Dashboard, you can go to 'Elastic IPs'
as shown below.