diff --git a/lambda_notify.py b/lambda_notify.py index beb9cde..74b6434 100644 --- a/lambda_notify.py +++ b/lambda_notify.py @@ -112,7 +112,7 @@ def get_stack_summary_attachment(stack_name): def get_stack_region(stack_id): - regex = re.compile('arn:aws:cloudformation:(?P[a-z]{2}-[a-z]{4}-[1-2]{1})') + regex = re.compile('arn:aws:cloudformation:(?P[a-z]{2}-[a-z]{4,9}-[1-2]{1})') return regex.match(stack_id).group('region')