The AWS Serverless Application Model (SAM) is a framework on top of CloudFormation to quickly develop Cloud Applications with a focus on serverless services such as S3, Lambda, API Gateway, Step Functions and more.
AWS SAM CLI for LocalStack
pip to install
samlocal as a Python library on your machine:
$ pip install aws-sam-cli-local
samlocal command has the exact same usage as the underlying
sam command. The main difference is that for commands like
samlocal deploy the operations will be executed against the LocalStack endpoints (
http://localhost:4566 by default) instead of real AWS endpoints.
$ samlocal --help
samlocal by deploying a Hello World Application.
Please make sure to replace all
sam calls with
samlocal when following the AWS tutorial.
EDGE_PORT: Port number under which the LocalStack edge service is available (default:
LOCALSTACK_HOSTNAME: Host under which the LocalStack edge service is available (default:
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.