Skip to content

Instantly share code, notes, and snippets.

@Loupax
Created November 18, 2021 13:45
Show Gist options
  • Save Loupax/80304b8f6664cdd7155b9197d02b38bd to your computer and use it in GitHub Desktop.
Save Loupax/80304b8f6664cdd7155b9197d02b38bd to your computer and use it in GitHub Desktop.
A script that waits for mock aws to be ready without depending on anything but the aws-cli
#!/bin/bash
echo "Waiting for dynamodb to be up"
until aws dynamodb --endpoint-url http://mock-aws:4566 list-tables 2>/dev/null; do echo "Waiting for localstack to be ready";sleep 1; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment