How do I use License Manager to change my SQL Server license to an AWS provided license?

4 minute read
0

I have my own SQL Server license, and I want to use AWS License Manager to change it to an AWS provided license.

Resolution

Prerequisites

Before you convert a license with License Manager, complete all prerequisite steps in Conversion prerequisites.

Also, note the License Type conversion limits and eligible license types for Windows Server and SQL Server.

When you're ready to convert your license, use either the License Manager console or the AWS Command Line Interface (AWS CLI).

Use the License Manager console to convert your license type

  1. Open the License Manager console.
  2. In the navigation pane, choose License type conversion, and then choose Create license type conversion.
  3. For Source operating system, choose Windows license included
  4. To filter the available instances, specify a value for Instance ID or Usage operation value.
  5. Select the instances that you want to convert licenses for, and then choose Next.
  6. Enter the Usage operation value for the license type, and then select the license that you want to convert to.
    Note: The SQL Server edition must match the SQL Server edition of the BYOL license. You can use only the following options:
    SQL Server Standard edition
    SQL Server Enterprise edition
    SQL Server Web edition
  7. Choose Next.
  8. Verify your license type conversion configuration, and then choose Start conversion.

When you convert Windows Server from BYOL to license included, the key management service for your instance switches to AWS Key Management Service (AWS KMS). To view the status of your license type conversion, refer to the license type conversion panel. The Conversion status column displays the status as In progress, Completed, or Failed.

Use the AWS CLI to convert your license type

  1. Verify that you installed, configured, and updated the AWS CLI. For more information, see Install or update the latest version of the AWS CLI and Configure the AWS CLI.

  2. Verify that you have permission to run the create-license-conversion-task-for-resource AWS CLI command. For more information, see Create IAM policies for License Manager.

  3. To determine the license type that's currently associated with your instance, run the following AWS CLI command. Replace INSTANCE_ID with the instance ID that you want to determine the license type for:

    aws ec2 describe-instances --instance-ids INSTANCE_ID --query "Reservations[*].Instances[*].{InstanceId: InstanceId, PlatformDetails: PlatformDetails, UsageOperation: UsageOperation, UsageOperationUpdateTime: UsageOperationUpdateTime}"

    UsageOperation is the billing information code that's associated with the license. Use this in the next step to specify the UsageOperation to convert from. For Windows Server BYOL with SQL Server BYOL, this is RunInstances:0800. For Windows Server as license included and SQL Server (any edition) as BYOL, this is RunInstances:0002.

  4. To convert the license type of your SQL Server edition from BYOL to license included, run the following command. Replace INSTANCE_ARN with the Amazon Resource Name (ARN) of the instance that you want to convert. Replace the values for UsageOperation for the source and destination:

    Convert from: Windows Server as BYOL with SQL Server (any edition) as BYOL
    To: Windows Server as license included with SQL Server Web as license included

    aws license-manager create-license-conversion-task-for-resource \
        --resource-arn INSTANCE_ARN \
        --source-license-context UsageOperation=RunInstances:0800 \
        --destination-license-context UsageOperation=RunInstances:0202

    Convert from: Windows Server as BYOL with SQL Server (any edition) as BYOL
    To: Windows Server as license included with SQL Server Standard as license included

    aws license-manager create-license-conversion-task-for-resource \
        --resource-arn INSTANCE_ARN \
        --source-license-context UsageOperation=RunInstances:0800 \
        --destination-license-context UsageOperation=RunInstances:0006

    Convert from: Windows Server as BYOL with SQL Server (any edition) as BYOL
    To: Windows Server as license included with SQL Server Enterprise as license included

    aws license-manager create-license-conversion-task-for-resource \
        --resource-arn INSTANCE_ARN \
        --source-license-context UsageOperation=RunInstances:0800 \
        --destination-license-context UsageOperation=RunInstances:0102

    Convert from: Windows Server as license included SQL Server (any edition) as BYOL
    To: Windows Server as license included SQL Server Web as license included

    aws license-manager create-license-conversion-task-for-resource \
        --resource-arn INSTANCE_ARN \
        --source-license-context UsageOperation=RunInstances:0002 \
        --destination-license-context UsageOperation=RunInstances:0202

    Convert from: Windows Server as license included SQL Server (any edition) as BYOL
    To: Windows Server as license included SQL Server Standard as license included

    aws license-manager create-license-conversion-task-for-resource \
        --resource-arn INSTANCE_ARN \
        --source-license-context UsageOperation=RunInstances:0002 \
        --destination-license-context UsageOperation=RunInstances:0006

    Convert from: Windows Server as license included SQL Server (any edition) as BYOL
    To: Windows Server as license included SQL Server Enterprise as license included

    aws license-manager create-license-conversion-task-for-resource \
        --resource-arn INSTANCE_ARN \
        --source-license-context UsageOperation=RunInstances:0002 \
        --destination-license-context UsageOperation=RunInstances:0102

Related information

License type conversions in License Manager

AWS OFFICIAL
AWS OFFICIALUpdated 5 months ago