Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.
/ sam-cli-action Public archive

Github Action to build, package, and deploy serverless applications using the AWS SAM CLI.

Notifications You must be signed in to change notification settings

TractorZoom/sam-cli-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

@TractorZoom/sam-cli-action

Tractor Zoom primarily works in Node.js so this action has NOT been tested extensively with Python & Go. As always, new features, bug fixes, and other contributions are always welcome! Please submit a PR or an Issue.

Github action for using the AWS SAM CLI to build and deploy serverless applications written in node 12.x, python 3.8 and go 1.14.6 as well as with custom build makefiles.

Getting Started:

  1. Add AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_DEFAULT_REGION in Settings > Secrets.

  2. Add the following to your Github workflow within your SAM project to build and deploy:

- name: sam build
  uses: TractorZoom/sam-cli-action@master
  with:
    sam_command: "build"
  env:
    AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
    AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
    AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
- name: sam deploy
  uses: TractorZoom/sam-cli-action@master
  with:
    sam_command: "deploy"
  env:
    AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
    AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
    AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}