aws-codeartifact: CodeArtifact from lookup to get auth token and url #27511
Labels
@aws-cdk/aws-codeartifact
Related to the @aws-cdk/aws-codeartifact package
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
Ability to get CodeArtifact using a
fromLookup
function likeVpc.fromLookup
and others.Use Case
Currently the docs exmaple to get a CodeArtifact AuthToken is encouraging the use of
aws-cli
as an external process call. It is cleaner to use current CDK context credentials.This could be used for any bundling Construct like
PythonFunction
that may need access to a private CodeArtifact repository to fetch packages.Proposed Solution
I propose to implement this in the same way that other
fromLookup
resources are implemented currently.Other Information
If you think this solution is fine. I can code it and create a pull request.
Acknowledgements
CDK version used
2.100.0
Environment details (OS name and version, etc.)
All supported OS
The text was updated successfully, but these errors were encountered: