AWS Serverless Application Model
Developer Guide

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

sam deploy

Deploys an AWS SAM application. This is an alias for aws cloudformation deploy.


sam deploy [OPTIONS] [ARGS]...


Option Description
--template-file PATH Required. The path where your AWS SAM template file is located.
--stack-name TEXT Required. The name of the AWS CloudFormation stack you're deploying to. If you specify an existing stack, the command updates the stack. If you specify a new stack, the command creates it.
--profile TEXT Select a specific profile from your credential file to get AWS credentials.
--region TEXT Sets the AWS Region of the service (for example, us-east-1).
--debug Turns on debug logging.
--help Shows this message and exits.