Skip to content

Instantly share code, notes, and snippets.

@harishb2k
Last active June 24, 2021 22:27
Show Gist options
  • Save harishb2k/4783418fcb47b79cc584a70c82971299 to your computer and use it in GitHub Desktop.
Save harishb2k/4783418fcb47b79cc584a70c82971299 to your computer and use it in GitHub Desktop.
Setup and run LocalStack Pro on Mac

Docker commad to run LocalStack

This is a working command whihc will run LocalStack. It allows "https://app.localstack.cloud/dashboard" to connect to running docker and expose UI to list all services.

docker run -it -e DEFAULT_REGION="ap-south-1" -e LOCALSTACK_HOSTNAME="localhost" -e LOCALSTACK_API_KEY="PUT_KEY_HERE" -e TEST_AWS_ACCOUNT_ID="000000000000" -e SERVICES="serverless,cognito,rds,sqs,s3,stepfunctions,firehose,es,athena,sns,secretsmanager" -p 0.0.0.0:53:53 -p 0.0.0.0:53:53/udp -p 0.0.0.0:443:443 -p 0.0.0.0:443:443/udp  --rm --privileged --name localstack_main -p 4510-4540:4510-4540 -p 4566:4566 -p 4571:4571  -v "/private/var/folders/lm/m7znckm561771km0sj6jq8xw0000gn/T/localstack:/tmp/localstack" -v "/var/run/docker.sock:/var/run/docker.sock" -e DOCKER_HOST="unix:///var/run/docker.sock" -e HOST_TMP_FOLDER="/private/var/folders/lm/m7znckm561771km0sj6jq8xw0000gn/T/localstack" "localstack/localstack"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment