Deploy the AWS SAM application (original) (raw)

Use the AWS SAM sam deploy command with thepackage.yml file to create your Lambda functions and CodeDeploy application and deployment group using AWS CloudFormation.

In the SAM-Tutorial directory, run the following command.

sam deploy \
  --template-file package.yml \
  --stack-name my-date-time-app \
  --capabilities CAPABILITY_IAM

The --capabilities CAPABILITY_IAM parameter is required to authorize AWS CloudFormation to create IAM roles.

Package the AWS SAM application

(Optional) inspect and test your infrastructure

Did this page help you? - Yes

Thanks for letting us know we're doing a good job!

If you've got a moment, please tell us what we did right so we can do more of it.

Did this page help you? - No

Thanks for letting us know this page needs work. We're sorry we let you down.

If you've got a moment, please tell us how we can make the documentation better.