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 d117de5 commit a115180
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/sam-application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ on:
push:
branches:
- main

jobs:
build-deploy:
runs-on: ubuntu-latest
Expand All @@ -14,17 +13,11 @@ jobs:
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-1

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

# 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

# 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

0 comments on commit a115180

Please sign in to comment.