Skip to content

Commit

Permalink
take param to get details
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Mar 26, 2021
1 parent f09722f commit 949a6b2
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions ses-domain/bin/move-to-production.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,19 @@ then
SES_DEBUG="true"
fi

$SES_DEBUG $AWS sesv2 put-account-details \
--production-access-enabled \
--mail-type TRANSACTIONAL \
--website-url "$SES_WEBSITE_URL" \
--use-case-description "$SES_USE_CASE_DESCRIPTION" \
--additional-contact-email-addresses $SES_ADDITIONAL_CONTACT_EMAIL \
--contact-language EN
status=$?
if [ -z "$1" ]
then
$SES_DEBUG $AWS sesv2 put-account-details \
--production-access-enabled \
--mail-type TRANSACTIONAL \
--website-url "$SES_WEBSITE_URL" \
--use-case-description "$SES_USE_CASE_DESCRIPTION" \
--additional-contact-email-addresses $SES_ADDITIONAL_CONTACT_EMAIL \
--contact-language EN
status=$?
else
status=0
fi

if [ $status != 0 ]
then
Expand All @@ -58,7 +63,10 @@ then
fi

# now, get the details
$SES_DEBUG $AWS sesv2 get-account
if [[ -z "$1" ]] || [[ "$1" == "get" ]]
then
$SES_DEBUG $AWS sesv2 get-account
fi

exit $status

Expand Down

0 comments on commit 949a6b2

Please sign in to comment.