Skip to content

Instantly share code, notes, and snippets.

@amancioandre
Forked from dvejmz/verify-ses-email.sh
Created May 29, 2021 18:37
Show Gist options
  • Save amancioandre/00f9bdd3b352a839cc3efbe2c6acb25f to your computer and use it in GitHub Desktop.
Save amancioandre/00f9bdd3b352a839cc3efbe2c6acb25f 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