AWS License Manager Diagnostics
When to use
Any AWS License Manager investigation — license configurations, rule enforcement, grants, host resource groups, dedicated hosts, Linux subscriptions, user subscriptions, cross-account sharing, or automated discovery.
Investigation workflow
Step 1 — Collect and triage
aws license-manager list-license-configurations --query 'LicenseConfigurations[*].{Arn:LicenseConfigurationArn,Name:Name,Status:Status,Count:ConsumedLicenses}'
aws license-manager list-received-licenses --query 'Licenses[*].{Arn:LicenseArn,Name:LicenseName,Status:Status,Issuer:Issuer}'
aws license-manager list-received-grants --query 'Grants[*].{Arn:GrantArn,Name:GrantName,Status:Status}'
Step 2 — Domain deep dive
aws license-manager get-license-configuration --license-configuration-arn <arn>
aws license-manager list-usage-for-license-configuration --license-configuration-arn <arn>
aws license-manager list-associations-for-license-configuration --license-configuration-arn <arn>
Step 3 — Detailed investigation
aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventSource,AttributeValue=license-manager.amazonaws.com --max-results 20
aws license-manager list-resource-inventory --filters '[{"Name":"Platform","Values":["LINUX"],"Condition":"EQUALS"}]'
aws ec2 describe-hosts --query 'Hosts[*].{Id:HostId,State:State,Type:InstanceType,AutoPlacement:AutoPlacement}'
Read references/guardrails.md before concluding on any License Manager issue.
Tool quick reference
| Tool / API |
When to use |
license-manager list-license-configurations |
List license configs |
license-manager get-license-configuration |
Get config details |
license-manager list-received-licenses |
List received licenses |
license-manager list-received-grants |
List grants |
license-manager list-usage-for-license-configuration |
Check license usage |
license-manager list-resource-inventory |
Inventory resources |
ec2 describe-hosts |
Check dedicated hosts |
Gotchas: AWS License Manager
- License configurations track license consumption but do NOT enforce limits by default. Enforcement requires enabling hard limits which can block resource launches.
- Grants are the mechanism for sharing licenses across accounts. A grant must be ACCEPTED by the recipient before it takes effect.
- Host resource groups manage dedicated host allocation. Auto-placement must be enabled for automatic instance placement.
- Linux subscription discovery requires the Systems Manager inventory plugin. It discovers RHEL, SUSE, and Ubuntu Pro subscriptions.
- User-based subscriptions (e.g., Microsoft Visual Studio) require Active Directory integration and specific VPC configuration.
- Cross-account license sharing uses AWS RAM (Resource Access Manager) under the hood. Organization sharing must be enabled.
- Automated discovery uses Systems Manager inventory to find software installations. It requires SSM Agent on managed instances.
Anti-hallucination rules
- Always cite specific license configuration ARNs, grant ARNs, or API responses as evidence.
- License configurations and received licenses are different concepts. Configurations are self-managed; received licenses come from ISVs.
- Grants must be accepted before they take effect. Never assume a created grant is active.
- Hard limits block launches; soft limits only alert. Never conflate enforcement modes.
- Spend no more than 2 minutes on any single hypothesis. Pivot if inconclusive.
12 runbooks
| Category |
IDs |
Covers |
| A — License Config |
A1-A2 |
Configuration errors, rule violations |
| B — Grants |
B1-B2 |
Grant creation failures, grant acceptance |
| C — Dedicated Hosts |
C1-C2 |
Host resource groups, dedicated host management |
| D — Subscriptions |
D1-D2 |
Linux subscription discovery, user subscriptions |
| E — Cross-Account |
E1-E2 |
Cross-account sharing, organization settings |
| F — Discovery |
F1 |
Automated discovery |
| Z — Catch-All |
Z1 |
General troubleshooting |
1---2name: license-manager-diagnostics3description: Use this skill to investigate and troubleshoot AWS License Manager problems by analyzing license configurations, rule violations, grants, host resource groups, dedicated hosts, Linux subscriptions, user subscriptions, cross-account sharing, organization settings, automated discovery, and following structured runbooks. Activate when: license configuration errors, rule violations, grant failures, host resource group issues, dedicated host management, Linux subscription discovery, user subscription issues, cross-account sharing, organization settings, automated discovery, or the user says something is wrong with License Manager.4---56# AWS License Manager Diagnostics78## When to use910Any AWS License Manager investigation — license configurations, rule enforcement, grants, host resource groups, dedicated hosts, Linux subscriptions, user subscriptions, cross-account sharing, or automated discovery.1112## Investigation workflow1314### Step 1 — Collect and triage1516```17aws license-manager list-license-configurations --query 'LicenseConfigurations[*].{Arn:LicenseConfigurationArn,Name:Name,Status:Status,Count:ConsumedLicenses}'18aws license-manager list-received-licenses --query 'Licenses[*].{Arn:LicenseArn,Name:LicenseName,Status:Status,Issuer:Issuer}'19aws license-manager list-received-grants --query 'Grants[*].{Arn:GrantArn,Name:GrantName,Status:Status}'20```2122### Step 2 — Domain deep dive2324```25aws license-manager get-license-configuration --license-configuration-arn <arn>26aws license-manager list-usage-for-license-configuration --license-configuration-arn <arn>27aws license-manager list-associations-for-license-configuration --license-configuration-arn <arn>28```2930### Step 3 — Detailed investigation3132```33aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventSource,AttributeValue=license-manager.amazonaws.com --max-results 2034aws license-manager list-resource-inventory --filters '[{"Name":"Platform","Values":["LINUX"],"Condition":"EQUALS"}]'35aws ec2 describe-hosts --query 'Hosts[*].{Id:HostId,State:State,Type:InstanceType,AutoPlacement:AutoPlacement}'36```3738Read `references/guardrails.md` before concluding on any License Manager issue.3940## Tool quick reference4142| Tool / API | When to use |43|------------|-------------|44| `license-manager list-license-configurations` | List license configs |45| `license-manager get-license-configuration` | Get config details |46| `license-manager list-received-licenses` | List received licenses |47| `license-manager list-received-grants` | List grants |48| `license-manager list-usage-for-license-configuration` | Check license usage |49| `license-manager list-resource-inventory` | Inventory resources |50| `ec2 describe-hosts` | Check dedicated hosts |5152## Gotchas: AWS License Manager5354- License configurations track license consumption but do NOT enforce limits by default. Enforcement requires enabling hard limits which can block resource launches.55- Grants are the mechanism for sharing licenses across accounts. A grant must be ACCEPTED by the recipient before it takes effect.56- Host resource groups manage dedicated host allocation. Auto-placement must be enabled for automatic instance placement.57- Linux subscription discovery requires the Systems Manager inventory plugin. It discovers RHEL, SUSE, and Ubuntu Pro subscriptions.58- User-based subscriptions (e.g., Microsoft Visual Studio) require Active Directory integration and specific VPC configuration.59- Cross-account license sharing uses AWS RAM (Resource Access Manager) under the hood. Organization sharing must be enabled.60- Automated discovery uses Systems Manager inventory to find software installations. It requires SSM Agent on managed instances.6162## Anti-hallucination rules63641. Always cite specific license configuration ARNs, grant ARNs, or API responses as evidence.652. License configurations and received licenses are different concepts. Configurations are self-managed; received licenses come from ISVs.663. Grants must be accepted before they take effect. Never assume a created grant is active.674. Hard limits block launches; soft limits only alert. Never conflate enforcement modes.685. Spend no more than 2 minutes on any single hypothesis. Pivot if inconclusive.6970## 12 runbooks7172| Category | IDs | Covers |73|----------|-----|--------|74| A — License Config | A1-A2 | Configuration errors, rule violations |75| B — Grants | B1-B2 | Grant creation failures, grant acceptance |76| C — Dedicated Hosts | C1-C2 | Host resource groups, dedicated host management |77| D — Subscriptions | D1-D2 | Linux subscription discovery, user subscriptions |78| E — Cross-Account | E1-E2 | Cross-account sharing, organization settings |79| F — Discovery | F1 | Automated discovery |80| Z — Catch-All | Z1 | General troubleshooting |