License Manager – Core role - Amazon License Manager
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

License Manager – Core role

License Manager requires a service-linked role to manage licenses on your behalf.

Permissions for the core role

The service-linked role named AWSServiceRoleForAWSLicenseManagerRole allows License Manager access to Amazon resources to manage licenses on your behalf.

The AWSServiceRoleForAWSLicenseManagerRole service-linked role trusts the license-manager.amazonaws.com service to assume the role.

To review permissions for the AWSLicenseManagerServiceRolePolicy, see Amazon managed policy: AWSLicenseManagerServiceRolePolicy. To learn more about configuring permissions for a service-linked role, see Service-Linked Role Permissions in the IAM User Guide.

Create a service-linked role for License Manager

You don't need to manually create a service-linked role. When you complete the License Manager first-run experience form the first time that you visit the License Manager console, the service-linked role is automatically created for you.

You can also use the IAM console, Amazon CLI, or IAM API to create a service-linked role manually. For more information, see Creating a Service-Linked Role in the IAM User Guide.

Important

This service-linked role can appear in your account if you completed an action in another service that uses the features supported by this role. If you were using License Manager before January 1, 2017, when it began supporting service-linked roles, then License Manager created the AWSServiceRoleForAWSLicenseManagerRole role in your account. For more information, see A New Role Appeared in My IAM Account.

You can use the License Manager console to create a service-linked role.

To create the service-linked role
  1. Open the License Manager console at https://console.amazonaws.cn/license-manager/.

  2. Choose Start using License Manager.

  3. In the IAM Permissions (one-time-setup) form, select I grant Amazon License Manager the required permissions, then choose Continue.

You can also use the IAM console to create a service-linked role with the License Manager use case. Alternatively, in the Amazon CLI or the Amazon API, use IAM to create a service-linked role with the license-manager.amazonaws.com service name. For more information, see Creating a Service-Linked Role in the IAM User Guide.

If you delete this service-linked role, you can use the same IAM process to create the role again.

Edit a service-linked role for License Manager

License Manager doesn't allow you to edit the AWSServiceRoleForAWSLicenseManagerRole service-linked role. After you create a service-linked role, you cannot change the name of the role because various entities might reference the role. However, you can edit the description of the role using IAM. For more information, see Editing a Service-Linked Role in the IAM User Guide.

Delete a service-linked role for License Manager

If you no longer need to use a feature or service that requires a service-linked role, we recommend that you delete that role. That way, you only have entities that are actively monitored or maintained. However, you must clean up your service-linked role before you can manually delete it.

Clean up a service-linked role

Before you can use IAM to delete a service-linked role, you must first delete all resources used by the role. This means disassociating any self-managed licenses from associated instances and AMIs, and then deleting the self-managed licenses.

Note

If License Manager is using the role when you try to delete the resources, then the deletion might fail. If that happens, wait for a few minutes and try the action again.

To delete License Manager resources used by the core role
  1. Open the License Manager console at https://console.amazonaws.cn/license-manager/.

  2. In the navigation pane, choose Self-managed licenses.

  3. Choose a self-managed license for which you are the owner and disassociate all entries within the Associated AMIs and Resources tabs. Repeat this process for each license configuration.

  4. While still on the self-managed license's page, choose Actions, then choose Delete.

  5. Repeat the previous steps until all self-managed licenses have been deleted.

Manually delete the service-linked role

Use the IAM console, the Amazon CLI, or the Amazon API to delete the AWSServiceRoleForAWSLicenseManagerRole service-linked role. If you are also using AWSServiceRoleForAWSLicenseManagerMasterAccountRole and AWSLicenseManagerMemberAccountRole, delete those roles first. For more information, see Deleting a Service-Linked Role in the IAM User Guide.