skip to Main Content

I’m trying to retrieve oracle license usage from license manager.
If I do

aws license-manager get-license-configuration --license-configuration-arn arn:aws:license-manager:eu-west-1:002909278xxx:license-configuration:lic-1cbfffa9d1c64e2ea7dd03a76e81xxxx

I get results.

But If I do

aws license-manager get-license-usage --license-arn arn:aws:license-manager:eu-west-1:002909278xxx:license-configuration:lic-1cbfffa9d1c64e2ea7dd03a76e81xxxx

I get

An error occurred (InvalidParameterValueException) when calling the GetLicenseUsage operation: Invalid license ARN

what am I doing wrong?

2

Answers


  1. aws license-manager get-license-configuration expects license-configuration-arn and that is what you provide, so that works.

    aws license-manager get-license-usage expects license-arn and you are providing license-configuration-arn, so that fails.

    Login or Signup to reply.
  2. The error you’re encountering is because you are using a license configuration ARN instead of a license ARN for the get-license-usage command

    To retrieve the correct license ARN, you need to list the licenses associated with your license configuration. Run the following command:

    aws license-manager list-licenses --license-configuration-arn arn:aws:license-manager:eu-west-1:002909278xxx:license-configuration:lic-1cbfffa9d1c64e2ea7dd03a76e81xxxx
    

    Look through the output to find the license ARN that matches the license configuration for Oracle. It will look something like this:

    arn:aws:license-manager:eu-west-1:002909278xxx:license:lic-xxxxxxxxxxxx
    

    Now use the below command to get the get-license-usage

    aws license-manager get-license-usage --license-arn arn:aws:license-manager:eu-west-1:002909278xxx:license:lic-xxxxxxxxxxxx
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search