Skip to content
This repository has been archived by the owner on Nov 27, 2021. It is now read-only.

Commit

Permalink
Fixed issue when region is ap-northeast-1
Browse files Browse the repository at this point in the history
  • Loading branch information
alexforever86 authored Mar 10, 2017
1 parent dbd6e9f commit a52f1fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lambda_notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def get_stack_summary_attachment(stack_name):


def get_stack_region(stack_id):
regex = re.compile('arn:aws:cloudformation:(?P<region>[a-z]{2}-[a-z]{4}-[1-2]{1})')
regex = re.compile('arn:aws:cloudformation:(?P<region>[a-z]{2}-[a-z]{4,9}-[1-2]{1})')
return regex.match(stack_id).group('region')


Expand Down

0 comments on commit a52f1fe

Please sign in to comment.