Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Deploy the AWS SAM application

Focus mode
Deploy the AWS SAM application - AWS CodeDeploy

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

Note

For more information on the sam deploy command, see AWS SAM CLI command reference in the AWS 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 AWS CloudFormation to create IAM roles.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.