Creating a CEV for RDS Custom for SQL Server
You can create a custom engine version (CEV) using the AWS Management Console or the AWS CLI. You can then use the CEV to create an RDS Custom for SQL Server DB instance.
Make sure that the Amazon Machine Image (AMI) is in the same AWS account and Region as your CEV. Otherwise, the process to create a CEV fails.
For more information, see Creating and connecting to a DB instance for Amazon RDS Custom for SQL Server.
Important
The steps to create a CEV are the same for AMIs created with pre-installed SQL Server and those created using bring your own media (BYOM).
To create a CEV
Sign in to the AWS Management Console and open the Amazon RDS console at https://console.aws.amazon.com/rds/
. -
In the navigation pane, choose Custom engine versions.
The Custom engine versions page shows all CEVs that currently exist. If you haven't created any CEVs, the table is empty.
-
Choose Create custom engine version.
-
For Engine type, choose Microsoft SQL Server.
-
For Edition, choose the DB engine edition that you want to use.
-
For Major version, choose the major engine version that's installed on your AMI.
-
In Version details, enter a valid name in Custom engine version name.
The name format is
. You can use 1–50 alphanumeric characters, underscores, dashes, and periods. For example, you might enter the namemajor-engine-version
.minor-engine-version
.customized_string
15.00.4249.2.my_cevtest
.Optionally, enter a description for your CEV.
-
For Installation Media, browse to or enter the AMI ID that you'd like to create the CEV from.
-
In the Tags section, add any tags to identify the CEV.
-
Choose Create custom engine version.
The Custom engine versions page appears. Your CEV is shown with the status pending-validation
To create a CEV by using the AWS CLI, run the create-custom-db-engine-version command.
The following options are required:
-
--engine
-
--engine-version
-
--image-id
You can also specify the following options:
-
--description
-
--region
-
--tags
The following example creates a CEV named
15.00.4249.2.my_cevtest
. Make sure that the name of your CEV begins
with the major engine version number.
For Linux, macOS, or Unix:
aws rds create-custom-db-engine-version \ --engine custom-sqlserver-ee \ --engine-version
15.00.4249.2.my_cevtest
\ --image-idami-0r93cx31t5r596482
\ --description "Custom SQL Server EE 15.00.4249.2 cev test"
The following partial output shows the engine, parameter groups, and other information.
"DBEngineVersions": [ { "Engine": "custom-sqlserver-ee", "MajorEngineVersion": "15.00", "EngineVersion": "15.00.4249.2.my_cevtest", "DBEngineDescription": "Microsoft SQL Server Enterprise Edition for RDS Custom for SQL Server", "DBEngineVersionArn": "arn:aws:rds:us-east-1:<my-account-id>:cev:custom-sqlserver-ee/15.00.4249.2.my_cevtest/a1234a1-123c-12rd-bre1-1234567890", "DBEngineVersionDescription": "Custom SQL Server EE 15.00.4249.2 cev test", "Image": [ "ImageId": "ami-0r93cx31t5r596482", "Status": "pending-validation" ], "CreateTime": "2022-11-20T19:30:01.831000+00:00", "SupportsLogExportsToCloudwatchLogs": false, "SupportsReadReplica": false, "Status": "pending-validation", "SupportsParallelQuery": false, "SupportsGlobalDatabases": false, "TagList": [] } ]
If the process to create a CEV fails, RDS Custom for SQL Server issues RDS-EVENT-0198
with
the message Creation failed for custom engine version
. The message
includes details about the failure, for example, the event prints missing files. To find
troubleshooting ideas for CEV creation issues, see Troubleshooting CEV errors for RDS Custom for SQL Server.major-engine-version.cev_name
Create an RDS Custom for SQL Server DB instance from a CEV
After you successfully create a CEV, the CEV status shows
pending-validation
. You can now create a new RDS Custom for SQL Server DB instance using
the CEV. To create a new RDS Custom for SQL Server DB instance from a CEV, see Creating an RDS Custom for SQL Server DB instance.
Lifecycle of a CEV
The CEV lifecycle includes the following statuses.
CEV status | Description | Troubleshooting suggestions |
---|---|---|
|
A CEV was created and is pending the validation of the associated AMI. A CEV will remain
in |
If there are no existing tasks, create a new RDS Custom for SQL Server DB instance from the CEV. When creating the RDS Custom for SQL Server DB instance, the system attempts to validate the associated AMI for a CEV. |
|
A creation task for the RDS Custom for SQL Server DB instance based on a new CEV is in progress. When creating the RDS Custom for SQL Server DB instance, the system attempts to validate the associated AMI of a CEV. |
Wait for the creation task of the existing RDS Custom for SQL Server DB instance to complete. You can use the RDS EVENTS console to review detailed event messages for troubleshooting. |
|
The CEV was successfully validated. A CEV will enter the |
The CEV doesn't require any additional validation. It can be used to create additional RDS Custom for SQL Server DB instances or modify existing ones. |
|
The CEV has been modified to an inactive state. |
You can't create or upgrade an RDS Custom DB instance with this CEV. Also, you can't restore a
DB snapshot to create a new RDS Custom DB instance with this CEV.
For information about how to change the state to
|
|
The create DB instance step failed for this CEV before it could validate the AMI. Alternatively, the underlying AMI used by the CEV isn't in an available state. |
Troubleshoot the root cause for why the system couldn't create the DB instance. View the detailed error message and try to create a new DB instance again. Ensure that the underlying AMI used by the CEV is in an available state. |
|
There was an error validating the AMI. |
View the technical details of the error. You can't attempt to validate the AMI with this CEV again. Review the following: recommendations:
Create a new CEV using the correct information. If needed, create a new EC2 instance using a supported AMI and run the Sysprep process on it. |