Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# variables
S3_BUILD_BUCKET=your_build_bucket_name
STACK_NAME=your_cloudformation_stack_name
# validate
sam validate --template template.yaml
aws cloudformation validate-template \
--template-body file://template.yaml
# build
sam build --template template.yaml
# package
sam package \
--output-template-file packaged.yaml \
--s3-bucket $S3_BUILD_BUCKET
# deploy
sam deploy --template-file packaged.yaml \
--stack-name $STACK_NAME \
--capabilities CAPABILITY_IAM \
--debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.