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
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.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:
Look through the output to find the license ARN that matches the license configuration for Oracle. It will look something like this:
Now use the below command to get the get-license-usage