
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"