SlideShare une entreprise Scribd logo
1  sur  162
Nairobi – October 22nd
#AWSomeDay
Today’s Objectives
Nairobi – October 22nd
#AWSomeDay
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Objectives
Recognize terminology and concepts as they relate to the AWS
platform and navigate the AWS Management Console.
Understand the foundational services, including Amazon Elastic
Compute Cloud (EC2), Amazon Virtual Private Cloud (VPC),
Amazon Simple Storage Service (S3), and Amazon Elastic Block
Store (EBS).
Understand the security measures AWS provides and key
concepts of AWS Identity and Access Management (IAM).
3
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Objectives
Understand AWS database services, including Amazon
DynamoDB and Amazon Relational Database Service (RDS).
Understand AWS management tools, including Auto Scaling,
Amazon CloudWatch, Elastic Load Balancing (ELB), and AWS
Trusted Advisor.
4
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Sessions
Session 1: Introduction and History of AWS
Session 2: Foundational Services – Amazon EC2, Amazon VPC,
Amazon S3, Amazon EBS
Session 3: Security, Identity, and Access Management – IAM
Module 4: Databases – Amazon DynamoDB and Amazon RDS
5
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Sessions
Session 5: AWS Elasticity and Management Tools – Auto Scaling,
Elastic Load Balancing, Amazon CloudWatch, and AWS Trusted
Advisor
Session 6: Course Wrap-Up
6
Introduction and History of AWS
Nairobi – October 22nd
#AWSomeDay
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon History
1994: Jeff Bezos
incorporated the
company.
1995:
Amazon.com
launched its
online bookstore.
2005:
Amazon
Publishing
was
launched.
2006:
Amazon
Web Services
(AWS) was
launched.
2007: Kindle
was
launched.
2011:
Amazon
Fresh was
launched.
2012: Amazon
Game Studios was
launched.
2013:
Amazon Art
was
launched.
2014:
Amazon
Prime Now
was
launched.
2015: Amazon
Home Services
and Amazon
Echo were
launched.
8
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Web Services (AWS)
Enable businesses and
developers to use web services
to build scalable, sophisticated
applications.
ComputeMessaging
Mobile
App Services
Database
Networking
Development and
Management Tools
Payments
VPC
On-Demand Workforce
Analytics Content Delivery
Storage
9
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Pace of Innovation
AWS has been continually
expanding its services to
support virtually any cloud
workload.
More than 90 services that
include:
Compute, storage, networking,
database, analytics, application
services, deployment
Management, developer, mobile,
Internet of Things (IoT), Artificial
Intelligence (AI)
Security, hybrid and enterprise
applications
10
Total of 1,430 new features
and/or services launched in
2017.
2011
82
722
1,430
280
2013 2015 2017
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
4,343*
AWS Direct
Connect
AWS Elastic Beanstalk
Schema Conversion Tool
AWS Shield Amazon EFS
Amazon WorkSpaces
Amazon Lumberyard
Amazon
Pinpoint
AWS IoT
AWS Managed Services
Amazon Route 53
AWS Import/Export
AWS OpsWorks for
Chef Automate
Amazon Redshift
Amazon Dynamo DB
Amazon Polly
AWS
Snowball
AWS Organizations
Device Farm
Amazon Config
Amazon RDS for Aurora
WorkDocs
AWS
Snowball Edge
CodeCommit
AWS CodePipeline
AWS Service Catalog
CloudWatch Logs
Amazon Lex
AWS Greengrass
AWS WAF
Amazon Appstream 2.0
Amazon
Athena
AWS Glue
Amazon Lightsail
Amazon Rekognition
AWS Step Functions AWS Discovery
Services
AWS Certificate
Manager
Amazon
ElastiCache
Mobile Analytics
AWS Mobile Hub
AWS Storage GatewayAWS OpsWorks
AWS Batch
Amazon Inspector
Amazon Cognito
AWS CodeDeploy
AWS Personal Health Dashboard
AWS Snowmobile
AWS Lambda
AWS CodeBuild
AWS X-Ray
Amazon QuickSight
Amazon Kinesis Firehose
Amazon
Workmail
Amazon InspectorMachine Learning
* As of January 2018
Total New Services and Features
11
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Customers
Public Sector
Paving the way for innovation and
supporting world-changing projects
in government, education and
nonprofit organizations.
Startups
From the spark of an idea, to your
first customer, to IPO and beyond, let
Amazon Web Services help you build
and grow your startup.
Enterprise Customers
Amazon Web Services delivers a mature
set of services specifically designed for
the unique security, compliance, privacy,
and governance requirements of large
organizations.
.
12
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Advantages and Benefits of AWS Cloud
Computing
Trade capital expense
for variable expense.
Benefit from massive
economies of scale.
Stop guessing
capacity.
Go global in minutes.
Increase speed and
agility.
Stop spending money on
running and maintaining data
centers.
13
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS as a Leader in Cloud Infrastructure
as a Service
AWS is positioned as a leader
in the Gartner Magic
Quadrant for Cloud
Infrastructure as a Service
worldwide*.
AWS is rated highest in
execution and furthest in vision
within the Leaders Quadrant.
*Gartner, Magic Quadrant for Cloud Infrastructure as a Service, Worldwide, Lydia Leong, Raj Bala, Craig Lowery, Dennis Smith, June 2017
This graphic was published by Gartner, Inc. as part of a larger research document and should be evaluated in the context of the entire document. The
Gartner document is available upon request from AWS : http://www.gartner.com/doc/reprints?id=1-2G2O5FC&ct=150519&st=sb
Gartner does not endorse any vendor, product or service depicted in its research publications, and does not advise technology users to select only those
vendors with the highest ratings or other designation. Gartner research publications consist of the opinions of Gartner's research organization and should
not be construed as statements of fact. Gartner disclaims all warranties, expressed or implied, with respect to this research, including any warranties of
merchantability or fitness for a particular purpose.
14
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Core Infrastructure and Services
Traditional Infrastructure Amazon Web
Services
Security
Network
Security
Network
Security Groups NACLs Access Mgmt
VPCVPC
EC2 “Classic”
“Public”
ELB
On-DemandProvision
Security
Security Groups Network ACLs AWS IAMFirewalls ACLs Administrators
Storage
and
Database
RDBMSDAS SAN NAS Amazon
EBS
Amazon
EFS
Amazon
S3
Amazon
RDS
Networking
Amazon VPCELBRouter Network Pipeline Switch
Servers
AMI Amazon EC2 InstancesOn-Premises Servers
15
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Cloud Computing
Infrastructure Regions Edge LocationsAvailability Zones
Foundation
Services
Compute
(Virtual, Auto-scaling and
Load Balancing)
Networking
Applications Virtual Desktops Collaboration and Sharing
Platform
Services
Databases
Relational
NoSQL
Caching
Analytics
Cluster
Computing
Real-time
Data
Warehouse
Data
Workflows
App Services
Queuing
Orchestration
App Streaming
Transcoding
Email
Search
Deployment and
Management
Containers
Dev/ops Tools
Resource Templates
Usage Tracking
Monitoring and Logs
Mobile Services
Identity
Sync
Mobile Analytics
Notifications
Storage
(Object, Block and Archive)
16
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Compute
Amazon EC2
Network
Amazon CloudFront
Amazon Route 53
Amazon VPC
AWS Direct Connect
Elastic Load Balancing
Storage
Amazon EFS
Amazon Glacier
Amazon S3
AWS Snowball
AWS Storage Gateway
Security & Identity
Amazon Inspector
AWS Artifact
AWS Certificate Manager
AWS CloudHSM
AWS Directory Service
AWS IAM
AWS KMS
AWS Organizations
AWS Shield
AWS WAF
Applications
Amazon WorkDocs
Amazon WorkMail
Amazon AppStream
Amazon WorkSpaces
Amazon Elastic
Container Registry
Amazon Elastic
Container Service
Amazon Lightsail
AWS Batch
AWS Elastic
Beanstalk
AWS Lambda
AWS Foundation Services
17
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Platform Services
Databases
Amazon
DynamoDB
Analytics
Amazon
Athena
Application
Services
Amazon API
Gateway
Management
Tools
Amazon RDS
Amazon
ElastiCache
Amazon Redshift
Amazon
CloudSearch
Amazon EMR
Amazon
Elasticsearch
Service
Amazon
Kinesis
Amazon
QuickSight
Amazon
AppStream 2.0
Amazon
Elastic
Transcoder
Amazon SWF
AWS Step
Functions
Amazon
CloudWatch
AWS
CloudFormation
AWS
CloudTrail
AWS
Config
AWS Managed
Services
AWS
OpsWorks
AWS
Service Catalog
AWS Trusted
Advisor
Developer
Tools
AWS
CodeBuild
AWS
CodeCommit
AWS
CodeDeploy
AWS
CodePipeline
AWS X-Ray
Mobile
Services
Amazon
Cognito
Amazon
Mobile Analytics
Amazon
Pinpoint
AWS
Device Farm
AWS
Mobile Hub
Internet
of Things
AWS IoT
AWS
Greengrass
AWS CodeStar
18
Session 1
AWS Global Infrastructure
Nairobi – October 22nd
#AWSomeDay
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Global Infrastructure
Regions
Geographic locations
Consist of at least two Availability Zones
Availability Zones
Clusters of data centers
Isolated from failures in other Availability Zones
20
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
1
AWS Global Infrastructure Map
AWS GOVCLOUD (US-WEST)
OHIO
OREGON
N. CALIFORNIA
N. VIRGINIA
BEIJING
SEOUL
TOKYO
SINGAPORE
SYDNEY
CANADA
LONDON
MUMBAI
IRELAND
SÃO PAULO
3
2
3
3 3
3
Region & Number of AZs
3
2
2
2
3
BAHRAIN (Coming soon)
HONG KONG (Coming soon)
SWEDEN (Coming soon)
AWS GOVCLOUD
(US-EAST)
(Coming soon)
6
New Region Coming Soon
NINGXIA 3
4
PARIS
FRANKFURT
3
3
3
3
OSAKA-Local
21
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Global Infrastructure Regions
At least 2 Availability Zones per region
Examples:
Note: Conceptual drawing only. The number of Availability Zones (AZ) may vary.
US East (VA)
AZ - a AZ - b
AZ - c AZ - d
AZ - e
Asia Pacific (Tokyo)
AZ - a AZ - b
AZ – c
US East (N. Virginia)
us-east-1a
us-east-1b
us-east-1c
us-east-1d
us-east-1e
us-east-1f
AZ - f
Asia Pacific (Tokyo)
ap-northeast-1a
ap-northeast-1b
ap-northeast-1c
ap-northeast-1d
AZ - d
22
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
High Availability Using Multi-AZ
Deployments
Availability
Zone - A
Availability
Zone - B
Availability
Zone - C
Region
23
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Global Infrastructure –
Edge Locations
110+ edge locations
Local points of presence that support AWS services like:
Amazon Route 53
Amazon CloudFront
AWS WAF
AWS Shield
24
Session 2
AWS Foundation Services
Nairobi – October 22nd
#AWSomeDay
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Session 2 Topics
Amazon Elastic Compute Cloud (EC2)
Amazon Virtual Private Cloud (VPC)
Amazon Storage Services
Amazon Simple Storage Service (S3)
Amazon Elastic Block Store (EBS)
26
Amazon Elastic Compute
Cloud (EC2)
27
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Elastic Compute Cloud (EC2)
Resizable compute capacity
Complete control of your computing resources
Reduced time required to obtain and boot new
server instancesAmazon
EC2
28
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon EC2 Facts
Scale capacity as your computing requirements change
Pay only for capacity that you actually use
Choose Linux or Windows
Deploy across AWS Regions and Availability Zones for reliability
Use tags to help manage your Amazon EC2 resources
29
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Launching an Amazon EC2 Instance
via the Management Console
Determine the AWS Region in which you want to launch the
Amazon EC2 instance.
Launch an Amazon EC2 instance from a pre-configured Amazon
Machine Image (AMI).
Choose an instance type based on CPU, memory, storage, and
network requirements.
Configure network, IP address, security groups, storage volume,
tags, and key pair.
30
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Machine Image (AMI) Details
An AMI includes the following:
A template for the root volume for the instance (for example, an
operating system, an application server, and applications).
Launch permissions that control which AWS accounts can use
the AMI to launch instances.
A block device mapping that specifies the volumes to attach to
the instance when it is launched.
31
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Instances and AMIs
Select an AMI based on:
Region
Operating system
Architecture (32-bit or 64-bit)
Launch permissions
Storage for the root device AMI
Instances
Instance
Launch instances
of any type
Host
computer
Host
computer
32
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon EC2 Instances
OS, Applications
and
Configuration
AMI
Running or
Stopped VM
Instances
AZ
VPC
Region
EBS
Amazon S3
EBS Snapshots S3 Buckets
EBS EBS EBS EBS EBS
AZ
Instances Instances
33
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Instance Lifecycle
AMI
pending
Launch
runningrebooting
Reboot
Start
terminated
shutting-down
Terminate
Terminate
EBS-backed instances only
Stop
stopping stopped
34
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Choosing the Right Amazon EC2
Instance Type
Amazon EC2 provides a wide selection of instance types that are
optimized for different use cases and workload requirements.
Consider the following when choosing your instances:
Core count
Memory size
Storage size and type
Network performance
CPU technologies
AWS uses Intel® Xeon® processors to provide customers with
high performance and value.
35
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Get the Intel® Advantage
Intel’s Haswell microarchitecture on new X1, C5, D2, and M5
instances, with custom Intel® Xeon® v3 processors, provides new
features:
Haswell microarchitecture can boost existing applications performance
by 30% or more for better workload performance and faster response
times.
Hardware Assisted technologies, such as Intel® AVX2.0 instructions, can
double the floating-point performance for compute-intensive workloads
and provide additional instructions for compression and encryption
36
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Intel® Processor Technologies
Intel® AVX: Provides dramatically better performance for highly
parallel HPC workloads such as life science engineering, data mining,
and financial analysis. AVX also enhances image, video, and audio
processing.
Intel® AES-NI: Enhances security with new encryption instructions
that reduce the performance penalty associated with
encrypting/decrypting data.
Intel® Turbo Boost Technology: Provides more computing power
when you need it with performance that adapts to spikes in your
workload.
Intel Transactional Synchronization (TSX) Extensions: Increases the
throughput of independent transactions.
P-state and C-state control: Gives you the ability to individually tune
each core’s performance and sleep states to improve application
performance.
37
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Instance Type Families
Instance Family Some Use Cases
General purpose (T2, M5, M4)
• Low-traffic websites and web applications
• Small databases and mid-size databases
Compute-optimized (C5, C4)
• High performance web servers
• Video-encoding
Memory-optimized (X1e, X1, R4)
• High performance databases
• Distributed memory caches
Storage-optimized (H1, I3, D2)
• Data warehousing
• Log or data-processing applications
Accelerated Computing (P3, P2, G3,
F1)
• 3D visualizations
• Machine learning
38
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Example of Amazon EC2 Instances
with Intel® Xeon® Technology
AWS
Instance
Type
General
Purpose
T2
General
Purpose
M4
Compute-
Optimized
C4
Memory-
Optimized
X1
Storage-
Optimized
I3
Storage-
Optimized
D2
Intel Xeon
Processor
Intel Xeon
Family
E5-2686 v4
E5-2676 v3
E5-2666 v3 E7-8880 v3 E5-2686 v4 E5-2676 v3
Intel AVX Yes AVX 2.0 AVX 2.0 AVX 2.0 Yes AVX 2.0
Intel AES-NI No Yes Yes Yes Yes Yes
Intel Turbo
Boost
Yes Yes Yes Yes Yes Yes
Intel TSX No No No Yes No No
Per core P-
and C-state
control
No No
Yes
(8xlarge only)
No No No
SSD Storage EBS only
EBS:
Optimized by
default
EBS Optimized
by default
EBS Optimized
by default
Yes No
39
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
X1e Instance Example
X1e instances are optimized for high-performance databases, in-
memory databases and other memory intensive enterprise
applications.
Features include:
Up to 3,904 GiB of memory
High frequency Intel Xeon E7 v3 Haswell processors with up to 128
vCPU cores
One of the lowest price per GiB of RAM
Ability to control processor P-state and C-state configurations
40
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Instance Metadata
Is data about your instance.
Can be used to configure or manage a running instance.
41
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Retrieving Instance Metadata
To view all categories of instance metadata
from within a running instance, use the
following URI:
http://169.254.169.254/latest/meta-data/
On a Linux instance, you can use:
$ curl http://169.254.169.254/latest/meta-data/
$ GET http://169.254.169.254/latest/meta-data/
All metadata is returned as text (content
type text/plain).
42
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Instance User Data
Can be passed to the instance at launch.
Can be used to perform common automated configuration
tasks.
Runs scripts after the instance starts.
43
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Adding User Data
You can specify user data when launching an instance.
User data can be:
Linux script – executed by cloud-init
Windows batch or PowerShell scripts – executed by EC2Launch service
User data scripts run once per instance ID by default.
44
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
User Data Example Linux
#!/bin/sh
yum -y install httpd
chkconfig httpd on
/etc/init.d/httpd start
User data shell scripts must start with the #!
characters and the path to the interpreter you want
to read the script.
Install Apache web server
Enable the web server
Start the web server
45
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
User Data Example Windows
<powershell>
Import-Module ServerManager
Install-WindowsFeature web-server, web-webserver
Install-WindowsFeature web-mgmt-tools
</powershell>
Import the Server Manager module for
Windows PowerShell.
Install IIS
Install Web Management Tools
46
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Retrieving User Data
To retrieve user data, use the following URI:
http://169.254.169.254/latest/user-data
On a Linux instance, you can use:
$ curl http://169.254.169.254/latest/user-data/
$ GET http://169.254.169.254/latest/user-data/
47
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon EC2 Purchasing Options
On-Demand
Instances
Pay by the
hour.
Reserved
Instances
Purchase, at a
significant
discount,
instances that
are always
available.
1-year to 3-
year terms.
Scheduled
Instances
Purchase
instances that
are always
available on
the specified
recurring
schedule, for a
one-year term.
Spot
Instances
Bid on unused
instances,
which can run
as long as they
are available
and your bid is
above the
Spot price.
Dedicated
Hosts
Pay for a
physical host
that is fully
dedicated to
running your
instances.
Dedicated
Instances
Pay, by the
hour, for
instances that
run on single-
tenant
hardware.
48
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Marketplace: IT Software
Optimized for the Cloud
Online store to discover, purchase, and deploy
IT software on top of the AWS infrastructure.
Catalog of 4100+ IT software solutions
including Paid, BYOL, Open Source, SaaS, and
free-to-try options.
Pre-configured to operate on AWS.
Software checked by AWS for security and operability.
Deploys to AWS environment in minutes.
Flexible, usage-based billing models.
Software charges billed to AWS account.
Includes AWS Test Drive/Quick Starts.
https://aws.amazon.com/marketplace
49
Networking: Amazon VPC
50
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Virtual Private Cloud (VPC)
Provision a private, isolated virtual network on the
AWS cloud.
Have complete control over your virtual networking
environment.
Amazon
VPC
51
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPCs and Subnets
A subnet defines a range of IP addresses in your VPC.
You can launch AWS resources into a subnet that you select.
A private subnet should be used for resources that won’t be
accessible over the Internet.
A public subnet should be used for resources that will be
accessed over the Internet.
Each subnet must reside entirely within one Availability Zone
and cannot span zones.
52
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon VPC Example
Public Subnet Private Subnet VPN Only Subnet
DB Server
Web Server
Customer
Network
R
Internet
App Server
VPC NAT
Gateway
Internet
Gateway
Web Server App Server DB Server
Virtual
Private
Gateway
53
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Security in Your VPC
Security groups
Network access control lists
(ACLs)
Key Pairs
Subnet
10.0.1.0/24
Internet GatewayVPN Gateway
VPC Router
10.0.0.0/16
Security
Group
Security
Group
Network ACL Network ACL
Route Table Route Table
instance instance instance instance
Subnet
10.0.0.0/24
Security
Group
Security
Group
54
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPN Connections
VPN Connectivity option Description
AWS Hardware VPN
You can create an IPsec hardware VPN connection
between your VPC and your remote network.
AWS Direct Connect
AWS Direct Connect provides a dedicated private
connection from a remote network to your VPC.
AWS VPN CloudHub
You can create multiple AWS hardware VPN
connections via your VPC to enable communications
between various remote networks.
Software VPN
You can create a VPN connection to your remote
network by using an Amazon EC2 instance in your VPC
that’s running a software VPN appliance.
55
Storage Services:
Amazon S3 and Amazon
EBS
56
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Simple Storage Service (S3)
Storage for the Internet
Natively online, HTTP access
Storage that allows you to store and retrieve any
amount of data, any time, from anywhere on the web
Highly scalable, reliable, fast and durable
Amazon S3
57
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon S3 Facts
Can store an unlimited number of objects in a bucket
Objects can be up to 5 TB; no bucket size limit
Designed for 99.999999999% durability and 99.99% availability of
objects over a given year
Can use HTTP/S endpoints to store and retrieve any amount of data,
at any time, from anywhere on the web
Highly scalable, reliable, fast, and inexpensive
Can use optional server-side encryption using AWS or customer-
managed provided client-side encryption
Auditing is provided by access logs
Provides standards-based REST and SOAP interfaces
58
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Common Use Scenarios
Storage and backup
Application file hosting
Media hosting
Software delivery
Store AMIs and snapshots
59
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon S3 Concepts
Amazon S3 stores data as
objects within buckets.
An object is composed of a file
and optionally any metadata
that describes that file.
You can have up to 100 buckets
in each account.
You can control access to the
bucket and its objects.
Amazon
S3
Bucket
with
Objects
Bucket
Object
60
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Object Keys
An object key is the unique identifier for an object in a
bucket.
http://doc.s3.amazonaws.com/2006-03-01/AmazonS3.html
Bucket Object/Key
61
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon S3 Security
You can control access to buckets and objects with:
Access Control Lists (ACLs)
Bucket policies
Identity and Access Management (IAM) policies
You can upload or download data to Amazon S3 via SSL
encrypted endpoints.
You can encrypt data using AWS SDKs.
62
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon S3 Versioning
Protects from accidental overwrites and deletes with no
performance penalty.
Generates a new version with every upload.
Allows easily retrieval of deleted objects or roll back to previous
versions.
Three states of an Amazon S3 bucket
Un-versioned (default)
Versioning-enabled
Versioning-suspended
Versioning
Enabled
Key: photo.gif
ID: 121212
Key: photo.gif
ID: 111111
63
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon S3 Object Lifecycle
Lifecycle management defines how Amazon S3 manages objects
during their lifetime.
Some objects that you store in an Amazon S3 bucket might
have a well-defined lifecycle:
Log files
Archive documents
Digital media archives
Financial and healthcare records
Raw genomics sequence data
Long-term database backups
Data that must be retained for regulatory compliance
64
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon S3 Pricing
Pay only for what you use
No minimum fee
Prices based on location of your Amazon S3 bucket
Estimate monthly bill using the AWS Simple Monthly Calculator
Pricing is available as:
Storage Pricing
Request Pricing
Data Transfer Pricing: data transferred out of Amazon S3
65
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Glacier
Long term low-cost archiving service
Optimal for infrequently accessed data
Designed for 99.999999999% durability
Three to five hours’ standard retrieval time
Less than $0.01 per GB/month (depending on region)
66
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon S3 Storage Classes
Storage Class Durability Availability Other Considerations
Amazon S3
Standard
99.999999999
%
99.99%
Amazon S3
Standard -
Infrequent
Access (IA)
99.999999999
%
99.9%
• Retrieval fee associated with
objects
• Most suitable for infrequently
accessed data
Glacier
99.999999999
%
99.99%
(once restored)
• Not available for real-time
access
• Must restore objects before
you can access them
• Restoring objects can take 1
minute - 12 hours
67
Demo: Amazon S3
68
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Elastic Block Store (EBS)
Persistent block level storage volumes offer
consistent and low-latency performance.
Stored data is automatically replicated within its
Availability Zone.
Snapshots are stored durably in Amazon S3.
Amazon
EBS
69
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon EBS Lifecycle
Vast amounts of
unused space Create
Call CreateVolume
1 GiB to 16 TiB
Attach
Call AttachVolume to affiliate
with one Amazon EC2 instance
Attached
and
In Use
• Format from Amazon EC2
instance OS
• Mount formatted drive
CreateSnapshot
Snapshot to
Amazon S3
Detach
Call DetachVolume
Deleted
Call DeleteVolume
70
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon EBS Volume Types
SSD-backed volumes are:
Optimized for transactional workloads that involve frequent read/write
operations with small I/O size.
Dominant in IOPS performance.
HDD-backed volumes are
Optimized for large streaming workloads.
Dominant in throughput (measured in MiB/s).
71
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon EBS Volume Types
SSD HDD
Volume Type
General Purpose
SSD (gp2)
Provisioned IOPS
SSD (io1)
Throughput Optimized
HDD (st1)
Cold HDD (sc1)
Description
Balances price and
performance for a
wide variety of
transactional loads.
Highest-performance
SSD volume
designed for
mission-critical
applications.
Low-cost HDD designed
for frequently accessed,
throughput-intensive
workloads.
Lowest cost HDD
designed for less
frequently accessed
workloads.
Volume Sizes 1 GiB – 16 TiB 4 GiB – 16 TiB 500 GiB – 16 TiB 500 GiB – 16 TiB
Dominant
Performance
Attribute
IOPS IOPS MiB/s MiB/s
72
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon EBS Facts
EBS is recommended when data must be quickly accessible and
requires long-term persistence.
You can launch your EBS volumes as encrypted volumes. Data
stored at rest on the volume, disk I/O, and snapshots created
from the volume are all encrypted.
You can create point-in-time snapshots of EBS volumes, which
are persisted to Amazon S3.
73
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon EBS Use Cases
OS: Use for boot/root volume, secondary volumes
Databases: Scales with your performance needs
Enterprise applications: Provides reliable block storage to run
mission-critical applications
Business continuity: Minimize data loss and recovery time by
regularly backing up using EBS Snapshots
Applications: Install and persist any application
74
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon EBS Pricing
Pay for what you provision:
Pricing based on region
Review Pricing Calculator online
Pricing is available as:
Storage
IOPS
* Check Amazon EBS Pricing page for current pricing for all regions.
75
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon EBS Scope
Amazon EBS volumes are in a single Availability Zone
Availability Zone A
EBS Volume 1
Availability Zone B
EBS Volume 2
Volume data is replicated across multiple servers in an Availability Zone.
76
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon EBS and Amazon S3
Amazon EBS Amazon S3
Paradigm Block storage with file system Object store
Performance Very fast Fast
Redundancy Across multiple servers in an
Availability Zone
Across multiple facilities in a
Region
Security EBS Encryption – Data volumes
and Snapshots
Encryption
Access from the
Internet?
No (1) Yes (2)
Typical use case It is a disk drive Online storage
(1) Accessible from the Internet if mounted to server and set up as FTP, etc.
(2) Only with proper credentials, unless ACLs are world-readable 77
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon EC2 Instance Storage
Is local, complimentary direct attached block storage.
Includes availability, number of disks, and size based on EC2 instance
type.
Is optimized for up to 365,000 Read IOPS and 315,000 First Write
IOPS.
Is SSD or magnetic.
Has no persistence.
Automatically deletes data when an EC2 instance stops, fails or is
terminated.
78
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon EBS vs. Amazon EC2
Instance Store
Amazon EBS
Data stored on an Amazon EBS volume can persist independently of the life
of the instance.
Storage is persistent.
Amazon EC2 Instance Store
Data stored on a local instance store persists only as long as the instance is
alive.
Storage is ephemeral.
79
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Reboot vs. Stop vs. Terminate
Characteristic Reboot Stop/Start
(EBS-backed instances only)
Terminate
Host computer
The instance stays on the
same host computer.
The instance runs on a new
host computer.
Public IP address No change New address assigned
Elastic IP
addresses (EIP)
EIP remains associated with
the instance.
EIP remains associated with the
instance.
EIP is disassociated from the
instance.
Instance store
volumes
Preserved Erased Erased
EBS volume Preserved Preserved
Boot volume is deleted by
default.
Billing
Instance billing hour doesn’t
change.
You stop incurring charges as
soon as state is changed to
stopping.
You stop incurring charges as
soon as state is changed to
shutting-down.
80
Session 3
AWS Security, Identity, and Access Management
Nairobi – October 22nd
#AWSomeDay
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Shared Responsibility Model
AWS Foundation Services
Compute Storage Database Networking
AWS Global
Infrastructure Regions
Availability Zones
Edge
Locations
Client-side Data
Encryption
Server-side Data
Encryption
Network Traffic
Protection
Platform, Applications, Identity, and Access Management
Operating System, Network, and Firewall Configuration
Customer Applications & Content
Customers
Customers are
responsible for
security IN the cloud
AWS is responsible
for the security OF
the cloud
82
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Physical Security
24/7 trained security staff
AWS data centers in nondescript and undisclosed facilities
Two-factor authentication for authorized staff
Authorization for data center access
83
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Hardware, Software, and Network
Automated change-control process
Bastion servers that record all access attempts
Firewall and other boundary devices
AWS monitoring tools
84
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Certifications and Accreditations
My Number Act [Japan]
G-Cloud [UK]
MPAA
GxPVPAT / Section
508
AWS Compliance Programs - https://aws.amazon.com/compliance/programs/ 85
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SSL Endpoints
VPC
Secure Transmission
Use secure endpoints
to establish secure
communication
sessions (HTTPS).
Instance Firewalls
Use security groups
to configure firewall
rules for instances.
SSL Endpoints Security Groups
Network Control
Use public and
private subnets, NAT,
and VPN support in
your virtual private
cloud to create low-
level networking
constraints for
resource access.
SSL Endpoints
86
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Security Groups
SSL Endpoints Security Groups
Instance Firewalls
Use security groups
to configure firewall
rules for instances.
VPC
Secure Transmission
Use secure endpoints
to establish secure
communication
sessions (HTTPS).
Network Control
Use public and
private subnets, NAT,
and VPN support in
your virtual private
cloud to create low-
level networking
constraints for
resource access.
87
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Multi-Tier Security Groups
www server
www server
www server
app server
app server
app server
Database Tier
security group
Application Tier
security group
Web Tier
security group
db server
db server
db server
Internet
Corporate Admin
Network
ssh/rdp
api api
(all other ports are blocked)
88
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Virtual Private Cloud (VPC)
VPCSSL Endpoints Security Groups
Network Control
Use public and
private subnets, NAT,
and VPN support in
your virtual private
cloud to create low-
level networking
constraints for
resource access.
Instance Firewalls
Use security groups
to configure firewall
rules for instances.
Secure Transmission
Use secure endpoints
to establish secure
communication
sessions (HTTPS).
89
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Identity and Access Management
(IAM)
AWS IAM
3
Manage federated users
and their permissions
2
Manage AWS IAM roles
and their permissions
1
Manage AWS IAM users
and their access
90
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS IAM Authentication
Authentication
AWS Management Console
User Name and Password IAM User
91
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS IAM Authentication
Authentication
AWS CLI or SDK API
Access Key and Secret Key
Access Key ID: AKIAIOSFODNN7EXAMPLE
Secret Access Key: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Java Python .NET
AWS SDK & APIAWS CLI
IAM User
92
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS IAM User Management - Groups
User D
DevOps Group
User C
AWS Account
TestDev Group
User BUser A
93
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS IAM Authorization
Authorization
Policies:
Are JSON documents to describe permissions.
Are assigned to users, groups or roles.
IAM User IAM Group
IAM Roles
94
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS IAM Policy Elements
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1453690971587",
"Action": [
"ec2:Describe*",
"ec2:StartInstances",
"ec2:StopInstances”
],
"Effect": "Allow",
"Resource": "*",
"Condition": {
"IpAddress": {
"aws:SourceIp": "54.64.34.65/32”
}
}
},
{
"Sid": "Stmt1453690998327",
"Action": [
"s3:GetObject*"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::example_bucket/*"
}
]
}
IAM Policy
95
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS IAM Policy Assignment
IAM User
IAM Group
Assigned Assigned
IAM Policy
96
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS IAM Policy Assignment
IAM User
IAM Group
IAM Roles
Assigned Assigned
Assigned
IAM Policy
97
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS IAM Roles
An IAM role uses a policy.
An IAM role has no associated credentials.
IAM users, applications, and services may assume IAM roles.
IAM Roles
98
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS IAM Policy Assignment
IAM User
IAM Group
IAM Roles
Assigned Assigned
Assigned
IAM User
Assumed Assumed
AWS Resources
IAM Policy
99
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Example: Application Access to
AWS Resources
Python application hosted on an Amazon EC2 Instance needs to
interact with Amazon S3.
AWS credentials are required:
Option 1: Store AWS Credentials on the Amazon EC2 instance.
Option 2: Securely distribute AWS credentials to AWS Services and
Applications.
IAM Roles
100
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS IAM Roles - Instance Profiles
Amazon EC2
EC2 MetaData Service
http://169.254.169.254/latest/meta-data/iam/security-credentials/rolename
Amazon S31
3
4
App &
Create Instance
Application
interacts
with S3
Select IAM Role2
101
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS IAM Roles – Assume Role
IAM Restricted Policy
IAM User A-1
AWS Account A
IAM Admin RoleIAM Admin Policy
Assigned
Assume
Assigned
1
2
IAM User B-1
AWS Account B
Amazon S3
Assume
4
Access
53
Access
1
102
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Temporary Security Credentials
(AWS STS)
Use Cases
Cross account access
Federation
Mobile Users
Key rotation for Amazon EC2-based apps
Session
Access Key ID
Secret Access Key
Session Token
Expiration
Temporary Security Credentials
15 minutes to 36 hours
103
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Application Authentication
AWS IAM Application
No Support No Support
OS
104
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS IAM Authentication and
Authorization
Authentication
AWS Management Console
User Name and Password
AWS CLI or SDK API
Access Key and Secret Key
Authorization
Policies IAM User IAM Group
IAM Roles
105
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS IAM Best Practices
Delete AWS account (root) access keys.
Create individual IAM users.
Use groups to assign permissions to IAM users.
Grant least privilege.
Configure a strong password policy.
Enable MFA for privileged users.
106
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS IAM Best Practices (continued)
Use roles for applications that run on Amazon EC2 instances.
Delegate by using roles instead of by sharing credentials.
Rotate credentials regularly.
Remove unnecessary users and credentials.
Use policy conditions for extra security.
Monitor activity in your AWS account.
107
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS CloudTrail
Records AWS API calls for accounts.
Delivers log files with information to an Amazon S3 bucket.
Makes calls using the AWS Management Console, AWS SDKs,
AWS CLI and higher-level AWS services.
AWS CloudTrail Amazon S3 Bucket
Logs
108
Demo: AWS
IAM
109
Session 4
AWS Databases
Nairobi – October 22nd
#AWSomeDay
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SQL and NoSQL Databases
111
SQL NoSQL
Data Storage Rows and Columns Key-Value
Schemas Fixed Dynamic
Querying Using SQL Focused on collection of documents
Scalability Vertical Horizontal
ISBN Title Author Format
9182932465265
Cloud Computing
Concepts
Wilson,
Joe
Paperback
3142536475869
The Database
Guru
Gomez,
Maria
eBook
SQL NoSQL
{
ISBN: 9182932465265,
Title: “Cloud Computing Concepts”,
Author: ”Wilson, Joe”,
Format: “Paperback”
}
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Data Storage Considerations
No one size fits all.
Analyze your data requirements by considering:
Data formats
Data size
Query frequency
Data access speed
Data retention period
112
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Managed Database Services
113
Compute Storage
AWS Global Infrastructure
Database
App Services
Deployment and Administration
Networking
Amazon DynamoDB
Amazon ElastiCache
Amazon RDS
Amazon Redshift
AWS Database Migration Service
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Relational Database Service
(RDS)
Cost-efficient and resizable capacity
Manages time-consuming database
administration tasks
Access to the full capabilities of Amazon Aurora,
MySQL, MariaDB, Microsoft SQL Server, Oracle,
and PostgreSQL databases
114
Amazon
RDS
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon RDS
Simple and fast to deploy
Manages common database administrative tasks
Compatible with your applications
Fast, predictable performance
Simple and fast to scale
Secure
Cost-effective
115
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
DB Instances
DB Instances are the basic building blocks of Amazon RDS.
They are an isolated database environment in the cloud.
They can contain multiple user-created databases.
116
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How Amazon RDS Backups Work
Automatic Backups:
Restore your database to a
point in time.
Are enabled by default.
Let you choose a retention
period up to 35 days.
117
Manual Snapshots:
Let you build a new database
instance from a snapshot.
Are initiated by the user.
Persist until the user deletes
them.
Are stored in Amazon S3.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Cross-Region Snapshots
Are a copy of a database snapshot stored in a different AWS Region.
Provide a backup for disaster recovery.
Can be used as a base for migration to a different region.
118
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon RDS Security
Run your DB instance in an Amazon VPC.
Use IAM policies to grant access to RDS resources.
Use Security Groups.
Use Secure Socket Layer (SSL) connections with DB instances
(Amazon Aurora, Oracle, MySQL, MariaDB, PostgreSQL,
Microsoft SQL Server).
Use RDS encryption to secure instances and snapshots at rest.
Use network encryption and transparent data encryption (TDE)
with Oracle DB and Microsoft SQL Server instances.
Use security features of your DB engine to control access to DB
instance.
119
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
A Simple Application Architecture
120
Amazon RDS database
instance
Amazon EC2 Application
Servers
Elastic Load Balancing
load balancer instance
DB snapshots in
Amazon S3
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Multi-AZ RDS Deployment
With Multi-AZ operation, your database is synchronously
replicated to another Availability Zone in the same AWS Region.
Failover to the standby automatically occurs in case of master
database failure.
Planned maintenance is applied first to standby databases.
121
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
A Resilient, Durable
Application Architecture
122
Amazon RDS database instances:
Master and Multi-AZ standby
Application, in Amazon
EC2 instances
Elastic Load Balancing
load balancer instance
DB snapshots in
Amazon S3
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon RDS Best Practices
Monitor your memory, CPU, and storage usage.
Use Multi-AZ deployments to automatically provision and maintain a
synchronous standby in a different Availability Zone.
Enable automatic backups.
Set the backup window to occur during the daily low in Write IOPS.
To increase the I/O capacity of a DB instance:
Migrate to a DB instance class with high I/O capacity.
Convert from standard storage to provisioned IOPS storage and use a DB
instance class optimized for provisioned IOPS.
Provision additional throughput capacity (if using provisioned IOPS storage).
If your client application is caching the DNS data of your DB instances,
set a TTL of less than 30 seconds.
Test failover for your DB instance.
123
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon DynamoDB
Allows you to store any amount of data with no limits.
Provides fast, predictable performance using SSDs.
Allows you to easily provision and change the request
capacity needed for each table.
Is a fully managed, NoSQL database service.
124
Amazon
DynamoDB
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
DynamoDB Data Model
125
Table:
Music
Items
Attributes (name-value pairs)
Artist
Song
Title
Album
Title Year Genre
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Primary Keys
126
Partition Key
Sort Key
Table: Music
Partition Key: Artist
Sort Key: Song Title
(DynamoDB maintains a sorted index for both keys)
Table:
Music
Artist
Song
Title
Album
Title Year Genre
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Provisioned Throughput
You specify how much provisioned throughput capacity you
need for reads and writes.
Amazon DynamoDB allocates the necessary machine resources
to meet your needs.
127
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Supported Operations
Query:
Query a table using the partition key and an optional sort key filter.
If the table has a secondary index, query using its key.
It is the most efficient way to retrieve items from a table or secondary
index.
Scan:
You can scan a table or secondary index.
Scan reads every item – slower than querying.
You can use conditional expressions in both Query and Scan
operations.
128
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Simple Application Architecture
129
Elastic Load
Balancing Amazon EC2
app instances
Clients
Amazon
DynamoDB
Business logic
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon RDS and Amazon DynamoDB
Factors Relational (Amazon RDS) NoSQL (Amazon DynamoDB)
Application
Type
•Existing database apps
•Business process–centric apps
• New web-scale applications
• Large number of small writes and
reads
Application
Characteristic
s
•Relational data models,
transactions
•Complex queries, joins, and
updates
•Simple data models, transactions
•Range queries, simple updates
Scaling
Application or DBA–architected
(clustering, partitions, sharding)
Seamless, on-demand scaling based on
application requirements
QoS
• Performance–depends on data
model, indexing, query, and
storage optimization
• Reliability and availability
• Durability
• Performance–Automatically optimized
by the system
• Reliability and availability
• Durability
130
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Database Considerations
131
If You Need Consider Using
A relational database
service with minimal
administration
Amazon RDS
• Choice of Amazon Aurora, MySQL, MariaDB, Microsoft
SQL Server, Oracle, or PostgreSQL database engines
• Scale compute and storage
• Multi-AZ availability
A fast, highly scalable
NoSQL database
service
Amazon DynamoDB
• Extremely fast performance
• Seamless scalability and reliability
• Low cost
A database you can
manage on your own
Your choice of AMIs on Amazon EC2
and Amazon EBS that provide scale compute and
storage, complete control over instances, and more.
Session 5
AWS Elasticity and Management Tools
Nairobi – October 22nd
#AWSomeDay
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Triad of Services
133
Latency
Utilization
Amazon
CloudWatch
Auto Scaling
Elastic Load
Balancing
Auto Scaling group
Execute Scaling
Policy
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Elastic Load Balancing
Distributes traffic across multiple EC2 instances, in
multiple Availability Zones
Supports health checks to detect unhealthy Amazon
EC2 instances
Supports the routing and load balancing of HTTP,
HTTPS, SSL, and TCP traffic to Amazon EC2 instances
134
Elastic Load
Balancing
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Classic Load Balancer: How It Works
Register instances with your
load balancer.
Load balancer routes request at
either:
Transport layer (TCP)
Application layer (HTPP/HTTPS)
Intended for applications build
within the EC2-Classic network
Recommendation for new
applications is to use Application
Load Balancer or Network Load
Balancer
135
Availability Zone A Availability Zone B
load balancer
X
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Application Load Balancer:
How It Works
Register instances as targets
in a target group, and route
traffic to a target group.
Load balancer routes request
at the Application layer
(HTPP/HTTPS).
136
Target Group /mobile
load balancer
Listener ListenerRule Rule Rule
Target Group Target Group /api
Target Target Target Target Target Target Target
Health
Check
Health
Check
Health
Check
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Network Load Balancer: How it Works
Register instances as targets
in a target group, and route
traffic to a target group.
Load balancer routes request
at the Transport layer (TCP).
137
load balancer
ListenerRule
Target Group
Target Target
Health
Check
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Load Balancer Comparison
Feature Classic
Load Balancer
Application
Load Balancer
Network
Load Balancer
Protocols TCP, SSL, HTTP, HTTPS HTTP, HTTPS TCP
Platforms EC2-Classic, VPC VPC VPC
Cross-zone load
balancing
Yes Yes Yes
Logging Yes Yes Yes
Path-Based Routing No Yes No
Sticky Sessions No Yes No
Static IP No No Yes
138
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon CloudWatch
A monitoring service for AWS cloud resources and the
applications you run on AWS
Visibility into resource utilization, operational
performance, and overall demand patterns
Custom application-specific metrics of your own
Accessible via AWS Management Console, APIs, SDK,
or CLI
139
Amazon
CloudWatch
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon CloudWatch Facts
Monitor other AWS resources
View graphics and statistics
Set Alarms
140
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon CloudWatch Architecture
141
AWS resources
that support
CloudWatch
Amazon
CloudWatch
Available
Statistics
Statistics
Consumer
AWS
Management
Console
CloudWatch Metrics
CPUUtilization
StatusCheckFailed
Custom
Application-
Specific Metrics
PageViewCount
Amazon
CloudWatch
Alarm
SNS Email
Notification
Auto Scaling
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
CloudWatch Metrics Examples
142
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Auto Scaling
Scale your Amazon EC2 capacity automatically
Well-suited for applications that experience variability
in usage
Available at no additional charge
143
Auto
Scaling
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Auto Scaling Benefits
144
Better Cost
Management
Better
Availability
Better Fault
Tolerance
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Launch Configurations
A launch configuration is a template that an Auto Scaling group
uses to launch EC2 instances.
When you create a launch configuration, you can specify:
AMI ID
Instance type
Key pair
Security groups
Block device mapping
User data
145
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Auto Scaling Groups
Contain a collection of EC2 instances that share similar
characteristics.
Instances in an Auto Scaling group are treated as a logical
grouping for the purpose of instance scaling and management.
146
Auto Scaling group
Minimum size
Desired capacity
Maximum size
Scale out as needed
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Dynamic Scaling
You can create a scaling policy that uses CloudWatch alarms to
determine:
When your Auto Scaling group should scale out.
When your Auto Scaling group should scale in.
You can use alarms to monitor:
Any of the metrics that AWS services send to Amazon CloudWatch.
Your own custom metrics.
147
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Auto Scaling Basic Lifecycle
148
instances
Auto Scaling group
Scale Out
Amazon CloudWatch Scheduled Event
Scale In
Amazon CloudWatch Scheduled Event
Launch
Instance
Attach to Group
Detach from
Group
Terminate
Instance X
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Trusted Advisor
Best practice and recommendation engine.
Provides AWS customers with performance and
security recommendations in four categories:
Cost optimization
Security
Fault tolerance
Performance improvement
149
AWS Trusted
Advisor
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Cost Optimization
Amazon EC2 Reserved Instance Optimization
Low-utilization Amazon EC2 Instances
Idle load balancers
Underutilized Amazon EBS volumes
Unassociated Elastic IP addresses
Amazon RDS idle DB instances
150
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Security
Security groups
AWS IAM use
Amazon S3 bucket permissions
MFA on Root Account
AWS IAM password policy
Amazon RDS security group access risk
151
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Fault Tolerance
Amazon EBS Snapshots
Load balancer optimization
Auto Scaling Group Resources
Amazon RDS Multi-AZ
Amazon Route 53 name server delegations
ELB connection draining
152
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Performance Improvement
High-utilization Amazon EC2 instances
Service limits
Large number of rules in EC2 security group
Over-utilized Amazon EBS magnetic volumes
Amazon EC2 to EBS throughput optimization
Amazon CloudFront alternate domain names
153
Session 6
Wrap-Up
Nairobi – October 22nd
#AWSomeDay
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Learning Path
155
AWS Introduction
• The AWS Cloud
• History
• Global Infrastructure
• AWS Management Console
AWS Foundational
Services
• Compute:
• Amazon EC2
• Networking:
• Amazon VPC
• Storage:
• Amazon EBS
• Amazon S3
• Security
• IAM
• Databases:
• Amazon DynamoDB
• Amazon RDS
AWS Management
Tools
• Triad of Services:
• Auto Scaling
• ELB
• Amazon CloudWatch
• AWS Trusted Advisor
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Expand Your Cloud Skills with AWS
156
Certification
https://aws.amazon.com/certification
/
Validate your proven
technical expertise with the
AWS platform and gain
recognition for your skills
Online videos and
labs
Start working with an AWS
service in minutes with free
online instructional videos
and labs
https://aws.amazon.com/training
/
Instructor-led courses
Learn how to design, deploy,
and operate highly available,
cost-effective, and secure
applications on AWS
https://aws.amazon.com/training/self-
paced-labs/
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Self-Paced Labs
Learn an individual AWS Service topic
Follow a Learning Quest by AWS Service Area or Use Case
Practice working with AWS as you prepare for an exam
For more information, see:
https://aws.amazon.com/training/self-paced-labs/
157
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS ILT Training Courses
158
AWS Technical Essentials
1 day
Architecting on AWS
3 days
Developing on AWS
3 days
Systems Operations on AWS
3 days
Big Data on AWS
3 days
Advanced Architecting on AWS
3 days
DevOps Engineering on AWS
3 days
Security Operations on AWS
3 days
Migrating to AWS
2 days
Data Warehousing on AWS
3 days
https://aws.amazon.com/training/
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Certification
159
For more information, see https://aws.amazon.com/certification/.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Benefits of AWS Certification
160
Individual
• Demonstrate expertise
• Stand out
• Industry visibility
• Customer visibility
• Peer recognition
• Credibility with customers
Employer
• Baseline bar on AWS skills
• Identify expert talent
• Leverage best practices
• Reduce operational risk
• Increase business advantage
• Maximize AWS efficiencies
• Common vocabulary
• Accelerate time to cloud
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Preparing for AWS Certification
For resources to help you prepare for the certification exam,
see: https://aws.amazon.com/certification/certification-prep/
161
Practice ExamsSelf-Paced Labs on qwikLABS
AWS Whitepapers &
FAQs
AWS Documentation &
Reference Architectures
Exam Guides &
Sample Questions
AWS-Authored Study Guide
AWS Technical Training
Thanks for participating!
Nairobi – October 22nd
#AWSomeDay

Contenu connexe

Tendances

Introduction to the AWS Cloud - AWSome Day 2019 - Chicago
Introduction to the AWS Cloud - AWSome Day 2019 - ChicagoIntroduction to the AWS Cloud - AWSome Day 2019 - Chicago
Introduction to the AWS Cloud - AWSome Day 2019 - ChicagoAmazon Web Services
 
Control your cloud environment with AWS management tools
Control your cloud environment with AWS management toolsControl your cloud environment with AWS management tools
Control your cloud environment with AWS management toolsAmazon Web Services
 
Threat detection and mitigation at AWS - SEC301 - Santa Clara AWS Summit
Threat detection and mitigation at AWS - SEC301 - Santa Clara AWS SummitThreat detection and mitigation at AWS - SEC301 - Santa Clara AWS Summit
Threat detection and mitigation at AWS - SEC301 - Santa Clara AWS SummitAmazon Web Services
 
Getting Started on AWS - AWSome Day 2018
Getting Started on AWS - AWSome Day 2018Getting Started on AWS - AWSome Day 2018
Getting Started on AWS - AWSome Day 2018Amazon Web Services
 
AWS Introduction & History - AWSome Day Philadelphia 2019
AWS Introduction & History - AWSome Day Philadelphia 2019AWS Introduction & History - AWSome Day Philadelphia 2019
AWS Introduction & History - AWSome Day Philadelphia 2019Amazon Web Services
 
Paving the Way for the Future of the Automotive Industry
 Paving the Way for the Future of the Automotive Industry Paving the Way for the Future of the Automotive Industry
Paving the Way for the Future of the Automotive IndustryAmazon Web Services
 
Searching for patterns: Log analytics using Amazon ES - ADB205 - New York AWS...
Searching for patterns: Log analytics using Amazon ES - ADB205 - New York AWS...Searching for patterns: Log analytics using Amazon ES - ADB205 - New York AWS...
Searching for patterns: Log analytics using Amazon ES - ADB205 - New York AWS...Amazon Web Services
 
A tale of two customers - Simplified data protection with Veeam, N2WS & AWS -...
A tale of two customers - Simplified data protection with Veeam, N2WS & AWS -...A tale of two customers - Simplified data protection with Veeam, N2WS & AWS -...
A tale of two customers - Simplified data protection with Veeam, N2WS & AWS -...Amazon Web Services
 
AWS identity services - Enabling & securing your cloud journey - SEC202 - San...
AWS identity services - Enabling & securing your cloud journey - SEC202 - San...AWS identity services - Enabling & securing your cloud journey - SEC202 - San...
AWS identity services - Enabling & securing your cloud journey - SEC202 - San...Amazon Web Services
 
Module 1: Introduction to the AWS Cloud - AWSome Day Online Conference 2019
Module 1: Introduction to the AWS Cloud - AWSome Day Online Conference 2019Module 1: Introduction to the AWS Cloud - AWSome Day Online Conference 2019
Module 1: Introduction to the AWS Cloud - AWSome Day Online Conference 2019Amazon Web Services
 
Transform with Cloud to drive your Future | AWS Summit Tel Aviv 2019
Transform with Cloud to drive your Future | AWS Summit Tel Aviv 2019Transform with Cloud to drive your Future | AWS Summit Tel Aviv 2019
Transform with Cloud to drive your Future | AWS Summit Tel Aviv 2019Amazon Web Services
 
Introduction to AWS OutIntroduction to AWS Outposts - CMP203 - Chicago AWS Su...
Introduction to AWS OutIntroduction to AWS Outposts - CMP203 - Chicago AWS Su...Introduction to AWS OutIntroduction to AWS Outposts - CMP203 - Chicago AWS Su...
Introduction to AWS OutIntroduction to AWS Outposts - CMP203 - Chicago AWS Su...Amazon Web Services
 
AWSome Day Online 2020_Modul 1: Pengenalan AWS Cloud
AWSome Day Online 2020_Modul 1: Pengenalan AWS CloudAWSome Day Online 2020_Modul 1: Pengenalan AWS Cloud
AWSome Day Online 2020_Modul 1: Pengenalan AWS CloudAmazon Web Services
 
Starting your Cloud Transformation Journey - Tel Aviv Summit 2018
Starting your Cloud Transformation Journey - Tel Aviv Summit 2018Starting your Cloud Transformation Journey - Tel Aviv Summit 2018
Starting your Cloud Transformation Journey - Tel Aviv Summit 2018Boaz Ziniman
 
Module 3: Security, Architecting Best Practices, Pricing, Partner Solutions, ...
Module 3: Security, Architecting Best Practices, Pricing, Partner Solutions, ...Module 3: Security, Architecting Best Practices, Pricing, Partner Solutions, ...
Module 3: Security, Architecting Best Practices, Pricing, Partner Solutions, ...Amazon Web Services
 

Tendances (20)

Overview of Amazon Web Services
Overview of Amazon Web ServicesOverview of Amazon Web Services
Overview of Amazon Web Services
 
Introduction to the AWS Cloud - AWSome Day 2019 - Chicago
Introduction to the AWS Cloud - AWSome Day 2019 - ChicagoIntroduction to the AWS Cloud - AWSome Day 2019 - Chicago
Introduction to the AWS Cloud - AWSome Day 2019 - Chicago
 
AWSome Day 2019 - Mexico City
AWSome Day 2019 - Mexico CityAWSome Day 2019 - Mexico City
AWSome Day 2019 - Mexico City
 
Control your cloud environment with AWS management tools
Control your cloud environment with AWS management toolsControl your cloud environment with AWS management tools
Control your cloud environment with AWS management tools
 
Threat detection and mitigation at AWS - SEC301 - Santa Clara AWS Summit
Threat detection and mitigation at AWS - SEC301 - Santa Clara AWS SummitThreat detection and mitigation at AWS - SEC301 - Santa Clara AWS Summit
Threat detection and mitigation at AWS - SEC301 - Santa Clara AWS Summit
 
AWS Loves Startups
AWS Loves StartupsAWS Loves Startups
AWS Loves Startups
 
Getting Started on AWS - AWSome Day 2018
Getting Started on AWS - AWSome Day 2018Getting Started on AWS - AWSome Day 2018
Getting Started on AWS - AWSome Day 2018
 
AWS Introduction & History - AWSome Day Philadelphia 2019
AWS Introduction & History - AWSome Day Philadelphia 2019AWS Introduction & History - AWSome Day Philadelphia 2019
AWS Introduction & History - AWSome Day Philadelphia 2019
 
Paving the Way for the Future of the Automotive Industry
 Paving the Way for the Future of the Automotive Industry Paving the Way for the Future of the Automotive Industry
Paving the Way for the Future of the Automotive Industry
 
Serverless Functions Deep Dive
Serverless Functions Deep DiveServerless Functions Deep Dive
Serverless Functions Deep Dive
 
Searching for patterns: Log analytics using Amazon ES - ADB205 - New York AWS...
Searching for patterns: Log analytics using Amazon ES - ADB205 - New York AWS...Searching for patterns: Log analytics using Amazon ES - ADB205 - New York AWS...
Searching for patterns: Log analytics using Amazon ES - ADB205 - New York AWS...
 
AWS PROTECTED Webinar
AWS PROTECTED WebinarAWS PROTECTED Webinar
AWS PROTECTED Webinar
 
A tale of two customers - Simplified data protection with Veeam, N2WS & AWS -...
A tale of two customers - Simplified data protection with Veeam, N2WS & AWS -...A tale of two customers - Simplified data protection with Veeam, N2WS & AWS -...
A tale of two customers - Simplified data protection with Veeam, N2WS & AWS -...
 
AWS identity services - Enabling & securing your cloud journey - SEC202 - San...
AWS identity services - Enabling & securing your cloud journey - SEC202 - San...AWS identity services - Enabling & securing your cloud journey - SEC202 - San...
AWS identity services - Enabling & securing your cloud journey - SEC202 - San...
 
Module 1: Introduction to the AWS Cloud - AWSome Day Online Conference 2019
Module 1: Introduction to the AWS Cloud - AWSome Day Online Conference 2019Module 1: Introduction to the AWS Cloud - AWSome Day Online Conference 2019
Module 1: Introduction to the AWS Cloud - AWSome Day Online Conference 2019
 
Transform with Cloud to drive your Future | AWS Summit Tel Aviv 2019
Transform with Cloud to drive your Future | AWS Summit Tel Aviv 2019Transform with Cloud to drive your Future | AWS Summit Tel Aviv 2019
Transform with Cloud to drive your Future | AWS Summit Tel Aviv 2019
 
Introduction to AWS OutIntroduction to AWS Outposts - CMP203 - Chicago AWS Su...
Introduction to AWS OutIntroduction to AWS Outposts - CMP203 - Chicago AWS Su...Introduction to AWS OutIntroduction to AWS Outposts - CMP203 - Chicago AWS Su...
Introduction to AWS OutIntroduction to AWS Outposts - CMP203 - Chicago AWS Su...
 
AWSome Day Online 2020_Modul 1: Pengenalan AWS Cloud
AWSome Day Online 2020_Modul 1: Pengenalan AWS CloudAWSome Day Online 2020_Modul 1: Pengenalan AWS Cloud
AWSome Day Online 2020_Modul 1: Pengenalan AWS Cloud
 
Starting your Cloud Transformation Journey - Tel Aviv Summit 2018
Starting your Cloud Transformation Journey - Tel Aviv Summit 2018Starting your Cloud Transformation Journey - Tel Aviv Summit 2018
Starting your Cloud Transformation Journey - Tel Aviv Summit 2018
 
Module 3: Security, Architecting Best Practices, Pricing, Partner Solutions, ...
Module 3: Security, Architecting Best Practices, Pricing, Partner Solutions, ...Module 3: Security, Architecting Best Practices, Pricing, Partner Solutions, ...
Module 3: Security, Architecting Best Practices, Pricing, Partner Solutions, ...
 

Similaire à AWSome Day Nairobi 2019

AWSome Day Nashville 2018_Training
AWSome Day Nashville 2018_Training AWSome Day Nashville 2018_Training
AWSome Day Nashville 2018_Training Amazon Web Services
 
Module 1 - AWSome Day Online Conference Thailand
Module 1 - AWSome Day Online Conference Thailand Module 1 - AWSome Day Online Conference Thailand
Module 1 - AWSome Day Online Conference Thailand Amazon Web Services
 
Getting Started on AWS - AWSome Day Dallas 2018
Getting Started on AWS - AWSome Day Dallas 2018Getting Started on AWS - AWSome Day Dallas 2018
Getting Started on AWS - AWSome Day Dallas 2018Amazon Web Services
 
Getting Started on AWS - AWSome Day Houston 2018
Getting Started on AWS - AWSome Day Houston 2018Getting Started on AWS - AWSome Day Houston 2018
Getting Started on AWS - AWSome Day Houston 2018Amazon Web Services
 
Module 1: AWS Introduction and History - AWSome Day Online Conference - APAC
Module 1: AWS Introduction and History - AWSome Day Online Conference - APACModule 1: AWS Introduction and History - AWSome Day Online Conference - APAC
Module 1: AWS Introduction and History - AWSome Day Online Conference - APACAmazon Web Services
 
AWSome Day 2016 - Module 1: AWS Introduction and History
AWSome Day 2016 - Module 1: AWS Introduction and HistoryAWSome Day 2016 - Module 1: AWS Introduction and History
AWSome Day 2016 - Module 1: AWS Introduction and HistoryAmazon Web Services
 
Module 1 - AWSome Day Online Conference 2018
Module 1 - AWSome Day Online Conference 2018Module 1 - AWSome Day Online Conference 2018
Module 1 - AWSome Day Online Conference 2018Amazon Web Services
 
Realize Value of Your Microsoft Investments - Transformation Day Montreal 2018
Realize Value of Your Microsoft Investments - Transformation Day Montreal 2018Realize Value of Your Microsoft Investments - Transformation Day Montreal 2018
Realize Value of Your Microsoft Investments - Transformation Day Montreal 2018Amazon Web Services
 
Aws Tools for Alexa Skills
Aws Tools for Alexa SkillsAws Tools for Alexa Skills
Aws Tools for Alexa SkillsBoaz Ziniman
 
MassMutual Goes Cloud-First with Hybrid Cloud on AWS
MassMutual Goes Cloud-Firstwith Hybrid Cloud on AWSMassMutual Goes Cloud-Firstwith Hybrid Cloud on AWS
MassMutual Goes Cloud-First with Hybrid Cloud on AWSTom Laszewski
 
APN_Live_20190722_Introduction_to_SA
APN_Live_20190722_Introduction_to_SAAPN_Live_20190722_Introduction_to_SA
APN_Live_20190722_Introduction_to_SAAmazon Web Services
 
Dissecting Media Asset Management Architecture and Media Archive TCO (MAE301)...
Dissecting Media Asset Management Architecture and Media Archive TCO (MAE301)...Dissecting Media Asset Management Architecture and Media Archive TCO (MAE301)...
Dissecting Media Asset Management Architecture and Media Archive TCO (MAE301)...Amazon Web Services
 
The AWS Shared Responsibility Model in Practice
The AWS Shared Responsibility Model in PracticeThe AWS Shared Responsibility Model in Practice
The AWS Shared Responsibility Model in PracticeAlert Logic
 
The Future of Enterprise Applications is Serverless (ENT314-R1) - AWS re:Inve...
The Future of Enterprise Applications is Serverless (ENT314-R1) - AWS re:Inve...The Future of Enterprise Applications is Serverless (ENT314-R1) - AWS re:Inve...
The Future of Enterprise Applications is Serverless (ENT314-R1) - AWS re:Inve...Amazon Web Services
 
The AWS Shared Responsibility Model in Practice
The AWS Shared Responsibility Model in PracticeThe AWS Shared Responsibility Model in Practice
The AWS Shared Responsibility Model in PracticeAlert Logic
 
Transforming Enterprise IT - AWS Transformation Days Raleigh 2018.pdf
Transforming Enterprise IT - AWS Transformation Days Raleigh 2018.pdfTransforming Enterprise IT - AWS Transformation Days Raleigh 2018.pdf
Transforming Enterprise IT - AWS Transformation Days Raleigh 2018.pdfAmazon Web Services
 

Similaire à AWSome Day Nairobi 2019 (20)

AWSome Day Nashville 2018_Training
AWSome Day Nashville 2018_Training AWSome Day Nashville 2018_Training
AWSome Day Nashville 2018_Training
 
AWS Technical Essentials Day
AWS Technical Essentials DayAWS Technical Essentials Day
AWS Technical Essentials Day
 
AWS Technical Essentials Day
AWS Technical Essentials DayAWS Technical Essentials Day
AWS Technical Essentials Day
 
Module 1 - AWSome Day Online Conference Thailand
Module 1 - AWSome Day Online Conference Thailand Module 1 - AWSome Day Online Conference Thailand
Module 1 - AWSome Day Online Conference Thailand
 
Getting Started on AWS - AWSome Day Dallas 2018
Getting Started on AWS - AWSome Day Dallas 2018Getting Started on AWS - AWSome Day Dallas 2018
Getting Started on AWS - AWSome Day Dallas 2018
 
Getting Started on AWS - AWSome Day Houston 2018
Getting Started on AWS - AWSome Day Houston 2018Getting Started on AWS - AWSome Day Houston 2018
Getting Started on AWS - AWSome Day Houston 2018
 
Module 1: AWS Introduction and History - AWSome Day Online Conference - APAC
Module 1: AWS Introduction and History - AWSome Day Online Conference - APACModule 1: AWS Introduction and History - AWSome Day Online Conference - APAC
Module 1: AWS Introduction and History - AWSome Day Online Conference - APAC
 
AWSome Day 2016 - Module 1: AWS Introduction and History
AWSome Day 2016 - Module 1: AWS Introduction and HistoryAWSome Day 2016 - Module 1: AWS Introduction and History
AWSome Day 2016 - Module 1: AWS Introduction and History
 
Module 1 - AWSome Day Online Conference 2018
Module 1 - AWSome Day Online Conference 2018Module 1 - AWSome Day Online Conference 2018
Module 1 - AWSome Day Online Conference 2018
 
AWS Intro & History
AWS Intro & HistoryAWS Intro & History
AWS Intro & History
 
Realize Value of Your Microsoft Investments - Transformation Day Montreal 2018
Realize Value of Your Microsoft Investments - Transformation Day Montreal 2018Realize Value of Your Microsoft Investments - Transformation Day Montreal 2018
Realize Value of Your Microsoft Investments - Transformation Day Montreal 2018
 
Aws Tools for Alexa Skills
Aws Tools for Alexa SkillsAws Tools for Alexa Skills
Aws Tools for Alexa Skills
 
AWSome Day Helsinki Training
AWSome Day Helsinki TrainingAWSome Day Helsinki Training
AWSome Day Helsinki Training
 
MassMutual Goes Cloud-First with Hybrid Cloud on AWS
MassMutual Goes Cloud-Firstwith Hybrid Cloud on AWSMassMutual Goes Cloud-Firstwith Hybrid Cloud on AWS
MassMutual Goes Cloud-First with Hybrid Cloud on AWS
 
APN_Live_20190722_Introduction_to_SA
APN_Live_20190722_Introduction_to_SAAPN_Live_20190722_Introduction_to_SA
APN_Live_20190722_Introduction_to_SA
 
Dissecting Media Asset Management Architecture and Media Archive TCO (MAE301)...
Dissecting Media Asset Management Architecture and Media Archive TCO (MAE301)...Dissecting Media Asset Management Architecture and Media Archive TCO (MAE301)...
Dissecting Media Asset Management Architecture and Media Archive TCO (MAE301)...
 
The AWS Shared Responsibility Model in Practice
The AWS Shared Responsibility Model in PracticeThe AWS Shared Responsibility Model in Practice
The AWS Shared Responsibility Model in Practice
 
The Future of Enterprise Applications is Serverless (ENT314-R1) - AWS re:Inve...
The Future of Enterprise Applications is Serverless (ENT314-R1) - AWS re:Inve...The Future of Enterprise Applications is Serverless (ENT314-R1) - AWS re:Inve...
The Future of Enterprise Applications is Serverless (ENT314-R1) - AWS re:Inve...
 
The AWS Shared Responsibility Model in Practice
The AWS Shared Responsibility Model in PracticeThe AWS Shared Responsibility Model in Practice
The AWS Shared Responsibility Model in Practice
 
Transforming Enterprise IT - AWS Transformation Days Raleigh 2018.pdf
Transforming Enterprise IT - AWS Transformation Days Raleigh 2018.pdfTransforming Enterprise IT - AWS Transformation Days Raleigh 2018.pdf
Transforming Enterprise IT - AWS Transformation Days Raleigh 2018.pdf
 

Plus de Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateAmazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSAmazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsAmazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareAmazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSAmazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAmazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareAmazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon Web Services
 

Plus de Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

AWSome Day Nairobi 2019

  • 1. Nairobi – October 22nd #AWSomeDay
  • 2. Today’s Objectives Nairobi – October 22nd #AWSomeDay
  • 3. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Objectives Recognize terminology and concepts as they relate to the AWS platform and navigate the AWS Management Console. Understand the foundational services, including Amazon Elastic Compute Cloud (EC2), Amazon Virtual Private Cloud (VPC), Amazon Simple Storage Service (S3), and Amazon Elastic Block Store (EBS). Understand the security measures AWS provides and key concepts of AWS Identity and Access Management (IAM). 3
  • 4. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Objectives Understand AWS database services, including Amazon DynamoDB and Amazon Relational Database Service (RDS). Understand AWS management tools, including Auto Scaling, Amazon CloudWatch, Elastic Load Balancing (ELB), and AWS Trusted Advisor. 4
  • 5. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Sessions Session 1: Introduction and History of AWS Session 2: Foundational Services – Amazon EC2, Amazon VPC, Amazon S3, Amazon EBS Session 3: Security, Identity, and Access Management – IAM Module 4: Databases – Amazon DynamoDB and Amazon RDS 5
  • 6. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Sessions Session 5: AWS Elasticity and Management Tools – Auto Scaling, Elastic Load Balancing, Amazon CloudWatch, and AWS Trusted Advisor Session 6: Course Wrap-Up 6
  • 7. Introduction and History of AWS Nairobi – October 22nd #AWSomeDay
  • 8. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon History 1994: Jeff Bezos incorporated the company. 1995: Amazon.com launched its online bookstore. 2005: Amazon Publishing was launched. 2006: Amazon Web Services (AWS) was launched. 2007: Kindle was launched. 2011: Amazon Fresh was launched. 2012: Amazon Game Studios was launched. 2013: Amazon Art was launched. 2014: Amazon Prime Now was launched. 2015: Amazon Home Services and Amazon Echo were launched. 8
  • 9. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Web Services (AWS) Enable businesses and developers to use web services to build scalable, sophisticated applications. ComputeMessaging Mobile App Services Database Networking Development and Management Tools Payments VPC On-Demand Workforce Analytics Content Delivery Storage 9
  • 10. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Pace of Innovation AWS has been continually expanding its services to support virtually any cloud workload. More than 90 services that include: Compute, storage, networking, database, analytics, application services, deployment Management, developer, mobile, Internet of Things (IoT), Artificial Intelligence (AI) Security, hybrid and enterprise applications 10 Total of 1,430 new features and/or services launched in 2017. 2011 82 722 1,430 280 2013 2015 2017
  • 11. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 4,343* AWS Direct Connect AWS Elastic Beanstalk Schema Conversion Tool AWS Shield Amazon EFS Amazon WorkSpaces Amazon Lumberyard Amazon Pinpoint AWS IoT AWS Managed Services Amazon Route 53 AWS Import/Export AWS OpsWorks for Chef Automate Amazon Redshift Amazon Dynamo DB Amazon Polly AWS Snowball AWS Organizations Device Farm Amazon Config Amazon RDS for Aurora WorkDocs AWS Snowball Edge CodeCommit AWS CodePipeline AWS Service Catalog CloudWatch Logs Amazon Lex AWS Greengrass AWS WAF Amazon Appstream 2.0 Amazon Athena AWS Glue Amazon Lightsail Amazon Rekognition AWS Step Functions AWS Discovery Services AWS Certificate Manager Amazon ElastiCache Mobile Analytics AWS Mobile Hub AWS Storage GatewayAWS OpsWorks AWS Batch Amazon Inspector Amazon Cognito AWS CodeDeploy AWS Personal Health Dashboard AWS Snowmobile AWS Lambda AWS CodeBuild AWS X-Ray Amazon QuickSight Amazon Kinesis Firehose Amazon Workmail Amazon InspectorMachine Learning * As of January 2018 Total New Services and Features 11
  • 12. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Customers Public Sector Paving the way for innovation and supporting world-changing projects in government, education and nonprofit organizations. Startups From the spark of an idea, to your first customer, to IPO and beyond, let Amazon Web Services help you build and grow your startup. Enterprise Customers Amazon Web Services delivers a mature set of services specifically designed for the unique security, compliance, privacy, and governance requirements of large organizations. . 12
  • 13. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Advantages and Benefits of AWS Cloud Computing Trade capital expense for variable expense. Benefit from massive economies of scale. Stop guessing capacity. Go global in minutes. Increase speed and agility. Stop spending money on running and maintaining data centers. 13
  • 14. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS as a Leader in Cloud Infrastructure as a Service AWS is positioned as a leader in the Gartner Magic Quadrant for Cloud Infrastructure as a Service worldwide*. AWS is rated highest in execution and furthest in vision within the Leaders Quadrant. *Gartner, Magic Quadrant for Cloud Infrastructure as a Service, Worldwide, Lydia Leong, Raj Bala, Craig Lowery, Dennis Smith, June 2017 This graphic was published by Gartner, Inc. as part of a larger research document and should be evaluated in the context of the entire document. The Gartner document is available upon request from AWS : http://www.gartner.com/doc/reprints?id=1-2G2O5FC&ct=150519&st=sb Gartner does not endorse any vendor, product or service depicted in its research publications, and does not advise technology users to select only those vendors with the highest ratings or other designation. Gartner research publications consist of the opinions of Gartner's research organization and should not be construed as statements of fact. Gartner disclaims all warranties, expressed or implied, with respect to this research, including any warranties of merchantability or fitness for a particular purpose. 14
  • 15. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Core Infrastructure and Services Traditional Infrastructure Amazon Web Services Security Network Security Network Security Groups NACLs Access Mgmt VPCVPC EC2 “Classic” “Public” ELB On-DemandProvision Security Security Groups Network ACLs AWS IAMFirewalls ACLs Administrators Storage and Database RDBMSDAS SAN NAS Amazon EBS Amazon EFS Amazon S3 Amazon RDS Networking Amazon VPCELBRouter Network Pipeline Switch Servers AMI Amazon EC2 InstancesOn-Premises Servers 15
  • 16. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Cloud Computing Infrastructure Regions Edge LocationsAvailability Zones Foundation Services Compute (Virtual, Auto-scaling and Load Balancing) Networking Applications Virtual Desktops Collaboration and Sharing Platform Services Databases Relational NoSQL Caching Analytics Cluster Computing Real-time Data Warehouse Data Workflows App Services Queuing Orchestration App Streaming Transcoding Email Search Deployment and Management Containers Dev/ops Tools Resource Templates Usage Tracking Monitoring and Logs Mobile Services Identity Sync Mobile Analytics Notifications Storage (Object, Block and Archive) 16
  • 17. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Compute Amazon EC2 Network Amazon CloudFront Amazon Route 53 Amazon VPC AWS Direct Connect Elastic Load Balancing Storage Amazon EFS Amazon Glacier Amazon S3 AWS Snowball AWS Storage Gateway Security & Identity Amazon Inspector AWS Artifact AWS Certificate Manager AWS CloudHSM AWS Directory Service AWS IAM AWS KMS AWS Organizations AWS Shield AWS WAF Applications Amazon WorkDocs Amazon WorkMail Amazon AppStream Amazon WorkSpaces Amazon Elastic Container Registry Amazon Elastic Container Service Amazon Lightsail AWS Batch AWS Elastic Beanstalk AWS Lambda AWS Foundation Services 17
  • 18. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Platform Services Databases Amazon DynamoDB Analytics Amazon Athena Application Services Amazon API Gateway Management Tools Amazon RDS Amazon ElastiCache Amazon Redshift Amazon CloudSearch Amazon EMR Amazon Elasticsearch Service Amazon Kinesis Amazon QuickSight Amazon AppStream 2.0 Amazon Elastic Transcoder Amazon SWF AWS Step Functions Amazon CloudWatch AWS CloudFormation AWS CloudTrail AWS Config AWS Managed Services AWS OpsWorks AWS Service Catalog AWS Trusted Advisor Developer Tools AWS CodeBuild AWS CodeCommit AWS CodeDeploy AWS CodePipeline AWS X-Ray Mobile Services Amazon Cognito Amazon Mobile Analytics Amazon Pinpoint AWS Device Farm AWS Mobile Hub Internet of Things AWS IoT AWS Greengrass AWS CodeStar 18
  • 19. Session 1 AWS Global Infrastructure Nairobi – October 22nd #AWSomeDay
  • 20. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Global Infrastructure Regions Geographic locations Consist of at least two Availability Zones Availability Zones Clusters of data centers Isolated from failures in other Availability Zones 20
  • 21. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 1 AWS Global Infrastructure Map AWS GOVCLOUD (US-WEST) OHIO OREGON N. CALIFORNIA N. VIRGINIA BEIJING SEOUL TOKYO SINGAPORE SYDNEY CANADA LONDON MUMBAI IRELAND SÃO PAULO 3 2 3 3 3 3 Region & Number of AZs 3 2 2 2 3 BAHRAIN (Coming soon) HONG KONG (Coming soon) SWEDEN (Coming soon) AWS GOVCLOUD (US-EAST) (Coming soon) 6 New Region Coming Soon NINGXIA 3 4 PARIS FRANKFURT 3 3 3 3 OSAKA-Local 21
  • 22. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Global Infrastructure Regions At least 2 Availability Zones per region Examples: Note: Conceptual drawing only. The number of Availability Zones (AZ) may vary. US East (VA) AZ - a AZ - b AZ - c AZ - d AZ - e Asia Pacific (Tokyo) AZ - a AZ - b AZ – c US East (N. Virginia) us-east-1a us-east-1b us-east-1c us-east-1d us-east-1e us-east-1f AZ - f Asia Pacific (Tokyo) ap-northeast-1a ap-northeast-1b ap-northeast-1c ap-northeast-1d AZ - d 22
  • 23. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. High Availability Using Multi-AZ Deployments Availability Zone - A Availability Zone - B Availability Zone - C Region 23
  • 24. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Global Infrastructure – Edge Locations 110+ edge locations Local points of presence that support AWS services like: Amazon Route 53 Amazon CloudFront AWS WAF AWS Shield 24
  • 25. Session 2 AWS Foundation Services Nairobi – October 22nd #AWSomeDay
  • 26. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Session 2 Topics Amazon Elastic Compute Cloud (EC2) Amazon Virtual Private Cloud (VPC) Amazon Storage Services Amazon Simple Storage Service (S3) Amazon Elastic Block Store (EBS) 26
  • 28. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Elastic Compute Cloud (EC2) Resizable compute capacity Complete control of your computing resources Reduced time required to obtain and boot new server instancesAmazon EC2 28
  • 29. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon EC2 Facts Scale capacity as your computing requirements change Pay only for capacity that you actually use Choose Linux or Windows Deploy across AWS Regions and Availability Zones for reliability Use tags to help manage your Amazon EC2 resources 29
  • 30. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Launching an Amazon EC2 Instance via the Management Console Determine the AWS Region in which you want to launch the Amazon EC2 instance. Launch an Amazon EC2 instance from a pre-configured Amazon Machine Image (AMI). Choose an instance type based on CPU, memory, storage, and network requirements. Configure network, IP address, security groups, storage volume, tags, and key pair. 30
  • 31. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Machine Image (AMI) Details An AMI includes the following: A template for the root volume for the instance (for example, an operating system, an application server, and applications). Launch permissions that control which AWS accounts can use the AMI to launch instances. A block device mapping that specifies the volumes to attach to the instance when it is launched. 31
  • 32. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Instances and AMIs Select an AMI based on: Region Operating system Architecture (32-bit or 64-bit) Launch permissions Storage for the root device AMI Instances Instance Launch instances of any type Host computer Host computer 32
  • 33. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon EC2 Instances OS, Applications and Configuration AMI Running or Stopped VM Instances AZ VPC Region EBS Amazon S3 EBS Snapshots S3 Buckets EBS EBS EBS EBS EBS AZ Instances Instances 33
  • 34. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Instance Lifecycle AMI pending Launch runningrebooting Reboot Start terminated shutting-down Terminate Terminate EBS-backed instances only Stop stopping stopped 34
  • 35. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Choosing the Right Amazon EC2 Instance Type Amazon EC2 provides a wide selection of instance types that are optimized for different use cases and workload requirements. Consider the following when choosing your instances: Core count Memory size Storage size and type Network performance CPU technologies AWS uses Intel® Xeon® processors to provide customers with high performance and value. 35
  • 36. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Get the Intel® Advantage Intel’s Haswell microarchitecture on new X1, C5, D2, and M5 instances, with custom Intel® Xeon® v3 processors, provides new features: Haswell microarchitecture can boost existing applications performance by 30% or more for better workload performance and faster response times. Hardware Assisted technologies, such as Intel® AVX2.0 instructions, can double the floating-point performance for compute-intensive workloads and provide additional instructions for compression and encryption 36
  • 37. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Intel® Processor Technologies Intel® AVX: Provides dramatically better performance for highly parallel HPC workloads such as life science engineering, data mining, and financial analysis. AVX also enhances image, video, and audio processing. Intel® AES-NI: Enhances security with new encryption instructions that reduce the performance penalty associated with encrypting/decrypting data. Intel® Turbo Boost Technology: Provides more computing power when you need it with performance that adapts to spikes in your workload. Intel Transactional Synchronization (TSX) Extensions: Increases the throughput of independent transactions. P-state and C-state control: Gives you the ability to individually tune each core’s performance and sleep states to improve application performance. 37
  • 38. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Instance Type Families Instance Family Some Use Cases General purpose (T2, M5, M4) • Low-traffic websites and web applications • Small databases and mid-size databases Compute-optimized (C5, C4) • High performance web servers • Video-encoding Memory-optimized (X1e, X1, R4) • High performance databases • Distributed memory caches Storage-optimized (H1, I3, D2) • Data warehousing • Log or data-processing applications Accelerated Computing (P3, P2, G3, F1) • 3D visualizations • Machine learning 38
  • 39. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Example of Amazon EC2 Instances with Intel® Xeon® Technology AWS Instance Type General Purpose T2 General Purpose M4 Compute- Optimized C4 Memory- Optimized X1 Storage- Optimized I3 Storage- Optimized D2 Intel Xeon Processor Intel Xeon Family E5-2686 v4 E5-2676 v3 E5-2666 v3 E7-8880 v3 E5-2686 v4 E5-2676 v3 Intel AVX Yes AVX 2.0 AVX 2.0 AVX 2.0 Yes AVX 2.0 Intel AES-NI No Yes Yes Yes Yes Yes Intel Turbo Boost Yes Yes Yes Yes Yes Yes Intel TSX No No No Yes No No Per core P- and C-state control No No Yes (8xlarge only) No No No SSD Storage EBS only EBS: Optimized by default EBS Optimized by default EBS Optimized by default Yes No 39
  • 40. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. X1e Instance Example X1e instances are optimized for high-performance databases, in- memory databases and other memory intensive enterprise applications. Features include: Up to 3,904 GiB of memory High frequency Intel Xeon E7 v3 Haswell processors with up to 128 vCPU cores One of the lowest price per GiB of RAM Ability to control processor P-state and C-state configurations 40
  • 41. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Instance Metadata Is data about your instance. Can be used to configure or manage a running instance. 41
  • 42. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Retrieving Instance Metadata To view all categories of instance metadata from within a running instance, use the following URI: http://169.254.169.254/latest/meta-data/ On a Linux instance, you can use: $ curl http://169.254.169.254/latest/meta-data/ $ GET http://169.254.169.254/latest/meta-data/ All metadata is returned as text (content type text/plain). 42
  • 43. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Instance User Data Can be passed to the instance at launch. Can be used to perform common automated configuration tasks. Runs scripts after the instance starts. 43
  • 44. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Adding User Data You can specify user data when launching an instance. User data can be: Linux script – executed by cloud-init Windows batch or PowerShell scripts – executed by EC2Launch service User data scripts run once per instance ID by default. 44
  • 45. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. User Data Example Linux #!/bin/sh yum -y install httpd chkconfig httpd on /etc/init.d/httpd start User data shell scripts must start with the #! characters and the path to the interpreter you want to read the script. Install Apache web server Enable the web server Start the web server 45
  • 46. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. User Data Example Windows <powershell> Import-Module ServerManager Install-WindowsFeature web-server, web-webserver Install-WindowsFeature web-mgmt-tools </powershell> Import the Server Manager module for Windows PowerShell. Install IIS Install Web Management Tools 46
  • 47. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Retrieving User Data To retrieve user data, use the following URI: http://169.254.169.254/latest/user-data On a Linux instance, you can use: $ curl http://169.254.169.254/latest/user-data/ $ GET http://169.254.169.254/latest/user-data/ 47
  • 48. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon EC2 Purchasing Options On-Demand Instances Pay by the hour. Reserved Instances Purchase, at a significant discount, instances that are always available. 1-year to 3- year terms. Scheduled Instances Purchase instances that are always available on the specified recurring schedule, for a one-year term. Spot Instances Bid on unused instances, which can run as long as they are available and your bid is above the Spot price. Dedicated Hosts Pay for a physical host that is fully dedicated to running your instances. Dedicated Instances Pay, by the hour, for instances that run on single- tenant hardware. 48
  • 49. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Marketplace: IT Software Optimized for the Cloud Online store to discover, purchase, and deploy IT software on top of the AWS infrastructure. Catalog of 4100+ IT software solutions including Paid, BYOL, Open Source, SaaS, and free-to-try options. Pre-configured to operate on AWS. Software checked by AWS for security and operability. Deploys to AWS environment in minutes. Flexible, usage-based billing models. Software charges billed to AWS account. Includes AWS Test Drive/Quick Starts. https://aws.amazon.com/marketplace 49
  • 51. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Virtual Private Cloud (VPC) Provision a private, isolated virtual network on the AWS cloud. Have complete control over your virtual networking environment. Amazon VPC 51
  • 52. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPCs and Subnets A subnet defines a range of IP addresses in your VPC. You can launch AWS resources into a subnet that you select. A private subnet should be used for resources that won’t be accessible over the Internet. A public subnet should be used for resources that will be accessed over the Internet. Each subnet must reside entirely within one Availability Zone and cannot span zones. 52
  • 53. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon VPC Example Public Subnet Private Subnet VPN Only Subnet DB Server Web Server Customer Network R Internet App Server VPC NAT Gateway Internet Gateway Web Server App Server DB Server Virtual Private Gateway 53
  • 54. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Security in Your VPC Security groups Network access control lists (ACLs) Key Pairs Subnet 10.0.1.0/24 Internet GatewayVPN Gateway VPC Router 10.0.0.0/16 Security Group Security Group Network ACL Network ACL Route Table Route Table instance instance instance instance Subnet 10.0.0.0/24 Security Group Security Group 54
  • 55. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPN Connections VPN Connectivity option Description AWS Hardware VPN You can create an IPsec hardware VPN connection between your VPC and your remote network. AWS Direct Connect AWS Direct Connect provides a dedicated private connection from a remote network to your VPC. AWS VPN CloudHub You can create multiple AWS hardware VPN connections via your VPC to enable communications between various remote networks. Software VPN You can create a VPN connection to your remote network by using an Amazon EC2 instance in your VPC that’s running a software VPN appliance. 55
  • 56. Storage Services: Amazon S3 and Amazon EBS 56
  • 57. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Simple Storage Service (S3) Storage for the Internet Natively online, HTTP access Storage that allows you to store and retrieve any amount of data, any time, from anywhere on the web Highly scalable, reliable, fast and durable Amazon S3 57
  • 58. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon S3 Facts Can store an unlimited number of objects in a bucket Objects can be up to 5 TB; no bucket size limit Designed for 99.999999999% durability and 99.99% availability of objects over a given year Can use HTTP/S endpoints to store and retrieve any amount of data, at any time, from anywhere on the web Highly scalable, reliable, fast, and inexpensive Can use optional server-side encryption using AWS or customer- managed provided client-side encryption Auditing is provided by access logs Provides standards-based REST and SOAP interfaces 58
  • 59. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Common Use Scenarios Storage and backup Application file hosting Media hosting Software delivery Store AMIs and snapshots 59
  • 60. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon S3 Concepts Amazon S3 stores data as objects within buckets. An object is composed of a file and optionally any metadata that describes that file. You can have up to 100 buckets in each account. You can control access to the bucket and its objects. Amazon S3 Bucket with Objects Bucket Object 60
  • 61. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Object Keys An object key is the unique identifier for an object in a bucket. http://doc.s3.amazonaws.com/2006-03-01/AmazonS3.html Bucket Object/Key 61
  • 62. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon S3 Security You can control access to buckets and objects with: Access Control Lists (ACLs) Bucket policies Identity and Access Management (IAM) policies You can upload or download data to Amazon S3 via SSL encrypted endpoints. You can encrypt data using AWS SDKs. 62
  • 63. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon S3 Versioning Protects from accidental overwrites and deletes with no performance penalty. Generates a new version with every upload. Allows easily retrieval of deleted objects or roll back to previous versions. Three states of an Amazon S3 bucket Un-versioned (default) Versioning-enabled Versioning-suspended Versioning Enabled Key: photo.gif ID: 121212 Key: photo.gif ID: 111111 63
  • 64. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon S3 Object Lifecycle Lifecycle management defines how Amazon S3 manages objects during their lifetime. Some objects that you store in an Amazon S3 bucket might have a well-defined lifecycle: Log files Archive documents Digital media archives Financial and healthcare records Raw genomics sequence data Long-term database backups Data that must be retained for regulatory compliance 64
  • 65. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon S3 Pricing Pay only for what you use No minimum fee Prices based on location of your Amazon S3 bucket Estimate monthly bill using the AWS Simple Monthly Calculator Pricing is available as: Storage Pricing Request Pricing Data Transfer Pricing: data transferred out of Amazon S3 65
  • 66. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Glacier Long term low-cost archiving service Optimal for infrequently accessed data Designed for 99.999999999% durability Three to five hours’ standard retrieval time Less than $0.01 per GB/month (depending on region) 66
  • 67. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon S3 Storage Classes Storage Class Durability Availability Other Considerations Amazon S3 Standard 99.999999999 % 99.99% Amazon S3 Standard - Infrequent Access (IA) 99.999999999 % 99.9% • Retrieval fee associated with objects • Most suitable for infrequently accessed data Glacier 99.999999999 % 99.99% (once restored) • Not available for real-time access • Must restore objects before you can access them • Restoring objects can take 1 minute - 12 hours 67
  • 69. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Elastic Block Store (EBS) Persistent block level storage volumes offer consistent and low-latency performance. Stored data is automatically replicated within its Availability Zone. Snapshots are stored durably in Amazon S3. Amazon EBS 69
  • 70. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon EBS Lifecycle Vast amounts of unused space Create Call CreateVolume 1 GiB to 16 TiB Attach Call AttachVolume to affiliate with one Amazon EC2 instance Attached and In Use • Format from Amazon EC2 instance OS • Mount formatted drive CreateSnapshot Snapshot to Amazon S3 Detach Call DetachVolume Deleted Call DeleteVolume 70
  • 71. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon EBS Volume Types SSD-backed volumes are: Optimized for transactional workloads that involve frequent read/write operations with small I/O size. Dominant in IOPS performance. HDD-backed volumes are Optimized for large streaming workloads. Dominant in throughput (measured in MiB/s). 71
  • 72. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon EBS Volume Types SSD HDD Volume Type General Purpose SSD (gp2) Provisioned IOPS SSD (io1) Throughput Optimized HDD (st1) Cold HDD (sc1) Description Balances price and performance for a wide variety of transactional loads. Highest-performance SSD volume designed for mission-critical applications. Low-cost HDD designed for frequently accessed, throughput-intensive workloads. Lowest cost HDD designed for less frequently accessed workloads. Volume Sizes 1 GiB – 16 TiB 4 GiB – 16 TiB 500 GiB – 16 TiB 500 GiB – 16 TiB Dominant Performance Attribute IOPS IOPS MiB/s MiB/s 72
  • 73. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon EBS Facts EBS is recommended when data must be quickly accessible and requires long-term persistence. You can launch your EBS volumes as encrypted volumes. Data stored at rest on the volume, disk I/O, and snapshots created from the volume are all encrypted. You can create point-in-time snapshots of EBS volumes, which are persisted to Amazon S3. 73
  • 74. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon EBS Use Cases OS: Use for boot/root volume, secondary volumes Databases: Scales with your performance needs Enterprise applications: Provides reliable block storage to run mission-critical applications Business continuity: Minimize data loss and recovery time by regularly backing up using EBS Snapshots Applications: Install and persist any application 74
  • 75. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon EBS Pricing Pay for what you provision: Pricing based on region Review Pricing Calculator online Pricing is available as: Storage IOPS * Check Amazon EBS Pricing page for current pricing for all regions. 75
  • 76. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon EBS Scope Amazon EBS volumes are in a single Availability Zone Availability Zone A EBS Volume 1 Availability Zone B EBS Volume 2 Volume data is replicated across multiple servers in an Availability Zone. 76
  • 77. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon EBS and Amazon S3 Amazon EBS Amazon S3 Paradigm Block storage with file system Object store Performance Very fast Fast Redundancy Across multiple servers in an Availability Zone Across multiple facilities in a Region Security EBS Encryption – Data volumes and Snapshots Encryption Access from the Internet? No (1) Yes (2) Typical use case It is a disk drive Online storage (1) Accessible from the Internet if mounted to server and set up as FTP, etc. (2) Only with proper credentials, unless ACLs are world-readable 77
  • 78. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon EC2 Instance Storage Is local, complimentary direct attached block storage. Includes availability, number of disks, and size based on EC2 instance type. Is optimized for up to 365,000 Read IOPS and 315,000 First Write IOPS. Is SSD or magnetic. Has no persistence. Automatically deletes data when an EC2 instance stops, fails or is terminated. 78
  • 79. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon EBS vs. Amazon EC2 Instance Store Amazon EBS Data stored on an Amazon EBS volume can persist independently of the life of the instance. Storage is persistent. Amazon EC2 Instance Store Data stored on a local instance store persists only as long as the instance is alive. Storage is ephemeral. 79
  • 80. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Reboot vs. Stop vs. Terminate Characteristic Reboot Stop/Start (EBS-backed instances only) Terminate Host computer The instance stays on the same host computer. The instance runs on a new host computer. Public IP address No change New address assigned Elastic IP addresses (EIP) EIP remains associated with the instance. EIP remains associated with the instance. EIP is disassociated from the instance. Instance store volumes Preserved Erased Erased EBS volume Preserved Preserved Boot volume is deleted by default. Billing Instance billing hour doesn’t change. You stop incurring charges as soon as state is changed to stopping. You stop incurring charges as soon as state is changed to shutting-down. 80
  • 81. Session 3 AWS Security, Identity, and Access Management Nairobi – October 22nd #AWSomeDay
  • 82. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Shared Responsibility Model AWS Foundation Services Compute Storage Database Networking AWS Global Infrastructure Regions Availability Zones Edge Locations Client-side Data Encryption Server-side Data Encryption Network Traffic Protection Platform, Applications, Identity, and Access Management Operating System, Network, and Firewall Configuration Customer Applications & Content Customers Customers are responsible for security IN the cloud AWS is responsible for the security OF the cloud 82
  • 83. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Physical Security 24/7 trained security staff AWS data centers in nondescript and undisclosed facilities Two-factor authentication for authorized staff Authorization for data center access 83
  • 84. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Hardware, Software, and Network Automated change-control process Bastion servers that record all access attempts Firewall and other boundary devices AWS monitoring tools 84
  • 85. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Certifications and Accreditations My Number Act [Japan] G-Cloud [UK] MPAA GxPVPAT / Section 508 AWS Compliance Programs - https://aws.amazon.com/compliance/programs/ 85
  • 86. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SSL Endpoints VPC Secure Transmission Use secure endpoints to establish secure communication sessions (HTTPS). Instance Firewalls Use security groups to configure firewall rules for instances. SSL Endpoints Security Groups Network Control Use public and private subnets, NAT, and VPN support in your virtual private cloud to create low- level networking constraints for resource access. SSL Endpoints 86
  • 87. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Security Groups SSL Endpoints Security Groups Instance Firewalls Use security groups to configure firewall rules for instances. VPC Secure Transmission Use secure endpoints to establish secure communication sessions (HTTPS). Network Control Use public and private subnets, NAT, and VPN support in your virtual private cloud to create low- level networking constraints for resource access. 87
  • 88. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Multi-Tier Security Groups www server www server www server app server app server app server Database Tier security group Application Tier security group Web Tier security group db server db server db server Internet Corporate Admin Network ssh/rdp api api (all other ports are blocked) 88
  • 89. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Virtual Private Cloud (VPC) VPCSSL Endpoints Security Groups Network Control Use public and private subnets, NAT, and VPN support in your virtual private cloud to create low- level networking constraints for resource access. Instance Firewalls Use security groups to configure firewall rules for instances. Secure Transmission Use secure endpoints to establish secure communication sessions (HTTPS). 89
  • 90. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Identity and Access Management (IAM) AWS IAM 3 Manage federated users and their permissions 2 Manage AWS IAM roles and their permissions 1 Manage AWS IAM users and their access 90
  • 91. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS IAM Authentication Authentication AWS Management Console User Name and Password IAM User 91
  • 92. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS IAM Authentication Authentication AWS CLI or SDK API Access Key and Secret Key Access Key ID: AKIAIOSFODNN7EXAMPLE Secret Access Key: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY Java Python .NET AWS SDK & APIAWS CLI IAM User 92
  • 93. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS IAM User Management - Groups User D DevOps Group User C AWS Account TestDev Group User BUser A 93
  • 94. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS IAM Authorization Authorization Policies: Are JSON documents to describe permissions. Are assigned to users, groups or roles. IAM User IAM Group IAM Roles 94
  • 95. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS IAM Policy Elements { "Version": "2012-10-17", "Statement": [ { "Sid": "Stmt1453690971587", "Action": [ "ec2:Describe*", "ec2:StartInstances", "ec2:StopInstances” ], "Effect": "Allow", "Resource": "*", "Condition": { "IpAddress": { "aws:SourceIp": "54.64.34.65/32” } } }, { "Sid": "Stmt1453690998327", "Action": [ "s3:GetObject*" ], "Effect": "Allow", "Resource": "arn:aws:s3:::example_bucket/*" } ] } IAM Policy 95
  • 96. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS IAM Policy Assignment IAM User IAM Group Assigned Assigned IAM Policy 96
  • 97. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS IAM Policy Assignment IAM User IAM Group IAM Roles Assigned Assigned Assigned IAM Policy 97
  • 98. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS IAM Roles An IAM role uses a policy. An IAM role has no associated credentials. IAM users, applications, and services may assume IAM roles. IAM Roles 98
  • 99. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS IAM Policy Assignment IAM User IAM Group IAM Roles Assigned Assigned Assigned IAM User Assumed Assumed AWS Resources IAM Policy 99
  • 100. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Example: Application Access to AWS Resources Python application hosted on an Amazon EC2 Instance needs to interact with Amazon S3. AWS credentials are required: Option 1: Store AWS Credentials on the Amazon EC2 instance. Option 2: Securely distribute AWS credentials to AWS Services and Applications. IAM Roles 100
  • 101. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS IAM Roles - Instance Profiles Amazon EC2 EC2 MetaData Service http://169.254.169.254/latest/meta-data/iam/security-credentials/rolename Amazon S31 3 4 App & Create Instance Application interacts with S3 Select IAM Role2 101
  • 102. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS IAM Roles – Assume Role IAM Restricted Policy IAM User A-1 AWS Account A IAM Admin RoleIAM Admin Policy Assigned Assume Assigned 1 2 IAM User B-1 AWS Account B Amazon S3 Assume 4 Access 53 Access 1 102
  • 103. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Temporary Security Credentials (AWS STS) Use Cases Cross account access Federation Mobile Users Key rotation for Amazon EC2-based apps Session Access Key ID Secret Access Key Session Token Expiration Temporary Security Credentials 15 minutes to 36 hours 103
  • 104. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Application Authentication AWS IAM Application No Support No Support OS 104
  • 105. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS IAM Authentication and Authorization Authentication AWS Management Console User Name and Password AWS CLI or SDK API Access Key and Secret Key Authorization Policies IAM User IAM Group IAM Roles 105
  • 106. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS IAM Best Practices Delete AWS account (root) access keys. Create individual IAM users. Use groups to assign permissions to IAM users. Grant least privilege. Configure a strong password policy. Enable MFA for privileged users. 106
  • 107. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS IAM Best Practices (continued) Use roles for applications that run on Amazon EC2 instances. Delegate by using roles instead of by sharing credentials. Rotate credentials regularly. Remove unnecessary users and credentials. Use policy conditions for extra security. Monitor activity in your AWS account. 107
  • 108. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS CloudTrail Records AWS API calls for accounts. Delivers log files with information to an Amazon S3 bucket. Makes calls using the AWS Management Console, AWS SDKs, AWS CLI and higher-level AWS services. AWS CloudTrail Amazon S3 Bucket Logs 108
  • 110. Session 4 AWS Databases Nairobi – October 22nd #AWSomeDay
  • 111. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SQL and NoSQL Databases 111 SQL NoSQL Data Storage Rows and Columns Key-Value Schemas Fixed Dynamic Querying Using SQL Focused on collection of documents Scalability Vertical Horizontal ISBN Title Author Format 9182932465265 Cloud Computing Concepts Wilson, Joe Paperback 3142536475869 The Database Guru Gomez, Maria eBook SQL NoSQL { ISBN: 9182932465265, Title: “Cloud Computing Concepts”, Author: ”Wilson, Joe”, Format: “Paperback” }
  • 112. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Data Storage Considerations No one size fits all. Analyze your data requirements by considering: Data formats Data size Query frequency Data access speed Data retention period 112
  • 113. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Managed Database Services 113 Compute Storage AWS Global Infrastructure Database App Services Deployment and Administration Networking Amazon DynamoDB Amazon ElastiCache Amazon RDS Amazon Redshift AWS Database Migration Service
  • 114. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Relational Database Service (RDS) Cost-efficient and resizable capacity Manages time-consuming database administration tasks Access to the full capabilities of Amazon Aurora, MySQL, MariaDB, Microsoft SQL Server, Oracle, and PostgreSQL databases 114 Amazon RDS
  • 115. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon RDS Simple and fast to deploy Manages common database administrative tasks Compatible with your applications Fast, predictable performance Simple and fast to scale Secure Cost-effective 115
  • 116. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. DB Instances DB Instances are the basic building blocks of Amazon RDS. They are an isolated database environment in the cloud. They can contain multiple user-created databases. 116
  • 117. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How Amazon RDS Backups Work Automatic Backups: Restore your database to a point in time. Are enabled by default. Let you choose a retention period up to 35 days. 117 Manual Snapshots: Let you build a new database instance from a snapshot. Are initiated by the user. Persist until the user deletes them. Are stored in Amazon S3.
  • 118. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Cross-Region Snapshots Are a copy of a database snapshot stored in a different AWS Region. Provide a backup for disaster recovery. Can be used as a base for migration to a different region. 118
  • 119. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon RDS Security Run your DB instance in an Amazon VPC. Use IAM policies to grant access to RDS resources. Use Security Groups. Use Secure Socket Layer (SSL) connections with DB instances (Amazon Aurora, Oracle, MySQL, MariaDB, PostgreSQL, Microsoft SQL Server). Use RDS encryption to secure instances and snapshots at rest. Use network encryption and transparent data encryption (TDE) with Oracle DB and Microsoft SQL Server instances. Use security features of your DB engine to control access to DB instance. 119
  • 120. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. A Simple Application Architecture 120 Amazon RDS database instance Amazon EC2 Application Servers Elastic Load Balancing load balancer instance DB snapshots in Amazon S3
  • 121. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Multi-AZ RDS Deployment With Multi-AZ operation, your database is synchronously replicated to another Availability Zone in the same AWS Region. Failover to the standby automatically occurs in case of master database failure. Planned maintenance is applied first to standby databases. 121
  • 122. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. A Resilient, Durable Application Architecture 122 Amazon RDS database instances: Master and Multi-AZ standby Application, in Amazon EC2 instances Elastic Load Balancing load balancer instance DB snapshots in Amazon S3
  • 123. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon RDS Best Practices Monitor your memory, CPU, and storage usage. Use Multi-AZ deployments to automatically provision and maintain a synchronous standby in a different Availability Zone. Enable automatic backups. Set the backup window to occur during the daily low in Write IOPS. To increase the I/O capacity of a DB instance: Migrate to a DB instance class with high I/O capacity. Convert from standard storage to provisioned IOPS storage and use a DB instance class optimized for provisioned IOPS. Provision additional throughput capacity (if using provisioned IOPS storage). If your client application is caching the DNS data of your DB instances, set a TTL of less than 30 seconds. Test failover for your DB instance. 123
  • 124. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon DynamoDB Allows you to store any amount of data with no limits. Provides fast, predictable performance using SSDs. Allows you to easily provision and change the request capacity needed for each table. Is a fully managed, NoSQL database service. 124 Amazon DynamoDB
  • 125. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. DynamoDB Data Model 125 Table: Music Items Attributes (name-value pairs) Artist Song Title Album Title Year Genre
  • 126. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Primary Keys 126 Partition Key Sort Key Table: Music Partition Key: Artist Sort Key: Song Title (DynamoDB maintains a sorted index for both keys) Table: Music Artist Song Title Album Title Year Genre
  • 127. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Provisioned Throughput You specify how much provisioned throughput capacity you need for reads and writes. Amazon DynamoDB allocates the necessary machine resources to meet your needs. 127
  • 128. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Supported Operations Query: Query a table using the partition key and an optional sort key filter. If the table has a secondary index, query using its key. It is the most efficient way to retrieve items from a table or secondary index. Scan: You can scan a table or secondary index. Scan reads every item – slower than querying. You can use conditional expressions in both Query and Scan operations. 128
  • 129. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Simple Application Architecture 129 Elastic Load Balancing Amazon EC2 app instances Clients Amazon DynamoDB Business logic
  • 130. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon RDS and Amazon DynamoDB Factors Relational (Amazon RDS) NoSQL (Amazon DynamoDB) Application Type •Existing database apps •Business process–centric apps • New web-scale applications • Large number of small writes and reads Application Characteristic s •Relational data models, transactions •Complex queries, joins, and updates •Simple data models, transactions •Range queries, simple updates Scaling Application or DBA–architected (clustering, partitions, sharding) Seamless, on-demand scaling based on application requirements QoS • Performance–depends on data model, indexing, query, and storage optimization • Reliability and availability • Durability • Performance–Automatically optimized by the system • Reliability and availability • Durability 130
  • 131. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Database Considerations 131 If You Need Consider Using A relational database service with minimal administration Amazon RDS • Choice of Amazon Aurora, MySQL, MariaDB, Microsoft SQL Server, Oracle, or PostgreSQL database engines • Scale compute and storage • Multi-AZ availability A fast, highly scalable NoSQL database service Amazon DynamoDB • Extremely fast performance • Seamless scalability and reliability • Low cost A database you can manage on your own Your choice of AMIs on Amazon EC2 and Amazon EBS that provide scale compute and storage, complete control over instances, and more.
  • 132. Session 5 AWS Elasticity and Management Tools Nairobi – October 22nd #AWSomeDay
  • 133. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Triad of Services 133 Latency Utilization Amazon CloudWatch Auto Scaling Elastic Load Balancing Auto Scaling group Execute Scaling Policy
  • 134. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Elastic Load Balancing Distributes traffic across multiple EC2 instances, in multiple Availability Zones Supports health checks to detect unhealthy Amazon EC2 instances Supports the routing and load balancing of HTTP, HTTPS, SSL, and TCP traffic to Amazon EC2 instances 134 Elastic Load Balancing
  • 135. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Classic Load Balancer: How It Works Register instances with your load balancer. Load balancer routes request at either: Transport layer (TCP) Application layer (HTPP/HTTPS) Intended for applications build within the EC2-Classic network Recommendation for new applications is to use Application Load Balancer or Network Load Balancer 135 Availability Zone A Availability Zone B load balancer X
  • 136. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Application Load Balancer: How It Works Register instances as targets in a target group, and route traffic to a target group. Load balancer routes request at the Application layer (HTPP/HTTPS). 136 Target Group /mobile load balancer Listener ListenerRule Rule Rule Target Group Target Group /api Target Target Target Target Target Target Target Health Check Health Check Health Check
  • 137. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Network Load Balancer: How it Works Register instances as targets in a target group, and route traffic to a target group. Load balancer routes request at the Transport layer (TCP). 137 load balancer ListenerRule Target Group Target Target Health Check
  • 138. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Load Balancer Comparison Feature Classic Load Balancer Application Load Balancer Network Load Balancer Protocols TCP, SSL, HTTP, HTTPS HTTP, HTTPS TCP Platforms EC2-Classic, VPC VPC VPC Cross-zone load balancing Yes Yes Yes Logging Yes Yes Yes Path-Based Routing No Yes No Sticky Sessions No Yes No Static IP No No Yes 138
  • 139. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon CloudWatch A monitoring service for AWS cloud resources and the applications you run on AWS Visibility into resource utilization, operational performance, and overall demand patterns Custom application-specific metrics of your own Accessible via AWS Management Console, APIs, SDK, or CLI 139 Amazon CloudWatch
  • 140. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon CloudWatch Facts Monitor other AWS resources View graphics and statistics Set Alarms 140
  • 141. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon CloudWatch Architecture 141 AWS resources that support CloudWatch Amazon CloudWatch Available Statistics Statistics Consumer AWS Management Console CloudWatch Metrics CPUUtilization StatusCheckFailed Custom Application- Specific Metrics PageViewCount Amazon CloudWatch Alarm SNS Email Notification Auto Scaling
  • 142. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. CloudWatch Metrics Examples 142
  • 143. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Auto Scaling Scale your Amazon EC2 capacity automatically Well-suited for applications that experience variability in usage Available at no additional charge 143 Auto Scaling
  • 144. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Auto Scaling Benefits 144 Better Cost Management Better Availability Better Fault Tolerance
  • 145. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Launch Configurations A launch configuration is a template that an Auto Scaling group uses to launch EC2 instances. When you create a launch configuration, you can specify: AMI ID Instance type Key pair Security groups Block device mapping User data 145
  • 146. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Auto Scaling Groups Contain a collection of EC2 instances that share similar characteristics. Instances in an Auto Scaling group are treated as a logical grouping for the purpose of instance scaling and management. 146 Auto Scaling group Minimum size Desired capacity Maximum size Scale out as needed
  • 147. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Dynamic Scaling You can create a scaling policy that uses CloudWatch alarms to determine: When your Auto Scaling group should scale out. When your Auto Scaling group should scale in. You can use alarms to monitor: Any of the metrics that AWS services send to Amazon CloudWatch. Your own custom metrics. 147
  • 148. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Auto Scaling Basic Lifecycle 148 instances Auto Scaling group Scale Out Amazon CloudWatch Scheduled Event Scale In Amazon CloudWatch Scheduled Event Launch Instance Attach to Group Detach from Group Terminate Instance X
  • 149. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Trusted Advisor Best practice and recommendation engine. Provides AWS customers with performance and security recommendations in four categories: Cost optimization Security Fault tolerance Performance improvement 149 AWS Trusted Advisor
  • 150. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Cost Optimization Amazon EC2 Reserved Instance Optimization Low-utilization Amazon EC2 Instances Idle load balancers Underutilized Amazon EBS volumes Unassociated Elastic IP addresses Amazon RDS idle DB instances 150
  • 151. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Security Security groups AWS IAM use Amazon S3 bucket permissions MFA on Root Account AWS IAM password policy Amazon RDS security group access risk 151
  • 152. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Fault Tolerance Amazon EBS Snapshots Load balancer optimization Auto Scaling Group Resources Amazon RDS Multi-AZ Amazon Route 53 name server delegations ELB connection draining 152
  • 153. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Performance Improvement High-utilization Amazon EC2 instances Service limits Large number of rules in EC2 security group Over-utilized Amazon EBS magnetic volumes Amazon EC2 to EBS throughput optimization Amazon CloudFront alternate domain names 153
  • 154. Session 6 Wrap-Up Nairobi – October 22nd #AWSomeDay
  • 155. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Learning Path 155 AWS Introduction • The AWS Cloud • History • Global Infrastructure • AWS Management Console AWS Foundational Services • Compute: • Amazon EC2 • Networking: • Amazon VPC • Storage: • Amazon EBS • Amazon S3 • Security • IAM • Databases: • Amazon DynamoDB • Amazon RDS AWS Management Tools • Triad of Services: • Auto Scaling • ELB • Amazon CloudWatch • AWS Trusted Advisor
  • 156. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Expand Your Cloud Skills with AWS 156 Certification https://aws.amazon.com/certification / Validate your proven technical expertise with the AWS platform and gain recognition for your skills Online videos and labs Start working with an AWS service in minutes with free online instructional videos and labs https://aws.amazon.com/training / Instructor-led courses Learn how to design, deploy, and operate highly available, cost-effective, and secure applications on AWS https://aws.amazon.com/training/self- paced-labs/
  • 157. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Self-Paced Labs Learn an individual AWS Service topic Follow a Learning Quest by AWS Service Area or Use Case Practice working with AWS as you prepare for an exam For more information, see: https://aws.amazon.com/training/self-paced-labs/ 157
  • 158. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS ILT Training Courses 158 AWS Technical Essentials 1 day Architecting on AWS 3 days Developing on AWS 3 days Systems Operations on AWS 3 days Big Data on AWS 3 days Advanced Architecting on AWS 3 days DevOps Engineering on AWS 3 days Security Operations on AWS 3 days Migrating to AWS 2 days Data Warehousing on AWS 3 days https://aws.amazon.com/training/
  • 159. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Certification 159 For more information, see https://aws.amazon.com/certification/.
  • 160. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Benefits of AWS Certification 160 Individual • Demonstrate expertise • Stand out • Industry visibility • Customer visibility • Peer recognition • Credibility with customers Employer • Baseline bar on AWS skills • Identify expert talent • Leverage best practices • Reduce operational risk • Increase business advantage • Maximize AWS efficiencies • Common vocabulary • Accelerate time to cloud
  • 161. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Preparing for AWS Certification For resources to help you prepare for the certification exam, see: https://aws.amazon.com/certification/certification-prep/ 161 Practice ExamsSelf-Paced Labs on qwikLABS AWS Whitepapers & FAQs AWS Documentation & Reference Architectures Exam Guides & Sample Questions AWS-Authored Study Guide AWS Technical Training
  • 162. Thanks for participating! Nairobi – October 22nd #AWSomeDay