Skip to content

Commit

Permalink
fix: add AWS credentials to sam package step for issue #2
Browse files Browse the repository at this point in the history
- Added `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` environment variables to the `sam package` step
- Ensures credentials are available for uploading Lambda code to S3
- Progress toward resolving issue #2 by fixing missing credentials error
  • Loading branch information
atxtechbro committed Sep 7, 2024
1 parent fd2557e commit 1297a10
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy-to-lambda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
pip install aws-sam-cli
- name: Package the SAM Application
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
sam package --template-file template.yml --s3-bucket your-s3-bucket-name --output-template-file packaged.yaml --region us-east-2
Expand Down

0 comments on commit 1297a10

Please sign in to comment.