How can I track third-party software or applications on my EC2 instances or WorkSpaces using License Manager?

3 minute read
0

I want to track resources that are used by my Amazon Elastic Compute Cloud (Amazon EC2) instance, Amazon WorkSpaces, and so on, using Amazon License Manager.

Resolution

Note: License Manager automatically tracks individual products based on platform or application. The example in the following resolution tracks vCPUs that are consumed by Microsoft SQL Server 2019 (64-bit) in the AWS Region us-east-1. You can use the example steps to track any application or platform that's discovered by AWS Systems Manager.

Prerequisites

Install or update the SSM Agent on all of the instances that you want to track. Make sure that all of the instances that you want to track are managed in Systems Manager Inventory. For information on how to update the SSM Agent using State Manager, see Walkthrough: Automatically update SSM Agent (CLI).

To track on-premises servers, make sure that they're managed instances. A managed instance is any Amazon EC2 instance, server, or virtual machine (VM) in your on-premises environment that's configured for Systems Manager.

Verify that Systems Manager is discovering your resources in License Manager

After installing the SSM Agent, open the License Manager console. and then choose Inventory search. Verify that all resources that you want to track are listed.

Create a license configuration

  1. In the License Manager console, choose Self-managed licenses.
  2. Choose Create self-managed license.
  3. Complete the following fields:
    For Self-managed license name, enter the name of the license (Microsoft SQL Server 2019, in this example).
    For License type, enter the type of license (vCPUs, in this example).
  4. Choose Submit.

Create and assign the automated discovery rule

  1. In the License Manager console, select Inventory search.
  2. Search by resource ID, platform name, application name, license included, or tags. In this example, search for all instances that run the application "Microsoft SQL Server 2019 (64-bit)".
    In the search bar field choose Application Name, Equals.
    Enter "Microsoft SQL Server 2019 (64-bit)" as the application name. This lists all instances that contain the application "Microsoft SQL Server 2019 (64-bit)".
  3. Select all the EC2 resources that you want to apply the auto discovery rule to, then choose Add automated discovery rules.
  4. In the Self-managed license section, select Microsoft SQL Server 2019.
  5. In the Automated discovery rules section, choose Application for Software type.
  6. For Product name, choose Microsoft SQL Server 2019 (64-bit).
  7. Select Add.

Track the licenses in the License Manager dashboard

On the License Manager console dashboard, select the license name Microsoft SQL Server 2019. All the resources that use the Microsoft SQL Server 2019 (64-bit) application are listed, as well as the vCPUs in use.