Skip to content

Commit

Permalink
chore: progress on issue #2 by adding SAM package step to deployment …
Browse files Browse the repository at this point in the history
…workflow

- Introduced `sam package` step to prepare Lambda function by uploading to S3
- This is a work in progress towards addressing issue #2, improving the deployment process
  • Loading branch information
atxtechbro committed Sep 7, 2024
1 parent 62a90ae commit 8f95c0b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/deploy-to-lambda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -20,6 +21,10 @@ jobs:
run: |
pip install aws-sam-cli
- name: Package the SAM Application
run: |
sam package --template-file template.yml --s3-bucket your-s3-bucket-name --output-template-file packaged.yaml
- name: Deploy to AWS Lambda
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down

0 comments on commit 8f95c0b

Please sign in to comment.