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.
- SQS
- Lambda (in development)
- Golang: Currently it only runs localy so, you'll need to download and install Golang. Make sure you have configured your GOPATH.
For a list of supported features check the Wiki.
Lambda service is in early development stage. If you are keen and want to follow the development,
check out the branch llambda
.
After installing Golang and configuring your GOPATH clone the LWS repository:
git clone https://github.com/cprates/lws.git
> cd lws
> make install
> make run
Create a new queue
aws sqs create-queue --endpoint-url https://localhost:8080 --queue-name queue1
Check if it was created
aws sqs list-queues --endpoint-url https://localhost:8080
Send a message (use the queue-url returned by the previous command)
aws sqs send-message --endpoint-url https://localhost:8080 --queue-url "$QueueURL" --message-body "Hello!"
Read the message
aws sqs receive-message --endpoint-url https://localhost:8080 --queue-url "$QueueURL"