aws-cli icon indicating copy to clipboard operation
aws-cli copied to clipboard

Extend the AWS CodeArtifact login command to support multiple namespaces

Open DanielMackenzie93 opened this issue 1 year ago • 2 comments

Describe the feature

I propose enhancing the aws codeartifact login command to allow for multiple namespaces to be specified in a single command. This could be implemented by allowing the --namespace flag to accept a list of namespaces instead of a single value.

Use Case

Currently, the AWS CodeArtifact login command restricts users to specify a single namespace per login attempt. This limitation requires users to execute multiple login commands, or manually configure other scopes/namespaces when working with projects that depend on packages from multiple private namespaces within the same domain.

Proposed Solution

Example of the proposed command usage:

aws codeartifact login \
    --tool npm \
    --repository my-repository \
    --domain my-domain \
    --namespace @namespace-a,@namespace-b,@namespace-c

Other Information

Related Issues

  • #5404

Acknowledgements

  • [ ] I may be able to implement this feature request
  • [ ] This feature might incur a breaking change

CLI version used

aws-cli/2.15.28

Environment details (OS name and version, etc.)

Sonoma 14.2.1

DanielMackenzie93 avatar Apr 03 '24 11:04 DanielMackenzie93

Thanks for the feature request. I'll share this with the CodeArtifact team, who owns and maintains this customization. In the meantime we can continue to track the request and gather feedback here.

tim-finnigan avatar May 07 '24 23:05 tim-finnigan

main issue version is also changed in it for the given time period and version.tim finnigan added p3 and removed investigating needs triage labels 2 days ago in the main function and priority settings in it.

amberkushwaha avatar May 10 '24 09:05 amberkushwaha