Created
December 22, 2021 00:35
-
-
Save rubenrangel/46bbe96d270a6987db01762be0ab7d1e to your computer and use it in GitHub Desktop.
Projen config snippet to allow GitHub workflow access to AWS NPM CodeArtifact repository.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// ...contents of .projenrc.js | |
// See https://github.com/aws-actions/configure-aws-credentials#credentials | |
// Replace <...> with your info | |
workflowBootstrapSteps: [ | |
{ | |
name: 'Configure AWS Credentials', | |
uses: 'aws-actions/configure-aws-credentials@v1', | |
with: { | |
'aws-access-key-id': '${{ secrets.AWS_ACCESS_KEY_ID }}', | |
'aws-secret-access-key': '${{ secrets.AWS_SECRET_ACCESS_KEY }}', | |
'aws-region': '<AWS_REGION>', | |
}, | |
}, | |
{ | |
name: 'AWS CodeArtifact Login', | |
run: 'aws codeartifact login --tool npm --domain <DOMAIN_NAME> --domain-owner <DOMAIN_ACCOUNT_ID> --repository <REPOSITORY_NAME>', | |
}, | |
], | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment