# License Manager Deployer

> Provisions AWS License Manager configurations with production defaults: license configurations (license type, count, rules), resource associations (EC2 instances, Systems Manager managed instances, on- premises resources), license rules enforcement (vCPU-based, instance- based, cores-based counting), cross-account sharing via AWS Organizations, automated discovery via Systems Manager inventory, license violation detection and alerting, self-service portal grants, Oracle license tracking, SQL Server licensing, subscription management, CloudWatch integration for violations. Emits a READY_TO_DEPLOY checklist with verification commands. Use when creating a License Manager configuration, tracking Oracle or SQL Server licenses, setting up vCPU-based license. Triggers: create license configuration, license manager vcpu counting, oracle license tracking, sql server licensing, cross-account license sharing, license manager organizations, license violation alerting, license manager grants, ssm license discovery.

- Skill: `jhkchan/license-manager-deployer` (Agent Skill, multi-file: 20 files)
- Install (CLI): `npx get-skill add jhkchan/license-manager-deployer`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jhkchan/license-manager-deployer/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Product & Planning
- License: Apache-2.0
- Author: jhkchan (https://skillmd.com/u/jhkchan)
- Updated: 2026-11-23
- Page: https://skillmd.com/skills/jhkchan/license-manager-deployer

---


# License Manager Deployer

An AWS CloudOps agent skill that provisions AWS License Manager
configurations with correct defaults. The skill walks the operator
through license type selection (vCPU-based, instance-based, cores-
based), license count and rules, resource associations (EC2, Systems
Manager managed instances, on-premises), cross-account sharing via
AWS Organizations, automated discovery via Systems Manager inventory,
license violation detection, self-service portal grants, and vendor-
specific tracking (Oracle, SQL Server). It captures licensing decisions,
explains why each default matters, and emits a READY_TO_DEPLOY checklist
with copy-pasteable verification commands.

## Activation keywords

create license configuration, license manager vCPU counting, Oracle
license tracking, SQL Server licensing, cross-account license sharing,
license manager Organizations, license violation alerting, license
manager grants, SSM license discovery.

## STRICT output contract

When this skill is invoked with a License-Manager-provisioning request
(create a license configuration, track Oracle or SQL Server licenses,
set up vCPU-based enforcement, distribute licenses across Organization
accounts, configure violation alerting, or a partial configuration), the
agent MUST respond with the READY_TO_DEPLOY checklist defined in the
"Output format" section using the literal all-caps labels
`LICENSE_MANAGER:`, `VERDICT:`, `CHECKLIST:`, and
`VERIFICATION_COMMANDS:`. Do NOT preface the checklist with prose,
headings, or disclaimers — emit the block as the first lines of the
response. This contract is what assertion-based evals and downstream
provisioning pipelines rely on; deviating from the literal labels breaks
automation silently.

If any prerequisite is missing, the verdict is `PREREQUISITES_MISSING`
with a specific gap citation in the checklist (marked `[✗]`), and
`READY_TO_DEPLOY` MUST NOT also appear.

## Quick navigation

| Section | When to read |
|---|---|
| Prerequisites | Always — verify before provisioning |
| Step 1 — License configuration model | Core licensing model |
| Step 2 — License type selection (vCPU, instance, cores) | Counting method |
| Step 3 — License rules (vendor-specific syntax) | Oracle, SQL Server rules |
| Step 4 — Resource associations (EC2, SSM, on-prem) | Resource scope |
| Step 5 — Cross-account sharing via Organizations | Multi-account distribution |
| Step 6 — Automated discovery via Systems Manager | Inventory-based discovery |
| Step 7 — License violations detection and alerting | Compliance enforcement |
| Step 8 — Self-service portal grants | Delegated license grants |
| Step 9 — Oracle license tracking specifics | Oracle rules + vCPU |
| Step 10 — SQL Server licensing specifics | Core-factor + cores counting |
| Step 11 — Recent features | Latest |
| NEVER do these things | Review before signing off |
| Output format | The literal checklist template |
| references/license-rules-and-counting.md | Counting + rules detail |
| references/cross-account-and-discovery.md | Org sharing + SSM detail |

## Mindset

> **Moved verbatim** → [references/advanced-patterns.md](references/advanced-patterns.md) § "Mindset — one-line takeaway and three misconceptions".
> Load when: modelling the configuration — count vs counting-type, discovery prerequisites, Org-sharing requirements.

## Configuration dependency graph (novel heuristic)

> **Moved verbatim** → [references/advanced-patterns.md](references/advanced-patterns.md) § "Configuration dependency graph".
> Load when: sequencing provisioning — hard dependencies, silent failures, what each configuration enables.

## Expert heuristic: vCPU vs instance-based vs cores-based counting

> **Moved verbatim** → [references/license-rules-and-counting.md](references/license-rules-and-counting.md) § "Expert heuristic: vCPU vs instance-based vs cores-based counting".
> Load when: choosing LicenseCountingType — what vCPU, Instance, and Core counting each measure.

## Expert heuristic: cross-Org distribution via Organizations

> **Moved verbatim** → [references/cross-account-and-discovery.md](references/cross-account-and-discovery.md) § "Expert heuristic: cross-Org distribution via Organizations".
> Load when: sharing cross-account — feature-set, trusted-service, delegated-admin, share flow.

## Expert heuristic: SSM managed instance discovery

> **Moved verbatim** → [references/cross-account-and-discovery.md](references/cross-account-and-discovery.md) § "Expert heuristic: SSM managed instance discovery".
> Load when: tracking on-premises or SSM-managed resources — the inventory-based discovery flow.

## Prerequisites (verify before provisioning)

Before emitting provisioning commands, verify these prerequisites. If
any are missing, the verdict is **PREREQUISITES_MISSING**.

| Prerequisite | Why it matters | How to verify |
|---|---|---|
| License counting type identified | Determines measurement method | Confirm vCPU, Instance, or Core |
| License count known | Total entitlement to track | Confirm owned license count |
| License rule syntax (if vendor-specific) | Vendor rules enforced at launch | Validate rule format for Oracle/SQL Server |
| Enforcement decision (hard vs soft) | Hard blocks launches; soft only alerts | Confirm `LicenseRulesEnforce` choice |
| Organizations all-features (if cross-account) | Required for Org-based sharing | `aws organizations describe-organization` |
| License Manager trusted (if cross-account) | Service access for sharing | `aws organizations list-aws-service-access-for-organization` |
| Delegated administrator (if cross-account) | Centralized license management | `aws organizations list-delegated-administrators` |
| SSM inventory configured (if on-prem) | Required for non-EC2 discovery | `aws ssm describe-instance-information` |
| SNS topic ARN (if alerting) | Alerting destination | `aws sns list-topics` |

If any prerequisite is missing, output `VERDICT: PREREQUISITES_MISSING`
and cite the specific gap.

## Step 1 — License configuration model

A license configuration is the central entity in License Manager.

| Element | Description | API field |
|---|---|---|
| Name | Configuration identifier | `--name` |
| License type | Counting method (vCPU/Instance/Core) | `--license-counting-type` |
| License count | Total entitlement | `--license-count` |
| License rules | Vendor-specific rule string | `--license-rules` |
| Enforcement | Hard limit or soft (alert only) | `--license-rules-enforce` |

**Create a license configuration:**

```bash
LIC_CONFIG_ARN=$(aws license-manager create-license-configuration \
  --name "oracle-db-vcpu-tracking" \
  --license-counting-type vCPU \
  --license-count 100 \
  --license-rules 'Tenancy=Shared,HonorVcpuOptimization=true' \
  --license-rules-enforce \
  --region us-east-1 \
  --query 'LicenseConfigurationArn' --output text)
```

## Step 2 — License type selection (vCPU, instance, cores)

| Counting type | What is counted | Typical vendors | License count unit |
|---|---|---|---|
| `vCPU` | Total virtual CPUs across running associated instances | Oracle Database, many ISV | Total vCPUs |
| `Instance` | Each running associated instance = 1 | Per-instance middleware/tools | Total instances |
| `Core` | Physical CPU cores (not vCPUs) | SQL Server, Windows Server | Total cores |

**Critical:** the counting type determines what `LicenseCount` means. A
count of 100 with vCPU = 100 vCPUs. With Instance = 100 instances. With
Core = 100 cores. Misunderstanding this is the #1 cause of silent
over/under-licensing.

## Step 3 — License rules (vendor-specific syntax)

License rules are vendor-specific conditions expressed as a comma-
separated key=value string.

### Oracle Database license rules

```bash
# Oracle Database — vCPU counting, shared tenancy, honor vCPU opt
LICENSE_RULES='Tenancy=Shared,HonorVcpuOptimization=true'

# Oracle Database — dedicated host (BYOL)
LICENSE_RULES='Tenancy=Host,HonorVcpuOptimization=true'
```

| Rule key | Values | Effect |
|---|---|---|
| `Tenancy` | `Shared`, `Instance`, `Host` | Resource tenancy constraint |
| `HonorVcpuOptimization` | `true`, `false` | If true, treats 4 vCPUs as 1 license (matches Oracle model) |

### SQL Server license rules

```bash
# SQL Server Standard — core-based with 0.5 core factor
LICENSE_RULES='location=EC2,coreFactor=0.5'

# SQL Server Enterprise — core-based with 1.0 core factor
LICENSE_RULES='location=EC2,coreFactor=1.0'
```

| Rule key | Values | Effect |
|---|---|---|
| `location` | `EC2`, `Host` | Resource location constraint |
| `coreFactor` | Decimal (0.5, 1.0) | Multiplier applied to physical cores |

**Common mistake:** creating a configuration without `--license-rules`.
It is accepted but no vendor-specific enforcement occurs. This is the
#2 cause of silent non-compliance.

## Step 4 — Resource associations (EC2, SSM, on-prem)

### Association at EC2 instance launch (recommended)

```bash
# Associate via launch template
aws ec2 create-launch-template \
  --launch-template-name oracle-workload-template \
  --launch-template-data '{
    "ImageId":"ami-xxx",
    "InstanceType":"m5.2xlarge",
    "LicenseSpecifications":[
      {"LicenseConfigurationArn":"'"$LIC_CONFIG_ARN"'"}
    ]
  }'

# Associate at run-instances time
aws ec2 run-instances \
  --image-id ami-xxx \
  --instance-type m5.2xlarge \
  --license-specifications "LicenseConfigurationArn=$LIC_CONFIG_ARN"
```

### Association with existing AMI

```bash
aws license-manager associate-license-to-ami \
  --license-configuration-arn "$LIC_CONFIG_ARN" \
  --resource-id ami-xxx
```

For on-premises or SSM-managed instances, SSM inventory MUST be enabled
(see references/cross-account-and-discovery.md).

## Step 5 — Cross-account sharing via Organizations

### Verify and enable prerequisites

```bash
# Check Organization feature set (must be ALL)
aws organizations describe-organization \
  --query 'Organization.FeatureSet' --output text

# Enable License Manager as a trusted service
aws organizations enable-aws-service-access \
  --service-principal license-manager.amazonaws.com

# Register a delegated administrator
aws organizations register-delegated-administrator \
  --account-id 999999999999 \
  --service-principal license-manager.amazonaws.com
```

### Share the license configuration

```bash
# Share to an Organizational Unit (auto-accepted)
aws license-manager create-license-configuration-cross-account \
  --license-configuration-arn "$LIC_CONFIG_ARN" \
  --target-organization-structure '{"OrganizationalUnits":["ou-app-abcdef"]}' \
  --region us-east-1

# Share to specific accounts (requires acceptance)
aws license-manager create-license-configuration-cross-account \
  --license-configuration-arn "$LIC_CONFIG_ARN" \
  --target-organization-structure '{"Accounts":["111122223333"]}' \
  --region us-east-1
```

## Step 6 — Automated discovery via Systems Manager

License Manager uses SSM inventory to discover resources and count
consumption automatically.

```bash
# Enable License Manager integration with SSM
aws license-manager update-service-settings \
  --organization-configuration '{"EnableIntegration":true}' \
  --region us-east-1

# Verify SSM inventory is collecting data
aws ssm get-inventory \
  --query 'Entities[*].{Id:Id,Type:Data.\"AWS:InstanceInformation\".Content[0].ResourceType}' \
  --region us-east-1
```

**Critical:** without SSM inventory, License Manager cannot discover
on-premises or cross-account resources.

## Step 7 — License violations detection and alerting

Hard-limit violations (`LicenseRulesEnforce=true`) BLOCK non-compliant
launches and emit events. Alerting requires EventBridge + SNS.

```bash
# Create EventBridge rule for license violations
aws events put-rule \
  --name license-manager-violations \
  --event-pattern '{
    "source": ["aws.license-manager"],
    "detail-type": ["License Manager License Configuration Violation"]
  }'

# Add SNS target
aws events put-targets \
  --rule license-manager-violations \
  --targets '{"Id":"1","Arn":"arn:aws:sns:us-east-1:123456789012:license-alerts"}'

# List usage records (consumption)
aws license-manager list-usage-records-for-license-configuration \
  --license-configuration-arn "$LIC_CONFIG_ARN" --region us-east-1
```

## Step 8 — Self-service portal grants

Grants allow delegated users to consume licenses without direct console
access.

```bash
# Create a grant with expiry (recommended)
aws license-manager create-grant \
  --grant-name "dev-team-oracle-grant" \
  --license-configuration-arn "$LIC_CONFIG_ARN" \
  --principals '["arn:aws:iam::123456789012:role/DevTeamRole"]' \
  --allowed-operations '["CreateGrant","CheckoutLicense","ViewGrant","ListLicenses"]' \
  --expiration "2026-09-05T00:00:00Z" \
  --region us-east-1
```

**Security note:** grants without an expiry create permanent access.
Always set `--expiration` for non-permanent roles.

## Step 9 — Oracle license tracking specifics

- **Counting type:** `vCPU` (Oracle is licensed per vCPU, minimum 2).
- **HonorVcpuOptimization:** when true, treats 4 vCPUs as 1 license
  when thread scheduling is enabled (matches Oracle's processor model).
- **Tenancy:** `Shared` (default), `Instance` (dedicated instance),
  `Host` (dedicated host — required for some Oracle BYOL scenarios).

```bash
LIC_ARN=$(aws license-manager create-license-configuration \
  --name "oracle-db-se-vcpu" \
  --license-counting-type vCPU \
  --license-count 200 \
  --license-rules 'Tenancy=Shared,HonorVcpuOptimization=true' \
  --license-rules-enforce \
  --region us-east-1 \
  --query 'LicenseConfigurationArn' --output text)
```

## Step 10 — SQL Server licensing specifics

- **Counting type:** `Core` (physical cores, not vCPUs).
- **Core factor:** 0.5 for Standard, 1.0 for Enterprise. Multiplies
  physical cores to compute consumption.
- **Minimum:** 4 cores per physical processor.

```bash
LIC_ARN=$(aws license-manager create-license-configuration \
  --name "sqlserver-std-core" \
  --license-counting-type Core \
  --license-count 24 \
  --license-rules 'location=EC2,coreFactor=0.5' \
  --license-rules-enforce \
  --region us-east-1 \
  --query 'LicenseConfigurationArn' --output text)
```

## Step 11 — Recent features

> **Moved verbatim** → [references/advanced-patterns.md](references/advanced-patterns.md) § "Step 11 — Recent features".
> Load when: checking 2023-2026 feature availability — Identity Center SSO, violation reporting, cross-Region tracking.

## NEVER do these things

1. **NEVER confuse license count with vCPU count.** The
   `LicenseCountingType` determines what is measured. A count of 100
   with vCPU counting = 100 vCPUs, NOT 100 instances.

2. **NEVER create a configuration without license rules for vendor-
   specific licenses.** Oracle and SQL Server require specific rule
   strings. Without rules, the configuration exists but does NOT
   enforce vendor conditions.

3. **NEVER assume cross-account sharing works without Organizations.**
   Cross-account sharing requires Organizations all-features, License
   Manager as a trusted service, and a delegated administrator.

4. **NEVER forget SSM inventory for on-premises discovery.** EC2
   instances are tracked via launch association, but on-premises
   requires SSM inventory with `Aws:SoftwareInventory`.

5. **NEVER use soft limit when compliance requires blocking.** Soft
   limit (enforce=false) only alerts. For compliance-critical licenses,
   use hard limit (enforce=true).

6. **NEVER create grants without an expiry for temporary roles.** Set
   `--expiration` for contractor, developer, or temporary roles.

7. **NEVER assume rule syntax errors are caught at creation.** License
   Manager accepts the configuration but enforcement may silently fail.
   Validate rules against vendor documentation.

8. **NEVER skip the delegated administrator for multi-account Orgs.**
   Without it, license management must be from the management account,
   violating least-privilege.

9. **NEVER forget CloudWatch Events for violation alerting.** Hard-
   limit violations emit events, but without EventBridge + SNS, no one
   is notified.

10. **NEVER mix counting types within the same vendor's model.** Oracle
    is vCPU-counted. SQL Server is core-counted. Cross-assigning
    produces non-compliant tracking.

## Output format

```text
LICENSE_MANAGER: <license-configuration-name> (<license-config-id-or-arn>)
VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING
CHECKLIST:
  [✓|✗] License configuration name: <name>
  [✓|✗] Counting type: vCPU | Instance | Core
  [✓|✗] License count: <count> (<unit>)
  [✓|✗] License rules: <rules-string-or-none>
  [✓|✗] Enforcement: Hard limit (enforce=true) | Soft limit (enforce=false)
  [✓|✗] Resource association: EC2 (launch template / run-instances) | SSM managed instances | AMI
  [✓|✗] Cross-account sharing: Disabled | Enabled (Organizations all-features, OU <ou-id>)
  [✓|✗] Delegated administrator: <account-id> | Not configured
  [✓|✗] SSM discovery: Enabled (inventory configured) | Disabled
  [✓|✗] Violation alerting: EventBridge rule + SNS <topic-arn> | Not configured
  [✓|✗] Grants: <count> grants (<details-or-none>)
  [✓|✗] Tags: <key=value list>
VERIFICATION_COMMANDS:
  aws license-manager get-license-configuration --license-configuration-arn <arn> --region <region>
  aws license-manager list-usage-records-for-license-configuration --license-configuration-arn <arn> --region <region>
  aws license-manager list-license-specifications-for-resources --resource-arns <resource-arn> --region <region>
```

### Worked example — Oracle Database vCPU tracking with cross-Org sharing

```text
LICENSE_MANAGER: oracle-db-vcpu-tracking (lic-aaa111222333444aaa)
VERDICT: READY_TO_DEPLOY
CHECKLIST:
  [✓] License configuration name: oracle-db-vcpu-tracking
  [✓] Counting type: vCPU
  [✓] License count: 200 (vCPUs)
  [✓] License rules: Tenancy=Shared,HonorVcpuOptimization=true
  [✓] Enforcement: Hard limit (enforce=true)
  [✓] Resource association: EC2 (launch template lt-aaa111222333)
  [✓] Cross-account sharing: Enabled (Organizations all-features, OU ou-app-abcdef)
  [✓] Delegated administrator: 999999999999
  [✓] SSM discovery: Enabled (inventory configured for managed instances)
  [✓] Violation alerting: EventBridge rule license-manager-violations + SNS arn:aws:sns:us-east-1:123456789012:license-alerts
  [✓] Grants: 1 grant (dev-team-oracle-grant, principal DevTeamRole)
  [✓] Tags: Vendor=Oracle, Environment=production
VERIFICATION_COMMANDS:
  aws license-manager get-license-configuration --license-configuration-arn arn:aws:license-manager:us-east-1:123456789012:license-configuration:lic-aaa111222333444aaa --region us-east-1
  aws license-manager list-usage-records-for-license-configuration --license-configuration-arn arn:aws:license-manager:us-east-1:123456789012:license-configuration:lic-aaa111222333444aaa --region us-east-1
```

## Error handling

> **Moved verbatim** → [references/error-handling.md](references/error-handling.md) § "Error handling".
> Load when: a creation, sharing, discovery, alerting, or consumption-update failure occurs.

## References (load on demand)

- [references/advanced-patterns.md](references/advanced-patterns.md) — mindset, configuration dependency graph, and recent features moved from this SKILL.md
- [references/error-handling.md](references/error-handling.md) — error-handling deep dives moved from this SKILL.md
- [references/license-rules-and-counting.md](references/license-rules-and-counting.md) — counting-type and license-rule deep reference (counting-type heuristic moved into this file)
- [references/cross-account-and-discovery.md](references/cross-account-and-discovery.md) — Organizations sharing and SSM discovery deep reference (cross-Org and SSM heuristics moved into this file)

## Domain

AWS CloudOps / AWS License Manager Configuration Provisioning &
Software License Compliance.

## AWS documentation

- **License Manager Guide** — https://docs.aws.amazon.com/license-manager/latest/userguide/what-is.html
- **Create license configuration** — https://docs.aws.amazon.com/license-manager/latest/userguide/create-license-configuration.html
- **License counting types** — https://docs.aws.amazon.com/license-manager/latest/userguide/counting-types.html
- **License rules** — https://docs.aws.amazon.com/license-manager/latest/userguide/license-rules.html
- **Cross-account sharing** — https://docs.aws.amazon.com/license-manager/latest/userguide/cross-account.html
- **SSM discovery** — https://docs.aws.amazon.com/license-manager/latest/userguide/discovery.html
- **Grants (self-service)** — https://docs.aws.amazon.com/license-manager/latest/userguide/grants.html
- **Oracle licensing** — https://docs.aws.amazon.com/license-manager/latest/userguide/oracle.html
- **SQL Server licensing** — https://docs.aws.amazon.com/license-manager/latest/userguide/sql-server.html
- **Violations** — https://docs.aws.amazon.com/license-manager/latest/userguide/violations.html

