Skip to content

folkcode/localstack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Localstack - A fully functional local AWS cloud stack

Localstack provides an easy-to-use test/mocking framework for developing Cloud applications.

Currently, the focus is primarily on supporting the AWS cloud stack.

Localstack spins up the following Cloud APIs:

Requirements

  • make
  • python
  • pip (python package manager)
  • npm (node.js package manager, needed for Web UI dependencies)
  • java/javac (Java runtime environment and compiler)

Installation

To install the tool, run the following command:

make install

This will install the required pip dependencies in a local Python virtualenv directory .venv (your global python packages will remain untouched), as well as the node modules for the Web UI in ./dashboard/node_modules/. Depending in your system, some pip/npm modules may require additional native libs installed.

Testing

The project comes with a set of unit and integration tests which can be kicked off via a make target:

make test

Running

The Makefile contains a target to conveniently run the local infrastructure.

make infra

Then you can point your aws CLI to use the local infrastructure, for example:

aws --endpoint-url=http://localhost:4568 kinesis list-streams
{
    "StreamNames": []
}

If you want to use Localstack in your integration tests, simply fire up the infrastructure in your test setup method:

infra.start_infra(async=True)

See the example test file tests/test_integration.py for more details.

Web Dashboard

The projects also comes with a simple Web dashboard that allows to view the deployed AWS components and the relationship between them.

make web

License

Copyright (c) 2016 Atlassian and others.

Localstack is released under the Apache License, Version 2.0 (see LICENSE.txt).

We build on a number of third-party software tools, with the following licenses:

Third-Party software License
Python/pip modules:
t.b.a.

About

💻 A fully functional local AWS cloud stack. Develop and test your cloud & Serverless apps offline!

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Python 98.3%
  • Makefile 0.5%
  • Java 0.3%
  • Dockerfile 0.3%
  • HCL 0.2%
  • HTML 0.2%
  • Other 0.2%