mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
34 lines
649 B
Plaintext
34 lines
649 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# sam
|
|
|
|
> AWS Serverless Application Model (SAM) CLI.
|
|
> More information: <https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/using-sam-cli-corecommands.html>.
|
|
|
|
- Initialize a serverless application:
|
|
|
|
`sam init`
|
|
|
|
- Initialize a serverless application with a specific runtime:
|
|
|
|
`sam init {{[-r|--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`
|