AWS STP-Microsoft Workloads - Tech
AWS STP-Microsoft Workloads - Tech
(Technical)
Emiliano Espinoza
AWS Partner Trainer
Agenda
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 3
Module 1: Positioning AWS for
Microsoft Workloads
Module agenda
• Positioning
• Drivers and challenges
• AWS benefits
• How to assess the current workloads
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Key customer drivers
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 6
AWS supports Microsoft
workloads
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 7
AWS services support Microsoft workloads
TECHNICAL AND BUSINESS SUPPORT
Support Professional
services
Optimization
guidance
Technical and business support
APN Partner
ecosystem
Training and
certification
Solutions management
Account
management
Security and billing
reports
Personalized
dashboard
AWS MARKETPLACE
Business applications
Business
intelligence
DevOps tools Security Migration
Networking Databases Storage
ANALYTICS DEVOPS MOBILE SERVICES IOT AI/ML ENTERPRISE APPLICATIONS HYBRID ARCHITECTURE MIGRATION
Amazon One-click application Amazon API Schema
Data warehousing Elasticsearch Rules engine Machine learning Virtual desktops Data integration
deployment Gateway conversion
Service
Single integrated Sharing and Integrated Exabyte-scale
Business intelligence Data pipelines Resource templates Device shadows Image recognition
console collaboration networking data migration
Hadoop/Spark
Analytics
Interactive SQL
queries
Build and test Identity Device SDKs Text to speech Corporate email
Integrated identity
and access
Application
migration
APPLICATION SERVICES App services Triggers Mobile app testing Local compute Custom model
training and hosting
Queuing and Email Targeted push
notifications Containers
notifications
Workflow Transcoding
Analyze and debug
Search
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
https://aws.amazon.com/products/
10 years of innovation: Windows on AWS
Windows Server 2019
150+
Amazon FSx for Windows
Amazon FSx for Windows File Server Active Directory cross-VPC
60+
Azure to AWS migration tool support
Amazon Elastic Container Service for
Application migration using AWS Server Migration Service
Kubernetes for Windows
Instance types Amazon CloudWatch application insights for .NET and SQL Server
AWS License Manager
SQL Server Performance and
2008 Upgrade
.NET Developer AWS Lambda support for PowerShell Core
30+
Windows Server 1803 Dedicated Host enhancement tag-on
Different AMIs for Sessions Manager AWS X-Ray .NET Core support
Customer Adoption
Windows workloads .NET Developer Hub Amazon DynamoDB Accelerator SDK for .NET
EC2 Windows on Bare Metal/Hyper-V AMI .NET Core 2.1 on Linux AMIs
Instance families Hyper-V support in AWS SMS SQL 2017 AMI AL2/Ubuntu
Windows Deep Learning AMI
.NET Core and Powershell on AL2/Ubuntu
Application-consistent snapshots through VSS
.NET Core 2.1 Support with AWS Lambda and AWS X-Ray
SQL Server 2017
Windows for Amazon Lightsail
.NET on AWS Lambda and AWS CodeBuild
Amazon Systems Manager AWS Trusted Advisor checks for Windows
Microsoft SharePoint 2016 (AWS Marketplace) AWS X-Ray .NET SDK
EC2 Dedicated Hosts (BYOL) Amazon Elastic Container Service for Windows containers
AWS Directory Service Windows Server 2016
SAP instance on AWS 2012 SQL Server 2016 Windows Server and EC2
Windows Server 2012 AWS Systems Manager Run Command
SQL Server 2012 Microsoft SCVMM Plugin
SQL Server
Windows Server 2003 EC2 Dedicated
SQL Server 2008 R2
Windows Server 2008 R2 Instances (BYOL) AWS Tools for Windows PowerShell .NET
SQL Server 2008 R2 Amazon Relational Database Service adds SQL Server
Microsoft SCOM plugin release Application modernization
.NET SDK WS 2008 and SQL Server 2008 Visual Studio Toolkit
Secure Familiar
Reliable Cost-effective
High-performance Flexible
Extensive
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 11
AWS global reach
Largest
global
footprint
• Regions
• Availability
zones
https://www.infrastructure.aws/
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 12
Microsoft workloads use cases
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 13
Microsoft workloads on AWS
AWS Cloud
Run the full array of Skype for
BizTalk Project Server
Microsoft workloads on Business Server
AWS Advanced Threat Remote Desktop SharePoint Microsoft
• Broader selection Analytics Services Server Dynamics
• Deeper capability Core Infrastructure System Center
System Center SQL Server
• AWS Deep Learning Suite Server
AMI for Microsoft Visual Studio Team
Windows Server Visual Studio Exchange Server
Windows Server Foundation Server
• FSx for Windows File Windows Desktop Enterprise
Server R Server Microsoft Office MSDN
Operating System
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 14
Microsoft on AWS use cases
1 2 3 4
Optimize SQL
Modernize .NET
Lift and shift Server and Active Innovate
applications
Directory
Retire technical debt and Increase performance Deploy faster and save Drive digital
increase reliability and resilience money transformation
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 15
Windows Server on Amazon EC2
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 16
Running Active Directory
AWS Cloud
Existing on-premises AD DS
Extend extended to the AWS Cloud
Self-managed Cloud-based AD DS
Re-host environment
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 17
Running SQL Server on AWS
• Launch SQL databases by • Managed service that makes • Additional savings and
using Amazon EC2 and it easy to deploy a relational flexibility
Amazon EBS database • Amazon RDS services like
• Manage your own SQL • Automates database Aurora
Server administration tasks • Refactoring tools and
• Maintain security, • Multi-AZ deployments services
management, and control provide automatic failover
• Integrates with IAM
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 18
Managing operations
19
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Build and run .NET applications on AWS
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 20
Module summary
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 22
Module 2: Designing AWS
Architectures for Microsoft
Workloads
Objectives
• Security features
Virtual Private Cloud (VPC), Security Groups, Network Access Control Lists,
and firewalls
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Mapping on-premises services to AWS
Data center to AWS cloud
Elastic
SoftwareLoad Balancing
load balancer
Microsoft
AWSActive Web server
Web server Web
Web server
server
Directory
Directory
server
Service
Elastic Load
Software Balancing
load balancer
SAN
Application
Application Application
Application Application
Application
Amazon Elastic server
server server
server server
server
Storage
Block Store
Customer
Responsible for Platform, applications, identity, and access management
security in the Operating system, network, and firewall configuration
cloud Client-side data Server-side Network traffic protection
encryption and data encryption (file (encryption/integrity/
integrity authentication system and/or data) identity)
Customer
Platform, applications, identity, and access management
• Firewall configuration Operating System, network, and firewall configuration
• VPC/VPN
Client-side data Server-side Network traffic protection
• Security groups encryption and data encryption (file (encryption/integrity/
• SSL integrity authentication system and/or data) identity)
• Volume encryption
AWS Foundation Services
Examples Compute Storage Database Networking
• Physical devices
• Network AWS Global Availability Zones Edge
• Transport security Infrastructure Regions locations
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Layered security approach
AWS Cloud
VPC
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 31
Amazon Virtual Private Cloud
(Amazon VPC)
• Provision virtual networks hosted on
Key configurable
AWS and dedicated to your AWS
features of Amazon
account
VPC:
• Logically isolate networks from other
• IP ranges
virtual networks
• Routing
• Launch many AWS resources, such as
• Network gateways Amazon EC2 instances, into VPCs
• Security settings • Provision dual-stack (IPv4 and IPv6)
addresses in VPCs
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 32
Isolating Windows workloads with VPC
AWS Cloud
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 33
Multi-AZ patterns increase reliability
AWS Cloud
Corporate VPC
network Availability Zone
Public subnet Private subnet
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 34
Security groups and instance-based
firewalls
• Virtual firewalls
VPC
• Must specify, otherwise: default for Public/private subnet
VPC
• Stateful: respond to allowed traffic Security group “https”
• Restricted by IP protocol, service port,
source or destination IP
• Changes automatically applied Instance
firewall
• Cannot be controlled through guest
OS Security group “rdp”
• Guest OS-level protection is
encouraged
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 36
Isolating resources with security groups
AWS Cloud
RDP-GW Security Group inbound rules
Corporate
Protocol Port Range
network Source VPC Availability Zone
TCP 443 Data center IP address rangePublic subnet Private subnet
Security group
ApplicationSecurity
server Security
group Group inbound rules
Protocol Port Range Source Application
Web server MS SQL server
TCP Remote desktop GW
3389 (IIS)
RDP-GW Security Group Server
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 37
Network access control lists
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 38
Network access control lists
VPC
• Stateless
Private subnet Public subnet
• virtual firewalls for subnets
• Numbered list of rules evaluated in Network ACL Network ACL
order
Security group
• Separate inbound and outbound rules Security group
Security
• Default, modifiable network ACL group
allows all traffic
• Each subnet must be associated with
a network ACL
• Managed through Amazon VPC APIs
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 39
Hybrid cloud architectures
Corporate data
centers
VPN connection
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 41
Example Microsoft architecture
VPC Availability Zone
Public subnet Private subnet
VPC
VPC NAT gateway endpoint Amazon S3
MS SQL AWS
Web server
Server Directory
Auto Scaling group
Remote (IIS)
Availability group
Service Corporate
desktop GW
network
Always-on
Internet
gateway AWS
Direct
Remote
Connect
desktop GW
AWS
Web server (IIS) MS SQL Directory
VPC NAT gateway Service
Public subnet Private subnet Server
Availability Zone
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 42
Storage
• Relationship to Amazon EC2
• Storage types: Instance store, Amazon EBS, Amazon S3, Amazon
FSx
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 43
Storage options
Amazon Elastic Amazon EC2 instance store Amazon Simple Storage Service (Amazon S3)
Block Store
(Amazon EBS)
Buckets
Windows EC2 Shared, network attached
instance 2
Windows EC2
instance 1 Amazon FSx
ephemeral0 ephemeral[0-2]
Volumes Volumes
Directly attached, not shared Shared, network attached
44
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon EBS volume types
Choose volume types that optimize cost and performance
GP2 General purpose ST1 Throughput-optimized
Use for boot volumes, low latency Use for streaming workloads, big data, and log
applications, and bursty databases processing that requires fast throughput at a
• 100 to 16,000 IOPs low price
• 250 MB/s maximum throughput • 20-500 MB/s base throughput
HDD
SSD
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 45
Using Amazon S3 for Microsoft
workloads
Amazon Simple
• SharePoint BLOB storage
Storage Service
(Amazon S3)
• Snapshot (backups) storage
Bucket
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 46
Amazon FSx for Windows File Server
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 49
Module 3: Running Microsoft
Windows Server on AWS
Running Microsoft • Run Microsoft Windows Server
Windows Server on instances in Amazon Elastic
Compute Cloud (EC2)
AWS
• Create custom Amazon Machine
Images (AMIs) for running
Microsoft workloads
52 © 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Windows Server on AWS
• Amazon EC2 review
• Windows support
• Amazon Machine Images
• Instance types
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 53
Amazon EC2
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 54
Control the EC2 guest OS
8 Security group(s)
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 56
EC2 instance types
General purpose Compute Storage optimized Accelerated computing Memory optimized Bare metal
optimized
ARM Burstable General High Dense GPU FPGA Higher memory Direct access to
purpose I/O storage to CPU ratio physical server
Graphics
resources
intensive
• Small
Instance size
• Medium
• Large
•
•
CPU
Memory Flexibility to choose the appropriate
• X-large
• etc
•
•
Storage type
Network capacity capacity and mix of resources
Choose an instance size
Start by reviewing the vendor-specified minimum requirements or sizing calculator
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 58
Optimize instance cost
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 59
Amazon Machine Images (AMIs)
• AMI Windows details
• Custom images
• Dynamic user data
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 60
Amazon Machine Images
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 61
Windows AMIs
• Windows Server (base)
• Microsoft SQL Server (Web, Enterprise, Standard, Express)
• IIS and ASP.NET
• NVIDIA GRID
• Containers
Windows AMIs:
https://aws.amazon.com/windows/resources/amis/
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 62
Customize Windows instances
Configure EC2Launch or EC2Config to:
• Change wallpaper
• Set the computer name and add DNS suffixes
• Forward information to the AWS console
• Send the RDP certificate thumbprint to the AWS console
• Set a random administrator password
• Extend the operating system partition
• Initialize secondary Amazon Elastic Block Store (EBS) volumes
• Run user data scripts
• Set persistent static routes to reach metadata and the AWS Key
Management Service
• Configure and schedule Sysprep
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 63
Configure instances with user data
User data
• Pass commands and data Batch script example
<script>
• Use EC2Config or EC2Launch winrm quickconfig –q
winrm set winrm/config/winrs @{MaxMemoryPerShellMB="300"}
• Specify scripts or commands winrm set winrm/config @{MaxTimeoutms="1800000"}
to run on first launch </script>
Example categories
• Retrieve data about an instance to use in a
ami-id script or command
hostname
• User data and other scripts can become self-
instance-id
local-ipv4
describing.
public-ipv4 • Metadata service is available from EC2
security-groups instances at:
http://169.254.169.254/latest/meta-data/.
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 65
Create custom AMIs
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 66
Create a new custom AMI
Custom
Amazon Volume
Amazon Custom
Machine snapshot
Windows Machine Windows
Image
EC2 Image EC2
instance instance
https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/Creating_EBSbacked_WinAMI.html
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 67
Licensing
• Available license models
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 68
Licensing
Bring your own
License included License mobility
license (BYOL)
• AWS manages the license • Requires Microsoft • Most choose Dedicated Host
Software Assurance
• Customers pay as they go • Software Assurance not
• AWS provides images • Requires a verification required
process with Microsoft • Windows Server can be
• AWS supports legacy
versions • Eligible software includes deployed on dedicated
SQL Server, Remote hosts
Desktop Services, Exchange, • Customers are responsible
and SharePoint for compliance with
• Import images and software Microsoft
• Customers can import and
use own software
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 69
References
• Security model
http://d0.awsstatic.com/whitepapers/Security/Intro_to_AWS_Security.pdf
https://d0.awsstatic.com/whitepapers/aws-security-whitepaper.pdf
• Certifications and attestations
http://aws.amazon.com/compliance/
• Amazon Virtual Private Cloud
http://aws.amazon.com/vpc
• EC2 instance types
http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/instance-types.html
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html
http://aws.amazon.com/ec2/instance-types/
• EC2 sizing for SharePoint
http://docs.aws.amazon.com/quickstart/latest/sharepoint/ec2.html
• Windows AMIs
http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/AMIs.html
• Metadata options
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 70
Module 4: Active Directory on
AWS
• Run Active Directory services on
Active Directory AWS
on AWS • Use three available options for
deploying Active Directory on
AWS
• Position each option for
acceptance
• Provide authentication and
network naming services that
apply to running Active Directory
on AWS
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Microsoft Active Directory on AWS
Central policy
Single sign-on Group access
management
Customer must design for Customer must design for Built-in redundancy and
Availability
high availability (HA) high availability replication
Ports to support cloud to on- Trust or replication ports Trust ports from cloud to on-
Networking premises Active Directory from cloud to on-premises premises Active Directory
(most exposed) Active Directory (least exposed)
Admin Designated organizational
Full control Full control unit (OU) control; some apps
Control unsupported
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Select an Active Directory option
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Active Directory Connector
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Active Directory Connector
authentication
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Active Directory Connector benefits
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Re-host: Microsoft Active
Directory on EC2
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Deploy and manage AD DS on AWS
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Microsoft Active Directory on EC2
Amazon VPC
Corporate network Availability Zone
Private subnet
Auth /
LDAP 3
4
Application
Remote users
Web server Application SQL Server Domain
2 Controller
Auth /
(IIS) server
LDAP
Trust or replication
1
VPN
AWS
Direct
Connect
Corporate Active
Directory
domain Web server Application SQL Server Domain
(IIS) server
controllers Controller
Active Directory on EC2 with
Private subnet
sync or Active Directory trust Availability Zone
84
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Re-platform: AWS Directory
Service for Microsoft Active
Directory
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Directory Service for Microsoft
Active Directory
• Easy to set up:
AWS Managed Active Directory
• A few clicks to set up from
• AWS Managed Active Directory Service console
Directory built on actual
• Scripted install via application
Microsoft Active Directory
programming interface (API)
• Powered by Windows Server
• Automatic patching, replication, and
2012 R2 Domain Controllers
daily snapshots
• Two Domain Controllers –
• Scale out with additional DCs
each in separate Availability
Zones • Compliance audited, approved for
Health Insurance Portability and
Accountability Act (HIPAA) and
Payment Card Industry Data Security
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. Standard (PCI DSS), when enabled
AWS Microsoft Active Directory trust to
on premises
VPC
Corporate network Availability Zone
Private subnet AWS Managed Services
4
Application
Amazon RDS for SQL Server
Remote users
Web server Application Auth / 1
LDAP
Auth /
(IIS) server
LDAP
Available via
Active Directory
AWS Quick
Site (AZ1)
VPC NAT gateway
Domain
Controller
Start
Remote desktop GW
Internet
GW
Active Directory
Site (AZ2)
Remote desktop GW
Domain
Controller
VPC NAT gateway
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Module 5: Database Services
Objectives
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Database services on AWS
Re-host
SQL Server on Amazon Elastic
Compute Cloud (Amazon EC2)
Cost-effective
Re-platform
Amazon Relational Database Service Complete control
(Amazon RDS) for SQL Server
Rapid provisioning
Re-factor
Adopting cloud-native
services
https://aws.amazon.com/sql/sql2008-eos/
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SQL Server on AWS
Re-host Re-platform
SQL Server on Amazon EC2 Amazon RDS for SQL Server
• Fully control the database and the operating • Consider Amazon RDS for SQL Server first
system (OS) • Automates administration tasks:
• Control backups, replication, and clustering • Provisioning
• Use features and options not available in • Patching
Amazon RDS • Backup/recovery
• Adopt hybrid architectures • Failure detection and repair
• License options: • Runs in Multi-AZ deployments to provide
• Purchase EC2 Windows + Bring Your automatic failover
Own License (BYOL) SQL • Integrates with AWS IAM for granular
• Purchase EC2 Windows + SQL resource permission controls
• BYOL Windows and SQL
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 100
SQL Server features at a glance
SQL Server on EC2 SQL Server on Amazon RDS
VERSIONS All 2008R2, 2012, 2014, 2016, 2017
EDITIONS Express, Web, Standard, Enterprise
HIGH AVAILABILITY AND Self-managed; always on, mirroring, Managed by AWS; multiple Availability Zone (AZ)
SCALING log ship deployments; database mirroring or always on
availability groups
ENCRYPTION Encrypted storage using AWS Key Management Service (AWS KMS) (all editions);
Transparent Data Encryption (TDE) support
AUTHENTICATION Windows and SQL Server authentication
OS INSTALLATION AND
MAINTENANCE, POWER, Managed by AWS
HVAC, NETWORKING
OS PATCHING AND Self-managed, full control Managed by AWS
CONTROL
DBMS INSTALLATION, Self-managed Automated software patching, instance
PATCHING, AND replacement
MAINTENANCE
BACKUPS Self-managed maintenance plans
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Managed automated backups with selectable
and third-party tools retention periods (up to 35 days)
Re-factor: Adopt cloud-native database
services
Amazon RDS Amazon Aurora Amazon Redshift
• Set up, operate, and • Database built for the • Fast, scalable data
scale relational cloud warehouse
databases in the cloud • Fully managed • Fast performance
• Choose Amazon • High performance • Easy to use
Aurora, PostgreSQL,
MySQL, MariaDB, • High availability and • Cost-effective
Oracle Database, or durability • Scales quickly
SQL Server • Highly secure • Queries data lakes
• Secure
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 102
Selecting the right instance
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Scale to meet needs
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Database instance types
General purpose Compute Storage optimized Accelerated computing Memory optimized Bare metal
optimized
ARM Burstable Standard High Dense GPU FPGA Higher memory Direct access to
I/O storage to CPU ratio physical server
Graphics
resources
intensive
Burstable – Provide a Standard – Provide a balance of Optimized for memory-intensive applications – X offers
baseline performance compute, memory, and network one of the lowest prices per GiB of RAM among the DB
level, with the ability to resources instance classes, and R offers improved networking and
burst to full CPU usage Amazon Elastic Block Store (Amazon EBS) performance
• Small
Instance size
• CPU
• Medium
• Large
• Memory Storage specifications
• Storage type
• X-large • General Purpose SSD
• Network capacity
• etc. • Provisioned IOPS
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Storage performance
GP2 General Purpose IO1 Provisioned IOPS
Predictable performance and burst capabilities Ideal for critical databases with sustained IOPS
that require fast and consistent I/O performance
Amazon RDS Amazon EC2 Amazon RDS Amazon EC2
SSD
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Native SQL Server availability features
Database mirroring Always on availability Log shipping
groups
• Provides a mirror of a • Provides high availability and • Automatically send
disaster recovery transaction log backups to
database on a separate
• Uses Windows Failover Cluster one or more secondary
database instance and SQL Server Enterprise databases on secondary
• Increases availability Edition servers
and data protection • Support failover of a set of user • Limited read-only access to
databases as unit or group. secondary databases
• Improves availability • Secondary databases can be
during upgrades • Optional delay to allow data
made available as read-only recovery
• Secondary databases used for
backup operations
Availability group
Remote
desktop GW
Internet AWS
GW Directory
Remote Service
desktop GW MSSQL
MS SQL Server
AWS Quick Elastic IP
address Secondary
File share
witness
Start NAT
Public subnet gateway
replicasubnet
Private
Active Directory site
Availability Zone
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
http://docs.aws.amazon.com/quickstart/latest/sql/welcome.html110
SQL Server availability on Amazon RDS
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Deploying and managing
Amazon Relational Database
Service (Amazon RDS)
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Start and manage SQL Server resources
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Launch an RDS instance with PowerShell
and performance
-Engine "sqlserver-se" -EngineVersion “14.00.3049.1.v1“
-AllocatedStorage 200 -StorageType "gp2”
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Monitor SQL Server performance
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon RDS Enhanced Monitoring
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Tools for Amazon RDS SQL Server
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Database backups
© 2020 Amazon Web Services, Inc. or its Affili.ates. All rights reserved.
Securing SQL Server on AWS
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Secure the SQL Server platform
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Access and auditing
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SQL 2017 – SQL Linux
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Storage performance for EC2 SQL
Server
• Consider IOPS and throughput
performance requirements Example volume layout
• Enable EBS optimization on instance C:\ Boot on General Purpose
• Create a single volume for data and SSD
logs D:\ Data and log files on
• Format with 64 K allocation unit size PIOPS single or striped set
• Match total EBS IOPS and throughput E:\ Backups on ST1 or SC1
to instance type Z:\ tempdb on instance
• Stripe EBS PIOPS volumes for more storage (if available)
than 20,000 IOPS
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Configure tempdb on instance storage
2. Modify the drive’s access control list to grant service account access.
icacls Z:\ /grant "NT SERVICE\MSSQLSERVER”:(OI)(CI)(F)
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Migrating databases
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Database components to migrate
1 2 3 4
Migrate the schema Migrate stored Migrate data Verify the schema
procedures and other DB and data
objects
Migrate table schema from Migrate Stored Procedures, Set up data Perform schema
source to target DB functions and other DB objects migration scripts comparison of tables,
from source to target DB indexes
Migrate user accounts and Perform unit testing of the Perform data Perform data
permissions from source to migrated schema as per test plan migration verification between
target DB source and target
database
Log shipping Unit testing of data
migrated from
source to target DB
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Database migration strategies
Zero or
• Suitable for mission critical databases
near-zero
• Requires detailed planning and appropriate
downtime continuous data replication tools
migration
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Database Migration Service
1
Replication
instance
4
3
2
5
Data Source Target
connection endpoint endpoint
Replication task
Source Target
database AWS Database Migration Service database
SOURCE TARGET
ON-PREMISES DATA CENTER AMAZON EC2 OR RDS
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Summary
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Module 6: Automate Operations
Objectives
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Automate server migrations
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VM Import/Export
Virtualization formats Import methods
• VMware ESX AWS Command Line Interface (AWS CLI)
• VMware workstation 1. Download and install AWS CLI.
• Microsoft Hyper-V 2. Upload to Amazon Simple Storage Service
(Amazon S3).
• Citrix Xen
3. Run AWS commands:
Image formats • ec2 import-image
• ec2 describe-import-image-tasks
• Open Virtualization Archive (OVA) • ec2 run-instances
• Virtual Machine Disk (VMDK)
• Virtual Hard Disk (VHD)
• Raw disk
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Server Migration Service
Free to use; pay only for the storage resources that the migration uses.
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS SMS
3 AWS SMS
VM VM VM
2
Replication job Replication job
VM VM Agentless
Server … …
VM Migration
• Remote Desktop (RD)
W • .NET framework
Connector
Appliance
4 5
VMDK
1 (OVA or
VM VHD)
• Secure Shell (SSH) Snapshot Convert
L • GRUB bootloader
Amazon S3 Amazon EBS
VMware vCenter/ESXi or Hyper-V snapshot AMIs
https://aws.amazon.com/cloud-data-migration/
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Automate change and
configuration
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Configuration management
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS OpsWorks
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Use cases
• Bootstrap new instances
• Create new Windows Servers, apply desired state from code in GitHub
• Bootstrap from Chef Supermarket or Puppet Forge, change and customize where needed
• Update configurations on running instances or servers
• Apply policy changes or new versions
• Use a single commit to apply pretested changes
• Define policies
• Define configurations that enforce a policy on nodes (for example, all nodes must run a new
log rotation policy to prevent file systems filling)
• Use the configuration manager (CM) server to vet configurations and bring server into spec
• Use continuous integration and continuous delivery (CI/CD) pipelines to promote
changes (adopt software metaphor)
• Drive changes from developer desktop to production
• Revert changes quickly (reduces fear of changes)
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Automate management
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Systems Manager
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Systems Manager capabilities
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Systems Manager
Parameter Store
Run Command Session Manager State Manager Documents
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Systems Manager Agent (SSM)
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SSM Agent in hybrid environments
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Systems Manager Run Command
Overview
• Remotely manage instance configurations securely
Run Command • Delegate instances to eliminate the need for RDP and secure shell access
• Retrieve the status and output of commands and receive notifications about them
Configuration
• Install the SSM Agent
• Configure an IAM user
• Configure an instance profile role for any instance that will process commands (or activate with a code)
• Configure the network
Using
• Choose command document
• Specify the command to run and its parameters
• Store the commands’ output in an Amazon S3 bucket and send notifications
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Automation
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Patch Manager
Manage patching Windows or Linux servers, Amazon EC2, or on premises
Patch Manager
Use Patch Manager to: Patch groups can:
• Create patch baselines • Tie instances to a patch baseline
• Organize instances into • Ensure instances use the rules defined
patch groups in the associated baseline
• Assign to Maintenance • Group instances for patch compliance
Windows reporting
• Monitor status and Note: An instance can be a member of
compliance only one patch group
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Parameter Store
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Automate management
compliance across
cloud-based and on-
premises servers Automation Compliance
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS CloudFormation
Infrastructure as code
AWS CloudFormation
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Reduce complexity with AWS
CloudFormation and Quick Starts
1. Sign in.
2. Choose a Region and create a key
pair.
3. Launch AWS Quick Start.
4. Specify details for the parameters.
https://aws.amazon.com/quickstart/
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS CloudFormation concepts
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How AWS CloudFormation works
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS CloudFormation stack sets
Region
Template
Stack set
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Summary
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Module 7: Tools and .NET
Development
Objectives
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Tools and .NET • Run .NET applications and
development on Windows workloads on AWS
AWS • Use AWS Lambda, AWS X-Ray,
and AWS CodeStar with .NET,
.NET Core, and Core 2.1
• Use AWS to host, manage, and
run .NET applications
• Build architectures that support
.NET with familiar tools
• Use code management services
and code build architectures
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Scripting AWS with PowerShell
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Tools for PowerShell
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS tools for .NET
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Tools for Microsoft Visual Studio
Team Services
AWS Systems AWS Systems Amazon Amazon AWS CLI AWS Tools for
Manager Manager S3 SNS PowerShell
Parameter Store Run Command
https://github.com/aws/aws-vsts-tools/
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Publish .NET applications to AWS
Elastic Beanstalk
• Enables customers to quickly deploy and
manage applications in the AWS Cloud
without worrying about the infrastructure
• Visual Studio 2013, 2015, and 2017
supports application deployment to
Elastic Beanstalk
• Supports deploying .NET Core 1.0, 1.1,
2.0, and 2.1 web applications
• Supports deploying .NET Framework web
applications
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Cloud Development Kit for .NET
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS code services
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS CodePipeline
Pull source code from Build with Test with Deploy with
• AWS CodeCommit • AWS CodeBuild • AWS CodeBuild • AWS CloudFormation
• Amazon ECR • CloudBees • AWS Device Farm • AWS CodeDeploy
• Amazon S3 • Jenkins • BlazeMeter • Amazon Elastic Container Service
• GitHub • Solano CI • Ghost Inspector (Amazon ECS)
• TeamCity • HPE StormRunner Load • AWS Elastic Beanstalk
• Nouvola • AWS OpsWorks Stacks
• Runscope • AWS Service Catalog
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved. • XebiaLabs
AWS CodeStar
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Summary
© 2020 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Course evaluation
© 2020 Amazon Web Services, Inc. or its affiliates. All rights reserved. This work may not be reproduced or redistributed, in whole or in part, without prior written permission
from Amazon Web Services, Inc. Commercial copying, lending, or selling is prohibited. Corrections, feedback, or other questions? Contact us at
https://support.aws.amazon.com/#/contacts/aws-training. All trademarks are the property of their owners.