mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 09:15:31 +02:00
sam: add page (#2779)
This commit is contained in:
parent
b6c67e093c
commit
89a8a1477b
1 changed files with 28 additions and 0 deletions
28
pages/linux/sam.md
Normal file
28
pages/linux/sam.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# sam
|
||||
|
||||
> AWS Serverless Application Model (SAM) CLI.
|
||||
> Homepage: <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`
|
Loading…
Add table
Reference in a new issue