Skip to content

Instantly share code, notes, and snippets.

@dvejmz
Last active May 29, 2021 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dvejmz/c3c7f41a11cacb61d3832d204475f0ed to your computer and use it in GitHub Desktop.
Save dvejmz/c3c7f41a11cacb61d3832d204475f0ed to your computer and use it in GitHub Desktop.
Auto-verify SES email address upon launching localstack
#!/bin/bash
set -eo pipefail
## Mount this file in /docker-entrypoint-initaws.d so that localstack runs it
## as part of its entrypoint routine.
echo 'Running AWS verify identity command. See: https://github.com/localstack/localstack/issues/339'
aws ses verify-email-identity --email-address ${EMAIL_ADDRESS} --region ${AWS_REGION} --endpoint-url=http://localhost:4579
echo "Verified ${EMAIL_ADDRESS}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment