• Stars
    star
    51,683
  • Rank 205 (Top 0.01 %)
  • Language
    Python
  • License
    Other
  • Created over 7 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

πŸ’» A fully functional local AWS cloud stack. Develop and test your cloud & Serverless apps offline

⚑ We are thrilled to announce LocalStack 2.1 which brings new features, enhancements and bugfixes ⚑

LocalStack - A fully functional local cloud stack

CircleCI Coverage Status PyPI Version Docker Pulls PyPi downloads Backers on Open Collective Sponsors on Open Collective PyPI License Code style: black Twitter

LocalStack provides an easy-to-use test/mocking framework for developing cloud applications.

Overview β€’ Install β€’ Example β€’ Run β€’ Usage β€’ Releases β€’ Contributing
πŸ“– Docs β€’ πŸ’» Pro version β€’ β˜‘οΈ LocalStack coverage


Overview

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.

Requirements

  • python (Python 3.7 up to 3.11 supported)
  • pip (Python package manager)
  • Docker

Installing

The easiest way to install LocalStack is via pip:

pip install localstack

This installs the localstack-cli which is used to run the Docker image that hosts the LocalStack runtime.

Important: Do not use sudo or run as root user. LocalStack must be installed and started entirely under a local non-root user. If you have problems with permissions in macOS High Sierra, install with pip install --user localstack

Example

Start LocalStack inside a Docker container by running:

 % localstack start -d

     __                     _______ __             __
    / /   ____  _________ _/ / ___// /_____ ______/ /__
   / /   / __ \/ ___/ __ `/ /\__ \/ __/ __ `/ ___/ //_/
  / /___/ /_/ / /__/ /_/ / /___/ / /_/ /_/ / /__/ ,<
 /_____/\____/\___/\__,_/_//____/\__/\__,_/\___/_/|_|

 πŸ’» LocalStack CLI 2.0.0

[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.

Running

You can run LocalStack through the following options:

Usage

To start using LocalStack, check out our documentation at https://docs.localstack.cloud.

To use LocalStack with a graphical user interface, you can use the following UI clients:

Releases

Please refer to GitHub releases to see the complete list of changes for each release. For extended release notes, please refer to the LocalStack Discuss.

Contributing

If you are interested in contributing to LocalStack:

We are thankful for all the contributions and feedback we receive.

Get in touch

To get in touch with LocalStack team for bugs/feature requests, support questions or general discussions, please use:

Contributors

We are thankful to all the people who have contributed to this project.

Backers

We are also grateful to all our backers who have donated to the project. You can become a backer on Open Collective.

Sponsors

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.

License

Copyright (c) 2017-2023 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). By downloading and using this software you agree to the End-User License Agreement (EULA). To know about the external software we use, look at our third party software tools page.

More Repositories

1

awscli-local

πŸ’² "awslocal" - Thin wrapper around the "aws" command line interface for use with LocalStack
Python
977
star
2

serverless-localstack

⚑ Serverless plugin for running against LocalStack
JavaScript
497
star
3

aws-cdk-local

Thin wrapper script for using the AWS CDK CLI with LocalStack
JavaScript
243
star
4

localstack-python-client

🐍 A lightweight Python client for LocalStack
Python
169
star
5

localstack-pro-samples

Sample projects to demonstrate advanced LocalStack features
Makefile
153
star
6

terraform-local

Terraform CLI wrapper to deploy your Terraform applications directly to LocalStack
Python
146
star
7

localstack-java-utils

β˜• Java utilities and JUnit integration for LocalStack
Java
77
star
8

plux

A dynamic code loading framework for building pluggable Python distributions
Python
69
star
9

pulumi-local

Thin wrapper script to use Pulumi with LocalStack
Python
66
star
10

localstack-terraform-samples

Repository with terraform samples for LocalStack
HCL
66
star
11

localstack-demo

Simple demo application deployed using LocalStack
Makefile
57
star
12

helm-charts

Helm Charts for LocalStack
Smarty
49
star
13

docs

The LocalStack documentation πŸ“–
HTML
48
star
14

aws-sam-cli-local

Simple wrapper around AWS SAM CLI for use with LocalStack
Python
41
star
15

localstack-docker-extension

Simple Docker Extension to control and manage your LocalStack instance
TypeScript
40
star
16

localstack-extensions

🧩 Extend and customize LocalStack with LocalStack Extensions (beta)
Python
31
star
17

localstack-terraform-test

Utilities to run Terraform tests against LocalStack
Python
24
star
18

chalice-local

Small wrapper script to use AWS Chalice with LocalStack
Python
21
star
19

verdin

A Tinybird SDK for Python 🐦
Python
20
star
20

awesome-localstack

A curated list of LocalStack integrations, tools, frameworks, and platforms.
20
star
21

amplify-js-local

Simple wrapper script to allow using the Amplify JS SDK with LocalStack
JavaScript
19
star
22

setup-localstack

