Skip to content

Commit

Permalink
Added AWS SAM files
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeelthotti committed Nov 9, 2024
1 parent 057b0c5 commit d117de5
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/sam-application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ on:
push:
branches:
- main

jobs:
build-deploy:
runs-on: ubuntu-latest
Expand All @@ -14,10 +15,16 @@ jobs:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-1
# sam build

# Build the SAM application
- run: sam build --use-container

# Run Unit tests- Specify unit tests here

# sam deploy
- run: sam deploy --no-confirm-changeset --no-fail-on-empty-changeset --stack-name sam-hello-world --s3-bucket aws-sam-example-bucket --capabilities CAPABILITY_IAM --region us-west-1

# Deploy the SAM application
- run: |
sam deploy \
--no-confirm-changeset \
--no-fail-on-empty-changeset \
--stack-name sam-hello-world \
--s3-bucket aws-sam-example-bucket \
--capabilities CAPABILITY_IAM \
--region us-west-1

0 comments on commit d117de5

Please sign in to comment.