mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 13:22:06 +02:00
28 lines
476 B
Markdown
28 lines
476 B
Markdown
# sam
|
|
|
|
> AWS Serverless Application Model (SAM) CLI.
|
|
> More information: <https://github.com/awslabs/aws-sam-cli>.
|
|
|
|
- Initialize a serverless application:
|
|
|
|
`sam init`
|
|
|
|
- Initialize a serverless application with a specific runtime:
|
|
|
|
`sam init --runtime {{python3.7}}`
|
|
|
|
- Package a SAM application:
|
|
|
|
`sam package`
|
|
|
|
- Build your Lambda function code:
|
|
|
|
`sam build`
|
|
|
|
- Run your serverless application locally:
|
|
|
|
`sam local start-api`
|
|
|
|
- Deploy an AWS SAM application:
|
|
|
|
`sam deploy`
|