Skip to main content

# AWS SAM CLI for LocalStack

This project provides the samlocal command line, a simple wrapper around the [AWS SAM CLI](https://github.com/aws/aws-sam-cli) for use with [LocalStack](https://github.com/localstack/localstack).

## Installation

Simply use pip to install samlocal as a Python library on your machine:

` pip install aws-sam-cli-local `

## Usage

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 `

## Configuration

  • 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)

## Change Log

  • v1.70.1: Fix ECR repository rewrite logic

  • v1.70.0: Fix regex pattern to detect ECR URLs with dashes

  • v1.69.0: Fix repo related cli options and add support to Lambdas with Image type

  • v1.68.0: Support AWS_ENDPOINT_URL for configuring the boto3.client endpoint

  • v1.67.0: Patch underlying boto3.Session.client instead of boto3.client

  • v1.55.0: Fix s3 URl detection when using a nested template

  • v1.53.1: Fix logic around local URLs for ECR image repositories

  • v1.1.0.1: Minor fix, release initial version of samlocal command

  • v1.1.0: Initial version

## License

This software library is released under the Apache License, Version 2.0.

Release files for aws-sam-cli-local 1.70.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aws-sam-cli-local 1.70.1
File Size Uploaded
aws_sam_cli_local-1.70.1.tar.gz 8.8 kB Details

Release files / aws_sam_cli_local-1.70.1.tar.gz

Download URL aws_sam_cli_local-1.70.1.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
eedff6eb400d11915332379c43a3211e179959f063a9af523a427a0f587796e0
BLAKE2b-256 checksum
How to use checksums
f1d91f2f3a46bc337d2c733596599df4292aa6abc78e8fb17efdea145e68b836
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.11

Release history Release notifications | RSS feed

This release

1.70.1 This release

1 release file

1.70.0

1 release file

1.69.0

1 release file

1.68.0

1 release file

1.67.0

1 release file

1.55.0

1 release file

1.53.0

1 release file

1.1.0.1

1 release file

1.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page