This project provides the samlocal
command line, a simple wrapper around the AWS SAM CLI for use with LocalStack.
Simply use pip
to install samlocal
as a Python library on your machine:
pip install aws-sam-cli-local
The 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
AWS_ENDPOINT_URL
: URL at which the boto3
client can reach LocalStack, e.g. http://localhost.localstack.cloud:4566
(default: http://localhost:4566
)EDGE_PORT
: Deprecated Port number under which the LocalStack edge service is available (default: 4566
)LOCALSTACK_HOSTNAME
: Deprecated Host under which the LocalStack edge service is available (default: localhost
)Image
typeAWS_ENDPOINT_URL
for configuring the boto3.client
endpointboto3.Session.client
instead of boto3.client
samlocal
commandThis software library is released under the Apache License, Version 2.0.