Skip to content
cloud

GitHub Action

AWS SAM CLI Action

v1.0.2 Latest version

AWS SAM CLI Action

cloud

AWS SAM CLI Action

For using aws sam-cli and other commands

Installation

Copy and paste the following snippet into your .yml file.

              

- name: AWS SAM CLI Action

uses: tkt-actions/aws-sam-cli@v1.0.2

Learn more about this action in tkt-actions/aws-sam-cli

Choose a version

Usage

Set your ENV and write a command including AWS SAM-CLI to cmd.

  • cmd can have bash command.
  • cmd can have commands other than sam .
steps:
  - name: sam cli
    uses: tkt-actions/aws-sam-cli@v1
    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 }}
    with:
      cmd: 'sam --version'

Sample

ENV

  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  • AWS_DEFAULT_REGION