HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

sam — AWS Serverless Application Model (SAM) CLI. More information: <https://docs.aws.amazon.com/serverles

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandclimodelsamawsserverlessapplication
linux

Problem

How to use the sam command: AWS Serverless Application Model (SAM) CLI. More information: <https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/using-sam-cli-corecommands.html>.

Solution

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

Code Snippets

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

Context

tldr-pages: linux/sam

Revisions (0)

No revisions yet.