reference deployment

SQL Server Failover Cluster Instance on AWS

Deploys an Always On FCI and Windows Server Failover Clustering with Amazon FSx

This Quick Start builds a highly available Microsoft SQL Server environment, which includes Microsoft Windows Server and SQL Server running on Amazon Elastic Compute Cloud (Amazon EC2), on the Amazon Web Services (AWS) Cloud. It uses AWS Systems Manager Automation, AWS CloudFormation, and Windows PowerShell Desired State Configuration (DSC) to deploy a multi-node SQL Always On Failover Cluster Instance (FCI) and Amazon FSx for Windows File Server.

This architecture uses Windows Server Failover Clustering (WSFC) to increase application availability. WSFC provides infrastructure features that complement the high availability and disaster recovery scenarios supported in the AWS Cloud.

This Quick Start is for IT infrastructure architects, administrators, and DevOps professionals who want to deploy and customize their own SQL Server environment. If you want a more guided deployment option, consider AWS Launch Wizard.

This Quick Start requires that you deploy into a Region that supports Amazon FSx and that you use the Bring Your Own License model for Microsoft SQL. For a similar architecture that does not have these requirements, see the Quick Start for SQL Server with Always On Replication.

AWS-logo

This Quick Start was developed by AWS.

  •  What you'll build
  •  How to deploy
  •  Cost and licenses
  •  What you'll build
  • Use this Quick Start to automatically set up the following SQL Server environment on AWS:

    • A highly available architecture that spans two Availability Zones.*
    • A virtual private cloud (VPC) configured with public and private subnets, according to AWS best practices, to provide you with your own virtual network on AWS.*
    • In the public subnets:
      • Managed network address translation (NAT) gateways to allow outbound internet access for resources in the private subnets.*
      • A Remote Desktop Gateway (RD Gateway) host in an Auto Scaling group to allow inbound Remote Desktop Protocol (RDP) access to Amazon EC2 instances in public and private subnets.*
    • In the private subnets:
      • Two Amazon EC2 instances running Microsoft Windows with SQL Server. These instances are installed as nodes in a WSFC cluster in an Always On FCI configuration across the Availability Zones. Each node contains an Amazon Elastic Block Store (Amazon EBS) root volume.
    • An Amazon FSx file system, which the FCI nodes share. SQL Server is installed in this file system. This file system also stores all SQL database and log files, and it acts as the WSFC cluster’s file-share witness.*
    • AWS Directory Service with a managed directory. The Amazon FSx file system and the Amazon EC2 Windows instances that host this architecture’s nodes are joined to the same Active Directory domain.
    • AWS Secrets Manager keys to store credentials.
    • An AWS Systems Manager automation document to automate the deployment.

    *  The template that deploys the Quick Start into an existing VPC skips the components marked by asterisks and prompts you for your existing VPC configuration.

  •  How to deploy
  • To build your SQL Server FCI environment on AWS, follow the instructions in the deployment guide. The deployment process includes these steps:

    1. If you don't already have an AWS account, sign up at https://aws.amazon.com, and sign in to your account.
    2. Launch the Quick Start. Each deployment takes about 2.25 hours. Choose the Region from the top toolbar before creating the stack. You can choose from three options:
    3. Test the deployment.

    Amazon may share user-deployment information with the AWS Partner that collaborated with AWS on the Quick Start.  

  •  Cost and licenses
  • You are responsible for the cost of the AWS services and any third-party licenses used while running this Quick Start reference deployment. There is no additional cost for using this Quick Start.

    The AWS CloudFormation template for this Quick Start includes configuration parameters that you can customize. You can choose different instance types for your resources, configure CIDR blocks and IP addresses, and customize your Active Directory and SQL Server configuration. Some of these settings, such as instance type, or volume size affect the cost of deployment. For cost estimates, see the pricing pages for each AWS service you use. Prices are subject to change.

    Tip: After you deploy the Quick Start, create AWS Cost and Usage Reports to track costs associated with the Quick Start. These reports deliver billing metrics to an Amazon Simple Storage Service (Amazon S3) bucket in your account. They provide cost estimates based on usage throughout each month and aggregate the data at the end of the month. For more information, see What are AWS Cost and Usage Reports?

    This Quick Start requires a license for Microsoft SQL Server 2019 and a copy of the SQL 2019 installation media. You can obtain a trial license from the Microsoft Evaluation Center.

    Alternatively, if you’re not using the software for a production environment, you can use the MSSQL Developer Edition. This edition provides the full capabilities of Enterprise Edition without requiring license costs.

    This Quick Start deploys MSSQL in Bring-Your-Own-License mode. It does not support deployment of MSSQL license-included Amazon Machine Images (AMIs).