It uses a docker image in ECR with pip packages installed as specified in requirements.txt to ECR as specified in docker/base
aws-sam-cli>=1.17.0
Set your ENV and write a command including AWS SAM-CLI to cmd
.
cmd
can havebash
command.cmd
can have commands other than sam .
Requires a few environment to be available:
steps:
- name: sam cli
uses: tinybeanskids/infra-samcli-action@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'
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_DEFAULT_REGION
- ACCOUNT