Gitgub action, secret not woking as env with node aws lambda functiujon. Y? #129371
Unanswered
DiakoIsmail
asked this question in
Actions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
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:
yaml
Copy code
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:
yaml
Copy code
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?
Body
Beta Was this translation helpful? Give feedback.
All reactions