Fix SNS cert address regex to allow govcloud region domain

This commit is contained in:
Ryan Ahearn
2023-05-09 12:04:05 -04:00
parent a9242d46d4
commit 663ea8435e

View File

@@ -16,7 +16,7 @@ VALID_SNS_TOPICS = Config.VALID_SNS_TOPICS
_signing_cert_cache = {} _signing_cert_cache = {}
_cert_url_re = re.compile( _cert_url_re = re.compile(
r'sns\.([a-z]{1,3}-[a-z]+-[0-9]{1,2})\.amazonaws\.com', r'sns\.([a-z]{1,3}(?:-gov)?-[a-z]+-[0-9]{1,2})\.amazonaws\.com',
) )