2019-02-16 14:16:52 +00:00
|
|
|
# sam
|
|
|
|
|
|
|
|
> AWS Serverless Application Model (SAM) CLI.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <https://github.com/awslabs/aws-sam-cli>.
|
2019-02-16 14:16:52 +00:00
|
|
|
|
|
|
|
- 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`
|