Sets up LocalStack CLI in your GitHub Actions workflow ☁️
19
star
23

cockpit

LocalStack Cockpit Desktop application
18
star
24

serverless-python-rest-api-with-dynamodb

Serverless CRUD service exposing a REST HTTP interface integrated with LocalStack
Python
16
star
25

localstack-on-k8s

Sample repository that illustrates running LocalStack on Kubernetes
Python
13
star
26

localstack.github.io

LocalStack website
HTML
12
star
27

localstack-workshop

Repository with code samples for the LocalStack workshop
JavaScript
12
star
28

localstack-vscode-extension

LocalStack VSCode Extension: Deploy Lambda functions to LocalStack
TypeScript
12
star
29

azure-cli-local

[unmaintained] Simple wrapper script to use Azure CLI with LocalStack
Python
10
star
30

presentations

Presentations, talks, and demos about LocalStack
HCL
10
star
31

localstack-cli

The LocalStack CLI packaged using pyinstaller
Makefile
9
star
32

localstack-desktop

The official LocalStack Desktop Application
9
star
33

rolo

A Python framework for building HTTP-based server applications
Python
9
star
34

cloud-pods

Sample repository illustrating Cloud Pods for LocalStack
JavaScript
8
star
35

localstack-aws-sdk-examples

Test repo with sample apps & tests for various different languages/SDKs using LocalStack
Java
8
star
36

localstack-github-actions-login

GitHub Action to log-in into your LocalStack account on your GitHub Actions runners
JavaScript
8
star
37

localstack-artifacts

Miscellaneous build artifacts for the LocalStack platform
Java
7
star
38

serverless-streaming-data-pipeline

A serverless streaming data pipeline running on LocalStack
Python
7
star
39

serverless-api-ecs-apigateway-sample

Serverless Container-based APIs with Amazon ECS and Amazon API Gateway deployed using LocalStack
HCL
6
star
40

localstack-moto-test-coverage

Repo to run moto integration tests against LocalStack for moto-fallback coverage
Python
6
star
41

ci-plugin-circleci

CircleCI Plugin (Orb) for easy configuration of LocalStack CI builds
Makefile
5
star
42

localstack-plugin-loader

The dynamic code loading framework used in LocalStack
Python
5
star
43

architect-local

Architect CLI (arc.codes) for use with LocalStack
JavaScript
5
star
44

mnist-sagemaker

Demo to run the MNIST handwritten digit model on a locally running SageMaker endpoint
JavaScript
5
star
45

awslamba-go-runtime

Custom Golang runtime for the execution of AWS Lambdas
Go
5
star
46

.github

Community health files for the @localstack organization
5
star
47

localstack-pulumi-samples

Sample Pulumi projects to demonstrate LocalStack features
Python
4
star
48

localstack-stripe

Use the Stripe API in LocalStack
Python
4
star
49

local-surf

πŸ„ LocalSurf - a browser plugin to redirect AWS service calls to LocalStack
JavaScript
4
star
50

amplify-localstack

Amplify Plugin to deploy resources into Localstack
JavaScript
4
star
51

appsync-utils

Implementation of AppSync JavaScript utilities
JavaScript
4
star
52

tinybird-workflow-push

Push Github Workflow data to tinybird
TypeScript
4
star
53

devops-barcelona-2022

LocalStack @ DevOps Bareclona 2022
Python
3
star
54

branding

Repository with various LocalStack branding assets
3
star
55

localstack-docker-debug

Python
3
star
56

pre-commit-hooks

Pre commit hooks for LocalStack repositories
Python
3
star
57

localstack-snapshot

Extracted snapshot testing library for LocalStack
Python
3
star
58

serverless-image-resizer

Serverless Image Resizer demo app for LocalStack
Python
2
star
59

localstack-python-utils

Localstack utility for tests
Python
2
star
60

cloud-pod-badge

2
star
61

appsync-graphql-api-sample

Proxy data from different resources such as DynamoDB tables & RDS databases using AppSync GraphQL APIs deployed using Serverless Framework on LocalStack
Shell
2
star
62

homebrew-tap

Ruby
2
star
63

localstack-dev-spaces

Sample repo for running LocalStack in Redhat Openshift Dev Spaces
Dockerfile
2
star
64

aws-java-sdk-v2-trust-certs-patch

A small java agent to patch the AWS Java SDK v2 to disable certificate name validation.
Java
1
star
65

loan-broker-stepfunctions-lambda-app

TypeScript
1
star
66

shipyard-localstack-flask

a starter Flask project, integrated with Localstack and Shipyard
Python
1
star
67

troubleshooting-issues

Repository of samples to reproduce localstack issues
Python
1
star
68

meta

Tooling to manage repos in the localstack org
1
star
69

reinvent-challenge

Repository for re:Invent "scavenger hunt" using LocalStack
Shell
1
star
70

azure-functions-local

Small wrapper script to use Azure Functions core tools with LocalStack
1
star