From a52f1fe66443be56942d5d53d862b64257e3e9d7 Mon Sep 17 00:00:00 2001 From: alexforever86 Date: Fri, 10 Mar 2017 16:49:43 +0530 Subject: [PATCH] Fixed issue when region is ap-northeast-1 --- lambda_notify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')