๐ป A fully functional local AWS cloud stack. Develop and test your cloud & Serverless apps offline!
LocalStack provides an easy-to-use test/mocking framework for developing Cloud applications.
Overview โข
Install โข
Example โข
Run โข
Usage โข
Changelog โข
Contributing
โ
๐ Docs โข
๐ป Pro version โข
โ๏ธ Feature coverage โข
๐ข Announcements
LocalStack ๐ป is a cloud service emulator that runs in a single container on your laptop or in your CI environment. With LocalStack, you can run your AWS applications or Lambdas entirely on your local machine without connecting to a remote cloud provider! Whether you are testing complex CDK applications or Terraform configurations, or just beginning to learn about AWS services, LocalStack helps speed up and simplify your testing and development workflow.
LocalStack supports a growing number of AWS services, like AWS Lambda, S3, Dynamodb, Kinesis, SQS, SNS, and many more! The Pro version of LocalStack supports additional APIs and advanced features. You can find a comprehensive list of supported APIs on our โ๏ธ Feature Coverage page.
LocalStack also provides additional features to make your life as a cloud developer easier! Check out LocalStack's Cloud Developer Tools for more information.
python
(Python 3.6 up to 3.9 supported)pip
(Python package manager)Docker
The easiest way to install LocalStack is via pip
:
pip install localstack
Note: Please do not use sudo
or the root
user - LocalStack should be installed and started entirely under a local non-root user. If you have problems with permissions in MacOS X Sierra, install with pip install --user localstack
It installs the localstack-cli
which is used to run the Docker image that hosts the LocalStack runtime.
Start LocalStack inside a Docker container by running:
% localstack start -d
__ _______ __ __
/ / ____ _________ _/ / ___// /_____ ______/ /__
/ / / __ \/ ___/ __ `/ /\__ \/ __/ __ `/ ___/ //_/
/ /___/ /_/ / /__/ /_/ / /___/ / /_/ /_/ / /__/ ,<
/_____/\____/\___/\__,_/_//____/\__/\__,_/\___/_/|_|
๐ป LocalStack CLI 0.13.0.11
[20:22:20] starting LocalStack in Docker mode ๐ณ
[20:22:21] detaching
You can query the status of respective services on LocalStack by running:
% localstack status services
โโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโ
โ Service โ Status โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ acm โ โ available โ
โ apigateway โ โ available โ
โ cloudformation โ โ available โ
โ cloudwatch โ โ available โ
โ config โ โ available โ
โ dynamodb โ โ available โ
...
To use SQS, a fully managed distributed message queuing service, on LocalStack run:
% awslocal sqs create-queue --queue-name sample-queue
{
"QueueUrl": "http://localhost:4566/000000000000/sample-queue"
}
Learn more about LocalStack AWS services and using them with LocalStack's awslocal
CLI.
You can run LocalStack through the following options:
To start using LocalStack, check out our documentation on docs.localstack.cloud.
To use LocalStack with a graphical user interface, you can use the following UI clients:
Please refer to CHANGELOG.md
to see the complete list of changes for each release.
If you are interested in contributing to LocalStack:
We are thankful for all the contributions and feedback we receive.
We are thankful to all the people who have contributed to this project.
We are also grateful to all our backers who have donated to the project. You can become a backer on Open Collective.
You can also support this project by becoming a sponsor on Open Collective. Your logo will show up here along with a link to your website.
Copyright (c) 2017-2021 LocalStack maintainers and contributors.
Copyright (c) 2016 Atlassian and others.
This version of LocalStack is released under the Apache License, Version 2.0 (see LICENSE.txt). By downloading and using this software you agree to the End-User License Agreement (EULA).
We build on a number of third-party software tools, including the following:
Third-Party software | License |
---|---|
Python/pip modules: | |
airspeed | BSD License |
amazon_kclpy | Amazon Software License |
boto3 | Apache License 2.0 |
coverage | Apache License 2.0 |
docopt | MIT License |
elasticsearch | Apache License 2.0 |
flask | BSD License |
flask_swagger | MIT License |
jsonpath-rw | Apache License 2.0 |
moto | Apache License 2.0 |
requests | Apache License 2.0 |
subprocess32 | PSF License |
Node.js/npm modules: | |
kinesalite | MIT License |
Other tools: | |
Elasticsearch | Apache License 2.0 |
local-kms | MIT License |
kinesis-mock | MIT License |
v0.11.5
, all services are now exposed via the edge service (port 4566) only! Please update your client configurations to use this new endpoint.0.7.0
, the Docker image will be pushed
and kept up to date under the new name localstack/localstack
. (This means that you may
have to update your CI configurations.) Please refer to the updated
End-User License Agreement (EULA) for the new versions.
The old Docker image (atlassianlabs/localstack
) is still available but will not be maintained
any longer.