Preparing to create a CEV for RDS Custom for SQL Server (original) (raw)

You can create a CEV using an Amazon Machine Image (AMI) that contains pre-installed, License Included (LI) Microsoft SQL Server, or with an AMI on which you install your own SQL Server installation media (BYOM).

Preparing a CEV

Use the following procedures to create a CEV using Bring Your Own Media (BYOM) or pre-installed Microsoft SQL Server (LI).

The following steps use an AMI with Windows Server 2019 Base as an example.

To create a CEV using BYOM
  1. On the Amazon EC2 console, choose Launch Instance.
  2. For Name, enter the name of the instance.
  3. Under Quick Start, choose Windows.
  4. Choose Microsoft Windows Server 2019 Base.
  5. Choose an appropriate instance type, key pair, network and storage settings, and launch the instance.
  6. After launching or creating the EC2 instance, ensure the correct Windows AMI was selected from Step 4:
    1. Select the EC2 instance in the Amazon EC2 console.
    2. In the Details section, check the Usage operation and ensure that it is set to RunInstances:0002.
      Windows AMI using RunInstances:0002 for BYOM.
  7. Log in to the EC2 instance and copy your SQL Server installation media to it.
  8. Install SQL Server. Make sure that you do the following:
    1. Review Requirements for BYOM for RDS Custom for SQL Server and Version support for RDS Custom for SQL Server CEVs.
    2. Set the instance root directory to the default C:\Program Files\Microsoft SQL Server\. Don't change this directory.
    3. Set the SQL Server Database Engine Account Name to either NT Service\MSSQLSERVER or NT AUTHORITY\NETWORK SERVICE.
    4. Set the SQL Server Startup mode to Manual.
    5. Choose SQL Server Authentication mode asMixed.
    6. Leave the current settings for the default Data directories and TempDB locations.
  9. Grant the SQL Server sysadmin (SA) server role privilege to NT AUTHORITY\SYSTEM:
USE [master]  
GO  
EXEC master..sp_addsrvrolemember @loginame = N'NT AUTHORITY\SYSTEM' , @rolename = N'sysadmin'  
GO  
  1. Install additional software or customize the OS and database configuration to meet your requirements.
  2. Run Sysprep on the EC2 instance. For more information, seeCreate an Amazon EC2 AMI using Windows Sysprep.
  3. Save the AMI that contains your installed SQL Server version, other software, and customizations. This will be your golden image.
  4. Create a new CEV by providing the AMI ID of the image that you created. For detailed steps, see Creating a CEV for RDS Custom for SQL Server.
  5. Create a new RDS Custom for SQL Server DB instance using the CEV. For detailed steps, see Create an RDS Custom for SQL Server DB instance from a CEV.

The following steps to create a CEV using pre-installed Microsoft SQL Server (LI) use an AMI with SQL Server CU20 Release number 2023.05.10 as an example. When you create a CEV, choose an AMI with the most recent release number. This ensures that you are using a supported version of Windows Server and SQL Server with the latest Cumulative Update (CU).

To create a CEV using pre-installed Microsoft SQL Server (LI)
  1. Choose the latest available AWS EC2 Windows Amazon Machine Image (AMI) with License Included (LI) Microsoft Windows Server and SQL Server.
    1. Search for CU20 within the Windows AMI version history.
    2. Note the Release number. For SQL Server 2019 CU20, the release number is2023.05.10.
      AMI version history result for SQL Server 2019 CU20.
    3. Open the Amazon EC2 console athttps://console.aws.amazon.com/ec2/.
    4. In the left navigation panel of the Amazon EC2 console choose Images, then AMIs.
    5. Choose Public images.
    6. Enter 2023.05.10 into the search box. A list of AMIs appears.
    7. Enter Windows_Server-2019-English-Full-SQL_2019 into the search box to filter the results. The following results should appear.
      Supported AMIs using SQL Server 2019 CU20.
    8. Choose the AMI with the SQL Server edition that you want to use.
  2. Create or launch an EC2 instance from your chosen AMI.
  3. Log in to the EC2 instance and install additional software or customize the OS and database configuration to meet your requirements.
  4. Run Sysprep on the EC2 instance. For more information prepping an AMI using Sysprep, seeCreate a standardized Amazon Machine Image (AMI) using Sysprep.
  5. Save the AMI that contains your installed SQL Server version, other software, and customizations. This will be your golden image.
  6. Create a new CEV by providing the AMI ID of the image that you created. For detailed steps on creating a CEV, see Creating a CEV for RDS Custom for SQL Server.
  7. Create a new RDS Custom for SQL Server DB instance using the CEV. For detailed steps, see Create an RDS Custom for SQL Server DB instance from a CEV.

Region availability for RDS Custom for SQL Server CEVs

Custom engine version (CEV) support for RDS Custom for SQL Server is available in the following AWS Regions:

Version support for RDS Custom for SQL Server CEVs

CEV creation for RDS Custom for SQL Server is supported for the following AWS EC2 Windows AMIs:

CEV creation for RDS Custom for SQL Server is supported for the following operating system (OS) and database editions:

For more information, see AWS Windows AMI version history.

Requirements for RDS Custom for SQL Server CEVs

The following requirements apply to creating a CEV for RDS Custom for SQL Server:

Limitations for RDS Custom for SQL Server CEVs

The following limitations apply to custom engine versions with RDS Custom for SQL Server:

Important

Modifying an RDS Custom for SQL Server DB instance to use a new CEV is an offline operation. You can perform the modification immediately or schedule it to occur during a weekly maintenance window.

If an AMI used by a CEV is deleted, any modifications that may require host replacement, for example, scale compute, will fail. The RDS Custom for SQL Server DB instance will then be placed outside of the RDS support perimeter. We recommend that you avoid deleting any AMI that's associated to a CEV.