License Manager–Member account role - AWS License Manager

License Manager–Member account role

License Manager requires a service-linked role that allows the master account to manage licenses.

Permissions for the member account role

The service-linked role named AWSServiceRoleForAWSLicenseManagerMemberAccountRole allows License Manager to access AWS resources for license management operations from a configured master account on your behalf.

The AWSServiceRoleForAWSLicenseManagerMemberAccountRole service-linked role trusts the license-manager.member-account.amazonaws.com service to assume the role.

The role permissions policy allows License Manager to complete the following actions on the specified resources.

Action Resource ARN
license-manager:UpdateLicenseSpecificationsForResource *
ssm:ListInventoryEntries *
ssm:GetInventory *
ssm:CreateAssociation *
ssm:CreateResourceDataSync *
ssm:DeleteResourceDataSync *
ssm:ListResourceDataSync *
ssm:ListAssociations *
ram:AcceptResourceShareInvitation *
ram:GetResourceShareInvitations *

You must configure permissions to allow an IAM entity (such as a user, group, or role) to create, edit, or delete a service-linked role. For more information, see Service-Linked Role Permissions in the IAM User Guide.

Creating the service-linked role for License Manager

You don't need to manually create the service-linked role. When you enable integration with AWS Organizations from the master account in the License Manager console on the Settings page, the AWS CLI using update-service-settings, or the AWS API using UpdateServiceSettings, License Manager creates the service-linked role for you in the Organizations member accounts.

If you delete this service-linked role and then need to create it again, you can use the same process to re-create the role in your account.

You can also use the IAM console, AWS 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 the License Manager service before January 1, 2017, when it began supporting service-linked roles, then License Manager created the AWSServiceRoleForAWSLicenseManagerMemberAccountRole role in your account. For more information, see A New Role Appeared in My IAM Account.

You can use License Manager commands from the AWS Command Line Interface to create a service-linked role.

To create a service-linked role

  1. Log into your AWS Organizations master account.

  2. Open the License Manager console at https://console.aws.amazon.com/license-manager/.

  3. In the left navigation pane, choose Settings, Edit.

  4. Choose Link AWS Organization accounts.

  5. Choose Apply. This creates the roles AWSServiceRoleForAWSLicenseManagerRole and AWSServiceRoleForAWSLicenseManagerMemberAccountRole in all child accounts.

You can also use the IAM console to create a service-linked role with the License Manager - Member Account use case. In the AWS CLI or AWS API, create a service-linked role with the license-manager.member-account.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.

Editing a service-linked role for License Manager

License Manager does not allow you to edit the AWSServiceRoleForAWSLicenseManagerMemberAccountRole 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.

Deleting a service-linked role for License Manager

You don't need to manually delete the AWSServiceRoleForAWSLicenseManagerMemberAccountRole role. When you CompleteThisDeleteActionInThisService-3 in the AWS Management Console, AWS CLI, or AWS API, License Manager cleans up the resources and deletes the service-linked role for you.

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.

Manually delete the service-linked role

Use the IAM console, AWS CLI, or AWS API to delete the AWSServiceRoleForAWSLicenseManagerMemberAccountRole service-linked role. For more information, see Deleting a Service-Linked Role in the IAM User Guide.