Module 1 - Migrate On Premises To The Cloud
Module 1 - Migrate On Premises To The Cloud
Module 1 - Migrate On Premises To The Cloud
Guilherme Hasse
[email protected]
AWS Partner Trainers Mgr. - Latam
Avisos
AWS Cloud & Core Services
LABS serão executados no aws.qwiklabs.com
Internet
5
AWS Global Reach
AWS Global Infrastructure
24 Geographical Regions, 5 Local Region, 77 Availability Zones, 220+ PoPs
Announced Regions
Six Regions and 18 AZs in Australia, India, Indonesia, Japan, Spain, Switzerland.
* Available to select AWS customers who request access. Customers wishing to use the Asia Pacific (Osaka) Local Region should speak with their sales representative.
8
AWS Region Design
AWS Regions are comprised of multiple AZs for high availability, high scalability, and high
fault tolerance. Applications and data are replicated in real time and consistent in the
AWS Availability Zone (AZ)
different Azs
AWS Region
Transit AZ
AZ AZ
Transit AZ
A Region is a physical location in the Availability Zones consist of one or more discrete data
world where we have multiple Availability centers, each with redundant power, networking, and
Zones. connectivity, housed in separate facilities.
9
Availability Zones
Region is comprised of multiple Availability Zones
11
Amazon EC2
Amazon EC2
Linux | Windows
13
EC2 Terminology
AMI
EBS EBS EBS EBS EBS EBS
AZ Availability Zone
Virtual Machine Running or
Configuration Stopped VM
EBS
S3 Buckets
Snapshots
Amazon S3
Region
14
Instance Types
NEW
Amazon R5
T3 M5 D2 H1 R5 X1 X1e I3 I3m C5 G3 P3 F1 Z1d Z1 dm
Lightsail m
Virtual Burstable General Dense Big Data Memory Optimized In- Memory High I/O Bare Compute Graphics General FPGA Compute and
Private Purpose Storage Optimized memory Intensive Metal Intensive Intensive Purpose Memory Intensive
Servers High I/O GPU
20
Purchasing options at a glance
On-Demand Reserved Spot
Instances Instances Instances
Pay for compute capacity by the Make a low, one-time payment Bid for unused capacity,
hour with no long-term and receive a significant charged at a spot price which
commitments discount on the hourly charge fluctuates based on supply
and demand
21
Amazon EBS
What is Amazon EBS?
EC2
instance
23
Amazon EBS volume types
SSD HDD
24
Amazon VPC
Amazon VPC - Virtual Private Cloud
Provision a logically isolated section of the AWS Cloud where you can launch AWS resources
in a virtual network that you define.
27
VPC Building Blocks
How to segment networks inside a VPC?
VPC Subnets
VPC 10.0.0.0/16
Subnet A1 Subnet B1
• You can add one or more subnets in each
Availability Zone 10.0.0.0/24 10.0.2.0/24
30
How to direct traffic out of my Subnets?
Subnets and Route Tables VPC
• Direct Connect
Router
31
How to connect my VPC to the Internet?
Internet Gateway
Internet
VPC
Internet gateway
32
Can I have outbound only Internet access?
NAT Gateway
Internet
VPC
• Enable outbound connection to the
internet Internet gateway
access
• Fully managed by AWS EC2 NAT
Instance gateway
• Highly available
• Up to 10Gbps bandwidth Private subnet
34
VPC Security
Can I filter traffic reaching
VPC
my instances?
Internet gateway
HTTPS
(TCP 443)
Internet gateway
• Distributes incoming application or
network traffic across multiple targets Elastic Load Balancing
(ELB)
• EC2 instances
Auto Scaling Group
• Containers
• IP address
EC2 EC2 EC2 EC2
Instance Instance Instance Instance
• Multiple Availability Zones
• Scales automatically Elastic Load Balancing
(ELB)
• Auto Scaling Groups can add or remove
instances as required Auto Scaling Group
39
Auto Scaling
Auto Scaling group
Max
Min
43
Launch template determines what will launch
• User data
44
Fully automated bootstrapping
Sample user data
#!/bin/bash
# Install updates
sudo yum update -y;
47
Scaling options
Max
Desired
48
Amazon RDS
Amazon RDS
Managed relational database service with a choice of popular database
engines
Easy to administer Performant & scalable Available & durable Secure and compliant
Easily deploy and maintain Scale compute Automatic Multi-AZ data Data encryption at rest and
hardware, OS and DB and storage with a few replication; automated in transit; industry
software; built-in monitoring clicks; minimal downtime for backup, snapshots, and compliance and assurance
your application failover programs
55
If you host your databases on-premises
App optimization
Scaling
High availability
Database backups
DB s/w patches
DB s/w installs
OS patches
OS installation
Server maintenance
Rack & stack
Power, HVAC, net
you
60
If you host your databases in Amazon EC2
App optimization
Scaling
High availability
Database backups
DB s/w patches
DB s/w installs
OS patches
OS installation OS installation
Server maintenance Server maintenance
Rack & stack Rack & stack
Power, HVAC, net Power, HVAC, net
you
61
If you choose Amazon RDS
App optimization
Scaling Scaling
High availability High availability
Database backups Database backups
DB s/w patches DB s/w patches
DB s/w installs DB s/w installs
OS patches OS patches
OS installation OS installation
Server maintenance Server maintenance
Rack & stack Rack & stack
Power, HVAC, net Power, HVAC, net
you
62
Monitoring and Logging
AWS CloudWatch
Monitoring services for AWS Resources and AWS -based Applications
What does it do?
Collect and Track Metrics
AWS
Resource
Your
Custom
Data
CloudWatch
66
CloudWatch Logs + Filter
AWS
Resource
Your
Custom
Data
CloudWatch
72
AWS CloudTrail
What can you answer using a CloudTrail event?
Supported services
http://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-supported-services.html
74
Secrets Manager
AWS Secrets Manager enables customers to
manage, retrieve, and rotate database credentials,
API keys, and other secrets throughout their
lifecycle
Sample command
aws secretsmanager create-secret --name TestApplication/MyTestDatabaseSecret
--description “Upload credentials for my test database from the CLI. Team Isengard
owns this secret."
--secret-string file://mycreds.json
80
Rotate secrets safely
• Built-in integrations for rotating all Amazon Relational Database
Service (Amazon RDS)
database types
• Extensible with AWS Lambda
• Use versioning so that applications don’t break
when secrets are rotated
• Pay for the API call; no additional charge for
rotating secrets
82
Questions?
Lab 1
• Go to https://aws.qwiklabs.com
• Login with your account.
• If you don’t have an account, register and then activate the account using the email that you
will receive.
• Start the Lab 1, and read the instructions.
• If you have doubts about the activity, please ask the trainer to receive help.
• You have 45 minutes to complete this lab.
84