mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-14 05:48:24 +00:00
Update cheatsheets
This commit is contained in:
33
linux/sam
Normal file
33
linux/sam
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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`
|
||||
Reference in New Issue
Block a user