I'm using localstack to simulate SNS and SQS but every time I try to use the dashboard I keep getting this error:

 2019-08-19T09:59:58:WARNING:localstack.dashboard.infra: Error running command: { test `which aws` || . .venv/bin/activate; }; aws --endpoint-url="http://localhost:4576" sqs list-queues [Errno 1] Operation not permitted: '/tmp/cache.b40b5dc1d0a8d40f3b34502cd285c718.json

I'm running localstack with the docker flag because I don't think I can get the dashboard without docker.

2

Best Answer


A little deep in the README.md for the github localstack it says:

PORT_WEB_UI: Port for the Web user interface / dashboard (default: 8080). Note that the Web UI is now deprecated, and requires to use the localstack/localstack-full Docker image.

Try using the localstack/localstack-full image instead.

For those still running into this question, do note that the latest localstack/localstack-full image is no longer a fallback for the dashboard, as the interface itself has been fully removed from that image as well.

The only way to retain the dashboard is using a previous version of the same image, such as localstack:localstack-full:0.11.6 which is the latest version that still contains the dashboard (v0.12.x onwards won't have it).

The caveat being, obviously, since this is an older image, several updated dependencies you have may break in an untraceable manner when interacting with localstack.

Once set up, a successful(-ish) build of that image renders the below layout at http://localhost:8080/#!/infra:enter image description here