SES region is hardcoded to us-west-2 in AlertEmailFunction

Issue #4 resolved
Captain Crabby created an issue

Line 81: ses = boto3.client('ses', region_name='us-west-2')

Assuming the desired behavior is to default to us-west-2 (as in manager.py), the following worked for me with SES_REGION set to us-east-1:

ses_region = os.environ.get('SES_REGION', None)
if ses_region is None:
    ses_region = 'us-west-2'
ses = boto3.client('ses', region_name=ses_region)

Comments (5)

  1. Log in to comment