Problem Statement
I am trying to see what versions have been deployed for a specific Maven package in AWS CodeArtifact. I do not have the ability to view anything through the web GUI so I am using the AWS CLI.
When I run the following command aws codeartifact list-packages --domain kickingtires --repository kickingtires the output looks as follows
PACKAGES maven edu.excelsior.api core
So basically there is one Maven artifact in the kickingtires repository : edu.excelsior.api:core. I have deployed two versions of this artifact and want to list the versions using the AWS CLI.
I have tried to run the following permutations
aws codeartifact list-package-versions --domain kickingtires --repository kickingtires --format maven --package edu.excelsior.api
aws codeartifact list-package-versions --domain kickingtires --repository kickingtires --format maven --package edu.excelsior.api.core
aws codeartifact list-package-versions --domain kickingtires --repository kickingtires --format maven --package edu.excelsior.api:core
aws codeartifact list-package-versions --domain kickingtires --repository kickingtires --format maven --package "edu.excelsior.api"
aws codeartifact list-package-versions --domain kickingtires --repository kickingtires --format maven --package "edu.excelsior.api.core"
aws codeartifact list-package-versions --domain kickingtires --repository kickingtires --format maven --package "edu.excelsior.api:core"
However the response is always as follows
An error occurred (ResourceNotFoundException) when calling the ListPackageVersions operation: The maven package '$PACKAGE' does not exist in repository 'kickingtires
Question
What is the appropriate value of the --package parameter for the list-package-versions subcommand to retrieve the Maven artifact versions? I have checked the AWS Documentation but it doesn't have a meaningful answer to this question