Deploy the Amazon SAM application - Amazon CodeDeploy
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

Deploy the Amazon SAM application

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

Note

For more information on the sam deploy command, see Amazon SAM CLI command reference in the Amazon Serverless Application Model Developer Guide.

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 Amazon CloudFormation to create IAM roles.