Skip to content

Instantly share code, notes, and snippets.

@chrisneal
chrisneal / exportSESSurpressionList.sh
Created September 15, 2025 11:34
Export an AWS surpression list to a CSV
#!/usr/bin/env bash
NEXTTOKEN=
for (( ; ; ))
do
echo "NextToken: ${NEXTTOKEN}";
if [ -z "$NEXTTOKEN" ]; then
RESPONSE=$(aws sesv2 list-suppressed-destinations)
else
RESPONSE=$(aws sesv2 list-suppressed-destinations --next-token=${NEXTTOKEN})