Gitgub action, secret not woking as env with node aws lambda functiujon. Y?
Question
I am trying to use GitHub Actions to set secrets as environment variables for a Node.js Lambda function written in TypeScript. While some secrets, such as AWS_ACCESS_KEY_ID, work correctly, others, like AWS_BUCKET, USER_, and APP_PASS, are coming up as undefined. Why is this happening?
I am retrieving the values as follows:
***AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION: ${{ secrets.AWS_REGION }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}***
However, the values from:
AWS_BUCKET: ${{ secrets.AWS_BUCKET_NAME }}
USER_: ${{ secrets.NODE_USER }}
APP_PASS: ${{ secrets.NODE_APP_PASS }}
are showing up as undefined. Why is this happening and how can I resolve it?
yamlfile
function