lws

module
v0.0.0-...-d475280 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2019 License: Apache-2.0

README

Build Status Go Report Card License

LWS

LWS (Local Web Services) is a set of mocks for AWS services that allows you to test you code offline and without the need of an account.

Services

  • SQS
  • Lambda (in development)

Requirements

  • Golang: Currently it only runs localy so, you'll need to download and install Golang. Make sure you have configured your GOPATH.

SQS

For a list of supported features check the Wiki.

Lambda

Lambda service is in early development stage. If you are keen and want to follow the development, check out the branch llambda.

Installation

After installing Golang and configuring your GOPATH clone the LWS repository:

git clone https://github.com/cprates/lws.git

Running

> cd lws
> make install
> make run

Testing your installation

Create a new queue

aws sqs create-queue --endpoint-url http://localhost:8080 --queue-name queue1

Check if it was created

aws sqs list-queues --endpoint-url http://localhost:8080

Send a message (use the queue-url returned by the previous command)

aws sqs send-message --endpoint-url http://localhost:8080 --queue-url "$QueueURL" --message-body "Hello!"

Read the message

aws sqs receive-message --endpoint-url http://localhost:8080 --queue-url "$QueueURL"

Directories

Path Synopsis
cmd
lws
pkg
list
Package list implements a doubly linked list.
Package list implements a doubly linked list.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL