AWS Intro
AWS Intro
AWS Intro:
Aws was launched in in the leading cloud service provider in the world.
Cloud Service Provider can be initialized as a CSPs.
Simple Queue Service (SQS) was the first AWS service launched for public in 2004.
In November 2010, It was reported that all of Amazon.com’s retail sites had migrated to AWS.
To support industry-wide training and skills standardization, AWS began offering a certification
program for computer engineers April 2013.
A cloud service provider can have hundreds of cloud services that are grouped into various types of
services. The four most common types of cloud services (4 core) for infrastructure as a Service (IaaS)
would be:
Compute : Imagine having a virtual computer that can run application, programs and code.
Networking: Imagine having virtual network defining internet connections or networks isolations
between services or outbound to the internet.
Storage: imagine having a virtual hard-drive that can store files.
Database: Imagine a virtual database for storing, reporting data or a database for general
purpose web-application
Aws has over 200+ cloud services. The term ‘Cloud Computing’ can be used to refer to all categories
even though compute in the name.
Technology Overview
Types of Cloud Computing
SaaS (Software as a Service) – For Customer: A product that is run and managed by the service provider.
Don’t worry about how the service is maintained. It just works and remain available.
Pass (Platform as a Service) – For Developers: Focus on the deployment and management of your apps.
Don’t worry about, provisioning, configuring or understanding the hardware or OS.
IaaS (Infrastructure as a Service) – For Admine : The basic building blocks for cloud IT. Provide access to
networking feature, computers and data storage space. Don’t worry about IT staff, data centers and
hardware.
Public Cloud : Everything (The workload or project) is built on the CSP Also know as : *Cloud-Native or
Cloud First
Companies that are starting out today or are small enough to make the leap from VPS to a CSP.
Startups
SaaS offerings
new projects and companies
DropBox
Private Cloud : Everything built on company’s datacenters Also known as On-Premise. The cloud could
be OpenStack.
Organization that started with their own datacenter, cant fully move to cloud due to effort of migration
or security.
For Ex:
Banks
FinTech
Investment Management
Large Professional Service providers
Legacy on-premise
Organizations that cannot run on cloud due to strict regulatory compliance or the sheer size of their
organization
For EX:
The benefits of the cloud is a summary of reasons why an organization would consider adopting or
migrating to utilizing public cloud.
The benefits of cloud are reworking and expansion of the Six Advantage of cloud
Six Advantage to Cloud
1. Trade capital expense for variable expense : You can Pay On-Demand meaning there is no
upfront-cost and you pay for only what you consume or pay by the hour, minutes or seconds.
Instead of paying for upfronts costs of data center and server.
2. Benefits from massive economies of scale : You are sharing the cost with other customers to get
unbeatable savings.
4. Increase speed and agility : Launch resources within a few clicks in minutes
Instead of waiting days or weeks of your IT to implement the solution on-premise
5. Stop spending money on running and maintaining data center : Focus on your own customers,
developing and configuring your applications Instead of operations such as racking, stacking, and
powering servers
6. Go global in minutes : Deploy your app in multiple regions around the world with few clicks.
Provides lower latency and a better experience for your customers at minimal cost.
AWS Global Infrastructure
The AWS Global Infrastructure is globally distributed hardware and datacenters that are physically
networked together to act as one large resource for the end customer
32 Launched Regions
102 Availability Zones
115 Direct Connections Locations
550+ Points of Presence
35 Local Zone
29 Wavelength Zones
Note : The above number can be different from the new one so double check
Regional services : Aws scopes their AWS Management Console on a selected Region. This will
determine where an AWS service will be launched and what will be seen within an AWS Service’s
console.
You generally don’t explicitly set the region for a service at the time of creation.
Global Services: Some AWS Services operate across multiple regions and the region will be fixed to
“Global” EX: Amazone S3, CloudFront, Route53, IAM
A Availability Zone (AZ) is physical location made up oof one or more datacenters.
Datacenter within a region will be isolate from each other (different building). But they will be close
enough to provide low-latency (<10ms).
Its common practise to run workloads in at least 3 AZs to ensure services remain available in case one or
two datacenters fail. (high availability).
AZs are represented by a Region Code, followed by a letter identifier eg. Us-east-1a (a represent the
availability zone)
Subnet
A subnet is associated with an Availability Zone.
You never choose the AZ when launching resources. You choose the Subnet which is associated to the
AZ.
Example of an architectural diagram, representing two AZs, and EC2 instances (virtual Machines)
launched in those subnets.
The US-EAST-1 region has 6 AZs (the most Availability zones of any regions)
All AZs in an AWS Region are interconnected with high-bandwidth, low-latency networking, over fully
redundant, dedicated metro fiber providing high-throughput, low-latency networking between
A fault domain is a section of a network that is vulnerable to a damage if a critical device or system fails.
The purpose of a fault domain is that if a failure occurs it will not cascade outside that domain, limiting
the damage possible.
Its up to the Cloud Service Provider (CSPs) to define the boundaries of a domain.
An AWS Region would be a Fault Level EX: Fault level => us-east-1 (Region )
A Availability Zone would be a Fault Domain EX: Fault Domain => us-east-1a us-east-1b (AZ)
Each Amazone Region is designed to be completely isolated form the other Amazone Regions.
Each Availability Zone is isolated, but the Availability Zone in a Region are connected to through low-
latency links
Failure Zone
Availability Zones are physically separated within a typical metropolitan region and are located in
lower risk flood plains
Discrete Uninterruptible Power Supply (UPS) and onsite backup generation facilities independent
substations to reduce the risk of an event on the power grid impacting more than one
Availability Zone.
Availability Zones are all redundantly connected to multiple tier-1 transit providers
If an application is partitioned across AZs, companies are better isolated and protected from
such as power outages, lightning strikes, tornadoes, earthquakes and more.
The AWS Global Network represent the interconnections between AWS Global Infrastructure.
Commonly referred to as the “The Backbone of AWS”.
Think of it as private expressway, where things can move very fast between datacenters.
Point of Presence (PoP)
Point of Presence (PoP) is an intermediate location between an AWS Region and the end user, and this
location could be a datacenter or collection of hardware.
For AWS a Point of Presence is a datacenter owned by AWS or a trusted partner that is utilized by AWS
Services related for content delivery or expediated upload
Edge Locations
Regional Edge catches
Edge Locations are datacenters that hold cached (Copy) on the most popular files (e.g. web pages,
images and videos) so that the delivery of distance to the end users are reduce
Regional Edge Locations are datacenters that hold much larger caches of less-popular files to reduce a
full round trip and also to reduce the cost of transfer fees.
The following AWS Services use PoP for content delivery or expediated upload.
You point your website to CloudFront so that it will route requests to nearest Edge Location
cache
Allows you to choose an origin (such as a web-server or storage) that will be source of cached
Caches the contents of what origin would returned to various Edge Location around the world
Amazone S3 Transfer Acceleration allows you to generate a special URL that can be used by end users to
upload files to a nearby Edge Location. Once a file is uploaded toa n Edge Location, it can move much
faster within the AWS Network to reach S3.
Aws Global Accelerator can find the optimal path from the end user to your web-servers. Global
Accelerator are deployed within Edge Location so you send user traffic to an Edge Location instead of
directly to your web-application.
AWS Direct Connect is a private/dedicated connection between your datacenter, office, co-location and
AWS.
Helps reduce network costs and increase bandwidth throughput (great for high traffic networks)
Provides a more consistent network experience than a typical internet-based connection. (reliable and
secure)
A co-location (aka carrier-hotel) is a data center where equipment, space and bandwidth are available
for rental to retail customers.
Direct Connect Location are trusted partners datacenters that you can establish a dedicated high speed,
low-latency connection from your on-premise to AWS.
Local Zones
Local Zones : Local Zones are datacenters located vary close to a densely populated area to provide
single-digit millisecond low latency performance (eg 7ms) for that area.
The purpose of Local Zone is the support highly-demanding applications sensitive to latencies:
Wavelength Zones
Applications will have ultra-low latency being as close as possible to the users.
AWS partnered with various Telecom companies to utilize their 5G networks ex: Verizon, Vodafone
You can create a Subnet tied to a Wavelength Zone and then you can launch VMs to the edge of the
targeted 5G Networks.
Data Residency
A regulatory compliance (legal requirement) by a government or organisation that describes where data
and cloud resources are allowed to reside.
Data Sovereignty is the jurisdictional control or legal authority that can be asserted over data because
location is within jurisdictional boundaries.
For workloads that need to meet compliance boundaries strictly defining the data residency of data and
cloud resources in AWS you can use:
AWS Outposts is physical rack of servers that you can puy in your data center. Your data will
reside whenever the outpost Physically resides
AWS Config is a Policy as Code service. You can create rules to continuous check AWS resources
configuration. If they deviate from your expectations you are alerted or AWS Config can in some
cases auto-remediate.
IAM Policies can be written explicitly deny access to specific AWS Regions. A Service Control
Policy (SCP) are permissions applied organization wide
AWS for government
Public sectors include public goods and governmental services such as: military, law enforcement,
infrastructure, public transit, public education , health care, the government itself
Aws can be utilized by public sector or organizations developing cloud workloads for the public sector
AWS achieve this by meeting regulatory compliance programs along with specific governance and
security controls
GovCloud
Federal Risk and Authorization Management Program (FedRAMP) a US government-wide program that
provides a standardized approach to security assessment, authorization, and continuous monitoring for
cloud products and services.
What is GovCloud ?
A Cloud Service Provider (CSP) generally will offer an isolated region to run FedRAMP workloads.
AWS GovCloud Regions allow customers to host sensitive Controlled Unclassified Information and other
types of regulated workloads.
GovCloud Regions are only operated by employees who are U.S. citizens on U.S. soil.
They are only accessible to U.S. entities and root account holders who pass a screening process
Customers can architect secure cloud solutions that comply with:
FedRAMP high baseline
DOJ’s Criminal Justice information System (CJIS) Security Policy
U.S. International Traffic in Arms Regulations (ITAR)
Exports Administration Regulations (EAR)
Department of Defense(DOD) Cloud Computing Security Requirements Guide
AWS in China
AWS China is completely isolate intentionally from AWS Global to meet regulatory compliance for
Mainland China
In order to operate in AWS China Region you need to have a Chinese Business License (ICP
license)
Not all service are available in China eg. Route53
Running in Mainland China (instead of Singapore) means you would not need to traverse the The
Great Firewall
Sustainability
Amazone co-founded the Climate Pledge to achieve Net-Zero Carbon Emissions by 2040 across all of
Amazon’s business (this includes AWS)
1. Renewable Energy : AWS is working towards having their AWS Global infrastructure powered by
100% renewable energy by 2025.
Aws purchases and retires environmental attributes to cover the non-renewable energy for AWS
Global infrastructure:
Renewable Energy Credits (RECs), Guarantees of Origin (GOs)
2. Cloud Efficiency : AWS’s infrastructure is 3.6 times more energy efficient than the median of U.S.
enterprises data centers surveyed.
3. Water Stewardship : Direct evaporative technology to cool our data center Use of non-potable
water for cooling purposes (recycle water)
On-site water treatment allows us to remove scale-forming minerals and reuse water for more
cycles
Water efficiency metrics to determine and monitor optimal water use for each AWS region
AWS Ground Station
AWS Ground Station is a fully managed service that lets you control satellite communications, process
data, and scale your operations without having to worry about building or managing your own ground
station infrastructure.
Video broadcasts
Use Case:
A company reaches an agreement with a Satellite Imagery Provider to take satellite photos of a specific
region. They use AWS Ground Station to communicate that company’s Satellite and download S3 image
data.
AWS Outposts
AWS Outposts is a fully managed service that offers the same AWS infrastructure, AWS services, APIs,
and tools to virtually any datacenter, co-location, or on-premises facility for a truly consistent hybrid
experience.
AWS Outposts is rack of servers running AWS infrastructure on your physical location
A frame design to hold and organize IT equipment. U stand for “rack units” or “U spaces” with is equal to
1.75 inches. The industry standard rack size is 48U (7 foot Rack)
Full-size rack cage is 42U high and the equipment size is typically 1U, 2U, 3U or 4U high
1. The full rank of servers provided by AWS is 42U. AWS delivers it to your preferred physical site
fully assembled and ready to be rolled into final position. It is installed by AWS and the rack need
to be simple plugged into power and network.
2. The 1U is suitable for 19-iches wide 24 -inches deep cabinets. AWS Graviton2 (up to 64 vCPUs)
128 GiB memory 4 TB of local NVME storage.
3. The 2U is suitable for 19-inches wide and 36-inches deep cabinets, intel processor (up to 128
vCPUs) 256 GiB memory 8TB of local NVMe storage
A role in a technical organization that architects a technical solution using multiple systems via
researching, documentation, experimentation.
A solution architect that is focused solely on architecting technical solution using cloud services.
A cloud architect need to understand the following terms and factor them into their designed
architecture based on the business requirements.
Availability – Your ability to ensure a service remains available eg. Highly Available (HA)
Scalability – Your ability to grow rapidly or unimpeded
Elasticity - Your ability to shrink and grow to meet the demand
Fault Tolerance – Your ability to prevent a failure
Disaster Recovery – Your ability to recover from a failure eg. Highly Durable (DR)
A solution Architect needs to always consider the following business factors:
High Availability
High Availability : Your ability for your service to remain available by ensuring there is no single point of
failure and/or ensure a certain level of performance
Running your workload across multiple Availability Zones ensure that if 1 or 2 AZs becomes unavailable
your service/ application remain available.
Elastic Load Balancer : A load balancer allows you to evenly distribute traffic to multiple servers in
one or more datacenters. If a datacenters or server becomes unavailable the load balancer will route the
traffic to only available datacentres with servers.
High Scalability
Your ability to increase your capacity based on the increasing demand of traffic, memory and computing
power.
High Elasticity
Your ability to automatically increase or decrease your capacity based on the current demand of traffic,
memory and computing power
Horizonal Scaling
Vertical Scaling is generally hard for traditional architecture so you will usually only see horizontal scaling
described with Elasticity.
Highly Fault Tolerant
Your ability for your service to ensure there is no single point of failure. Preventing the chance of failure.
Fails-overs is when you have a plan to shift traffic to a redundant systems in case the primary fails.
A common example is having a copy (secondary) of your database where all ongoing changes are synced.
The secondary systems is not in-use a fail over occurs and it becomes the primary database.
RDS Multi-AZ is when you run a duplicate standby database in another Availability zone in
case your primary database fails.
High Durability
Your ability to recover from a disaster and to prevent the loss of data solution that recover from a
disaster is known as Disaster Recovery (DR).
ColudEndure Disaster Recovery continuously replicates your machines into a low-cost staging
area in your target AWS account and preferred Region enabling fast and reliable recovery in case of IT
data center failures.
Business Continuity Plan (BCP)
A Business Continuity Plan (BCP) is a document that outlines how a business will continue operating
during an unplanned disruption in services.
Recover Point Objective (RPO) : The maximum acceptable amount of data loss after an unplanned data-
loss incident, expressed as an amount of time
Recovery Time Objective (RTO) : The maximum amount of downtime your business can tolerate without
incurring a significant financial loss.
There are multiple options for recovery that trade cost vs time to recover.
You backup your data Data is replicate to Scaled down copy of Scaled up copy of your
and restore it to new another region with your infrastructure infrastructure in
infrastructure the minimal services running ready to scale another region
running up
Low priority use cases Less stringent RTO & Business Critical Zero downtime
RPO Services
Restore data after Core Services Scale resources after Nero Zero loss
event event
Deploy resources after Start & and scale Mission Critical
event resources after event Services
Cost $ Cost $$ Cost $$$ Cost $$$$$
RTO
Recovery Time Objective (RTO) is the maximum acceptable delay between the interruption of service
and restoration of service. This objective determines what is considered an acceptable time window
when service is unavailable and is define by the organization.
RPO
Recovery Point Objective (RPO) is the maximum acceptable amount of time since the last data recovery
point. This objective determines what is considered an acceptable loss of data between the last recovery
point and the interruption of service and is defined by the organization.
AWS Application Programming Interface (API)
An API is software that allows two applications/services to talk to each other. The most common type of
API is via HTTP/S requests.
AWS API is an HTTP API and you can interact by sending HTTPS requests, using an application interaction
with APIs like Postman.
Each AWS Services has its own Service Endpoint which you send requests.
You make a separate request with your AWS credentials and get back a token. Your need to provide an
ACTION and accompanying parameters as the payload.
Rarely do users directly send HTTP requests directly to the AWS API. Its much easier to interact with the
API via a variety of Developer Tools.
AWS PowerShell
Amazone Resources Names (ARNs) uniquely identify AWS resources. ARNs are required to specify a
resources unambiguously across all of AES.
Arn:partition:service:region:account-id:resource-id
Arn:partition:service:region:account-id:resource-type/resource-id
Arn:partition:service:region:account-id:resource-type:resource-id
Partition
ec2
s3
iam
us-east-1
ca-central-1
Account ID
121212112112
123456789012
user/Bob
instance/i-1234567890abcdef0
In the AWS Management Console its common to be able to copy the AEN to your clipboard
Paths in ARNs
Resources ARNs can include a path
A Command Line Interface (CLI) processes command to a computer program in the form of lines of text.
Operating systems implement a command-line interface in a shell.
What is Terminal ?
What is console ?
What is a shell ?
A shell is the command line program that users interact with to input commands. Ex : Bash, PowerShell