getting started with sql server 2016 on amazon ec2 - august 2016 monthly webinar series
TRANSCRIPT
![Page 1: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/1.jpg)
© 2015, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Tom Staab, Partner Solutions Architect
August 25, 2016
Getting Started with Microsoft SQL Server 2016 on AWS
![Page 2: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/2.jpg)
Introduction
How to run SQL on AWS New features in SQL Server 2016 Setting up an instance Demo Q&A
![Page 3: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/3.jpg)
How to run SQL Server on AWS
![Page 4: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/4.jpg)
What is Amazon EC2?
Amazon Elastic Compute Cloud Resizable compute capacity Web-scale cloud computing Virtual machines with full administrative rights License Included and BYOL options available
![Page 5: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/5.jpg)
SQL Server on Amazon EC2
Licensing Options Purchase an Amazon Machine Instance (AMI) that includes Windows and SQL Server Purchase a Windows AMI and install SQL Server yourself (BYOL)
You manage the virtual machine security, storage, network ports, etc. Full SQL Server sysadmin privileges
![Page 6: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/6.jpg)
What is Amazon RDS?
Managed database service Automatic patching, backups, mirroring, etc. Automatic Host Replacement protects you in the event of a hardware failure.
6 database engines to choose from: Amazon Aurora, Oracle, PostgreSQL, MySQL, MariaDB, and SQL Server
License-included and BYOL options available
![Page 7: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/7.jpg)
SQL Server on Amazon RDS
Up to 30 databases per instance Optional managed Multi-AZ deployment for high availability Transparent Data Encryption for encryption at rest and the use of
SSL to secure data in transit Native backup and restore for Microsoft SQL Server databases
using full backup files (.bak files)
![Page 8: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/8.jpg)
SQL Server EC2 vs. RDS: Which should I use?
EC2 RDSLicense included BYOL Full control over the instance Automated backups Self-managed AlwaysOn Availability Groups AWS-managed Multi-AZ deployment
![Page 9: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/9.jpg)
Failover / Disaster Recovery
EC2 (custom) Can span availability zones or regions Mirroring AlwaysOn Availability Groups Transaction Log Shipping
RDS (AWS-managed mirroring) Spans Availability Zones Automatic Failover
![Page 10: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/10.jpg)
What about the rest of SQL Server?
Integration Services (SSIS) Reporting Services (SSRS) Analysis Services (SSAS) SQL Agent Service Broker Data Quality Service Master Data Service
![Page 11: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/11.jpg)
What about the rest of SQL Server?
Remember: RDS is a managed database engine. Most tools or drivers (OLE DB, ODBC, or ADO.NET) that
connect to SQL Server can connect to an RDS instance. For example, SSIS running on EC2 or on-premises can
use a connection to an RDS SQL Server (or other engine) instance as long as the network ports are properly configured.
![Page 12: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/12.jpg)
SQL Server 2016
![Page 13: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/13.jpg)
What’s New in 2016
The “biggest leap forward in Microsoft data platform history” Many improvements and new features across Performance, Security, Analytics Next level of operability with cloud and open source
EnterpriseComprehensive datacenter capabilities for mission-critical database, business intelligence, and advanced analytics workloads.
StandardCore data management and business intelligence capabilities for non-critical workloads with minimal IT resources.
ExpressFree edition of SQL Server ideal for development and production for desktop, web and small server applications.
DeveloperFull feature set of SQL Server Enterprise; not for production environments or use with production data.
Enhanced in-memoryOperational analyticsAlways EncryptedQueryStoreR integration
Row-level securityDynamic data maskingTemporalBasic auditingR connectivity
Policy-based managementBasic reporting and analyticsModernized reportsJSON support
Free edition for dev and test
![Page 14: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/14.jpg)
Improved Installation Experience
SQL Server 2016 also has some new installation options, for better performance and automation Selectable option for Instant File Initialization Configurable tempdb deployment Parameterized install with ini file (can use CloudFormation)
![Page 15: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/15.jpg)
Setting up an instance
![Page 16: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/16.jpg)
DevOps with AWS CloudFormation Basic standard in AWS for automating deployment CloudFormation Template
JSON-formatted document which describes a configuration to be deployed in an AWS account
When deployed, refers to a “stack” of resources PowerShell can be slipstreamed into UserData and run at instance bootstrap AWS CloudFormation
![Page 17: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/17.jpg)
How CloudFormation Works
![Page 18: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/18.jpg)
Anatomy of a Template{ "AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "This is my template!",
"Parameters" : {},
"Mappings" : {},
"Conditions" : {},
"Resources" : {},
"Outputs" : {}}
![Page 19: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/19.jpg)
Resources
"Resources" : {
"Logical ID" : {
"Type" : "Resource type",
"Properties" : { Set of properties }
}}
![Page 20: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/20.jpg)
Resources: Example
"Resources" : {
"myEC2Instance" : { "Type" : "AWS::EC2::Instance",
"Properties" : { "ImageId" : "ami-e7ac2790", "InstanceType" : "m3.medium" }
}}
![Page 21: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/21.jpg)
Anatomy of a Template{ "AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "This is my template!",
"Parameters" : {},
"Mappings" : {},
"Conditions" : {},
"Resources" : {},
"Outputs" : {}}
![Page 22: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/22.jpg)
ParametersType
Standard: String, NumberAdvanced: AWS::EC2::KeyPair::KeyName, AWS::EC2::SecurityGroup::Id,AWS::EC2::Subnet::Id, AWS::EC2::VPC::IdLists: CommaDelimitedList, List<Number>,List<AWS::EC2::SecurityGroup::Id>, List<AWS::EC2::Subnet::Id>,List<AWS::EC2::VPC::Id>
Default ValueMasked (NoEcho)Constraints
AllowedValues, AllowedPattern, MinLength, MaxLength, MinValue, MaxValue
Description
![Page 23: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/23.jpg)
Parameters
"Parameters" : {
"KeyPair" : {
"Type" : "AWS::EC2::KeyPair::KeyName",
"Description" : "What will be the machine key you want to use to get the instance password?”
}}
![Page 24: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/24.jpg)
Using Parameters
"Resources" : {
"myEC2Instance" : { "Type" : "AWS::EC2::Instance", "Properties" : { "ImageId" : "ami-e7ac2790", "InstanceType" : "m3.medium", "KeyName": { "Ref": "KeyPair" } } }}
![Page 25: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/25.jpg)
Outputs
"Outputs" : {
"Logical ID" : {
"Value" : "Value to return", "Description" : "Information about the value"
}}
![Page 26: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/26.jpg)
Outputs
"Outputs" : {
"myEC2InstanceId" : {
"Value" : { "Ref" : "myEC2Instance" },
"Description" : "Instance Id of the new EC2 Instance"
}}
![Page 27: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/27.jpg)
Anatomy of a Template{ "AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "This is my template!",
"Parameters" : {},
"Mappings" : {},
"Conditions" : {},
"Resources" : {},
"Outputs" : {}}
![Page 28: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/28.jpg)
Mappings
"Mappings" : {
"Mapping01" : {
"Key01" : { "Value" : "Value01" },
"Key02" : { "Value" : "Value02" },
"Key03" : { "Value" : "Value03" }
}}
![Page 29: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/29.jpg)
Mappings (2)
"RegionMap" : {
"us-east-1" : { "32" : "ami-6411e20d", "64" : "ami-7a11e213" }, "us-west-1" : { "32" : "ami-c9c7978c", "64" : "ami-cfc7978a" }, "eu-west-1" : { "32" : "ami-37c2f643", "64" : "ami-31c2f645" }, "ap-southeast-1" : { "32" : "ami-66f28c34", "64" : "ami-60f28c32" }, "ap-northeast-1" : { "32" : "ami-9c03a89d", "64" : "ami-a003a8a1" }
}
![Page 30: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/30.jpg)
Functions
Currently, you can use intrinsic functions in resource properties, metadata attributes, and update policy attributes.
Fn::GetAttFn::Base64Fn::If (Fn::Equals, Fn::And, Fn::Or, Fn::Not)Fn::FindInMapFn::GetAZsFn::JoinFn::SelectRef
![Page 31: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/31.jpg)
Pseudo Parameters
You can be “aware” of where your stack runs and get some information about the context.
AWS::AccountIdAWS::NotificationARNsAWS::NoValueAWS::RegionAWS::StackIdAWS::StackName
![Page 32: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/32.jpg)
Using Mappings "Resources" : {
"myEC2Instance" : {
"Type" : "AWS::EC2::Instance",
"Properties" : { "ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "32"]}, "InstanceType" : "m1.small"
}
}
}
![Page 33: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/33.jpg)
Referencing Resources "Resources" : { "mySubnet" : { "Type" : "AWS::EC2::Subnet", ... },
"myEC2Instance" : { "Type" : "AWS::EC2::Instance",
"Properties" : { "ImageId" : "ami-e7ac2790", "InstanceType" : "m1.small", "SubnetId" : { "Ref" : "mySubnet" } } } }
![Page 34: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/34.jpg)
Getting Attributes
"Outputs" : {
"LBDNS" : {
"Value" : { "Fn::GetAtt" : [ "myEC2Instance" , "PublicDnsName" ] },
"Description" : "DNS Name of the Instance"
}}
![Page 35: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/35.jpg)
Demo
![Page 36: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/36.jpg)
ResourcesSQL Server on Amazon EC2https://aws.amazon.com/windows/products/sql/
SQL Server on Amazon RDShttps://aws.amazon.com/rds/sqlserver/
Windows Server on AWShttp://aws.amazon.com/windows/
AWS Windows Case Studieshttp://aws.amazon.com/windows/case-studies/
Microsoft Licensing on AWS http://aws.amazon.com/windows/resources/licensing
EC2 Windows Documentationhttp://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/concepts.html
Use Free Tier for a Yearhttp://aws.amazon.com/free/
Resources for Getting Startedhttp://aws.amazon.com/getting-started
AWS Partner Networkhttp://aws.amazon.com/partners
AWS Quick Startshttps://aws.amazon.com/quickstart/
Take a free Test Drivehttp://aws.amazon.com/testdrive/
RDS SQL Documentationhttp://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_GettingStarted.CreatingConnecting.SQLServer.html
![Page 37: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/37.jpg)
TrainingVirtual learning labs are available in many Microsoft subjects. Four learning quests are available, or you can choose individual labs. Learn more at aws.amazon.com/windows/resources/training
Creating Amazon EC2 Instances with Microsoft Windows
AWS Tools for Windows PowerShell: Getting Started Using Windows Server Storage Spaces with
Amazon EBS Introduction to Amazon Relational Database
Service Administering Amazon RDS for Microsoft SQL
Server SQL Server in Amazon EC2: Getting Started
![Page 38: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/38.jpg)
Licensing
AWS provides options for licensing SQL Server You can buy from us or bring your own (BYOL) Buy from us by spinning up a license-included instance of EC2 or
RDS, and pay only for what you use (default option) To bring your own, you can use dedicated (single-tenant), or on
multi-tenant with License Mobility through Software Assurance
more information:https://aws.amazon.com/windows/resources/licensing/https://aws.amazon.com/windows/resources/licensemobility/
![Page 39: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/39.jpg)
re:Invent is coming!The largest global cloud computing conference keeps on growing. Now spanning five days and three venues.
Attend the Windows track Breakout sessions Demos & Hands on Labs Customer examples &
best practices
Learn more and register:https://reinvent.awsevents.com/
![Page 40: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/40.jpg)
Questions & Answers
![Page 41: Getting Started with SQL Server 2016 on Amazon EC2 - August 2016 Monthly Webinar Series](https://reader035.vdocuments.net/reader035/viewer/2022062822/587d53aa1a28abee158b51bd/html5/thumbnails/41.jpg)
Thank you!