You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
AWS SAM Deploy
v1.1.0
Deploys AWS SAM Stacks using lightweight alpine
Docker images.
This action is forked from r0zar/sam-deploy-action with additional features.
name: "Deploy SAM Stack to Production"
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: falnyr/[email protected]
env:
TEMPLATE: 'template.yaml'
AWS_STACK_NAME: my-serverless-application
AWS_REGION: 'us-east-1'
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEPLOY_BUCKET: ${{ secrets.AWS_DEPLOY_BUCKET }}
TEMPLATE
- [Optional]. YML file containing CloudFormation Stack.- Type:
string
- Default:
template.yml
- Type:
CAPABILITIES
- [Optional]. AWS Stack Capabilites.- Type:
string
- Default:
CAPABILITY_IAM
- Type:
AWS_STACK_NAME
- [Required]. The Stack name that is going to be published.- Type:
string
- Type:
AWS_REGION
- [Required]. AWS Region where to deploy the CloudFormation Stack.- Type:
string
- Type:
AWS_ACCESS_KEY_ID
- [Required]. AWS Access Key Id.- Type:
string
- Type:
AWS_SECRET_ACCESS_KEY
- [Required]. AWS Secret Access Key.- Type:
string
- Type:
AWS_DEPLOY_BUCKET
- [Required]. AWS S3 Bucket where the Stack package is going to be stored.- Type:
string
- Type:
AWS_BUCKET_PREFIX
- [Optional]. S3 Bucket's folder where to upload the package.- Type:
string
- Type:
FORCE_UPLOAD
- [Optional]. Whether to override existing packages in case they are an exact match.- Type:
boolean
- Type:
USE_JSON
- [Optional]. Whether to use JSON instead of YML as the output template format.- Type:
boolean
- Type:
NO_FAIL_EMPTY_CHANGESET
- [Optional]. Whether to fail if there are no changes to the workload.- Type:
boolean
- Type:
PARAMETER_OVERRIDES
- [Optional]. Parameters to input in the template.- Type:
string | list[string]
- Syntax:
AliasName=prod
AliasName=prod ApiUrl=https://api.com/api/v1
- Type:
TAGS
- [Optional]. Tags to assign.- Type:
string | list[string]
- Syntax:
Environment=prod
Name=infrastructure
- Type:
The Dockerfile and associated scripts and documentation in this project are released under the MIT License.