AWS First Week - Detail - Notes
AWS First Week - Detail - Notes
AWS First Week - Detail - Notes
AWS -CLASS
By – Rohit Singh
ASW Class Notes – By Rohit Singh
• What is cloud ?
o It is a service which we are using over the internet.
o The cloud is made up of servers in data centres all over the world. Moving to the
cloud can save companies money and add convenience for users.
ASW Class Notes – By Rohit Singh
ASW Class Notes – By Rohit Singh
• What is AWS?
o Amazon Web Services (AWS) is the world’s most comprehensive and broadly
adopted cloud, offering over 200 fully featured services from data centres globally.
o Millions of customers—including the fastest-growing startups, largest enterprises,
and leading government agencies—are using AWS to lower costs, become more
agile, and innovate faster.
o
• AWS Account Type
o Root
o IAM
• AWS Core Services:
• Elastic Compute Cloud (EC2)
o EC2 spins up resizable server instances that can scale up and down quickly.
o An instance is a virtual server in the cloud. With Amazon EC2, you can set up and
configure the operating system and applications that run on your instance.
o Its configuration at launch is a live copy of the Amazon Machine Image (AMI) that
you specify when you launched the instance.
o EC2 has an extremely reduced time frame for provisioning and booting new
instances and EC2 ensures that you pay as you go, pay for what you use, pay less as
you use more, and pay even less when you reserve capacity.
ASW Class Notes – By Rohit Singh
o When your EC2 instance is running, you are charged on CPU, memory, storage, and
networking.
o When it is stopped, you are only charged for EBS storage.
• EC2 Key features :
o You can launch different types of instances from a single AMI.
o An instance type essentially determines the hardware of the host computer used for
your instance. Each instance type offers different compute and memory capabilities.
o You should select an instance type based on the amount of memory and computing
power that you need for the application or software that you plan to run on top of
the instance.
o You can launch multiple instances of an AMI, as shown in the following figure:
o You have the option of using dedicated tenancy with your instance. This means that
within an AWS data center, you have exclusive access to physical hardware. Naturally,
this option incurs a high cost, but it makes sense if you work with technology that
has a strict licensing policy.
o With EC2 VM Import, you can import existing VMs into AWS as long as those hosts
use VMware ESX, VMware Workstation, Microsoft Hyper-V, or Citrix Xen
virtualization formats.
o When you launch a new EC2 instance, EC2 attempts to place the instance in such a
way that all of your VMs are spread out across different hardware to limit failure to a
single location. You can use placement groups to influence the placement of a group
of interdependent instances that meet the needs of your workload. There is an
explanation about placement groups in a section below.
o When you launch an instance in Amazon EC2, you have the option of passing user
data to the instance when the instance starts. This user data can be used to run
common automated configuration tasks or scripts. For example, you can pass a bash
script that ensures htop is installed on the new EC2 host and is always active.
o By default, the public IP address of an EC2 Instance is released when the instance is
stopped even if its stopped temporarily. Therefore, it is best to refer to an instance
by its external DNS hostname. If you require a persistent public IP address that can
ASW Class Notes – By Rohit Singh
optimized, but you aren't sure just yet. So if you think that in the future
you might need to change your VM type or upgrade your VMs
capacity, choose Convertible Reserved Instances. There is no
downgrading instance type with this option though.
o Scheduled Reserved Instances are reserved according to a specified
timeline that you set. For example, you might use Scheduled Reserved
Instances if you run education software that only needs to be available
during school hours. This option allows you to better match your
needed capacity with a recurring schedule so that you can save money.
• EC2 Instance Lifecycle:
The following table highlights the many instance states that a VM can be in at
a given time.
Note: Reserved Instances that are terminated are billed until the end of their term.
• EC2 Security:
o When you deploy an Amazon EC2 instance, you are responsible for
management of the guest operating system (including updates and
security patches), any application software or utilities installed on the
instances, and the configuration of the AWS-provided firewall (called a
security group) on each instance.
o With EC2, termination protection of the instance is disabled by default.
This means that you do not have a safe-guard in place from
ASW Class Notes – By Rohit Singh