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 aef5d79 commit 057b0c5
Showing 1 changed file with 5 additions and 21 deletions.
26 changes: 5 additions & 21 deletions .github/workflows/sam-application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,22 @@ on:
push:
branches:
- main

jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2

- uses: aws-actions/setup-sam@v1

- uses: aws-actions/configure-aws-credentials@v1
with:
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
- run: sam build --use-container

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

# Remove any existing SAM config to prevent conflicts
- name: Remove SAM Config
run: rm -f samconfig.toml
# Run Unit tests- Specify unit tests here

# Deploy the SAM application without guided configuration
- name: 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
# 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 057b0c5

Please sign in to comment.