Skip to content

fix(amazon): extend SQS QUEUE_REGEXP to match AWS China endpoints#65173

Merged
vincbeck merged 1 commit intoapache:mainfrom
alliasgher:fix-sqs-china-domain
Apr 14, 2026
Merged

fix(amazon): extend SQS QUEUE_REGEXP to match AWS China endpoints#65173
vincbeck merged 1 commit intoapache:mainfrom
alliasgher:fix-sqs-china-domain

Conversation

@alliasgher
Copy link
Copy Markdown
Contributor

What does this PR do?

QUEUE_REGEXP only matched amazonaws.com domains, so SqsMessageQueueProvider.queue_matches() returned False for AWS China region URLs such as:

https://sqs.cn-north-1.amazonaws.cn/123456789012/my-queue

Extends the regex to accept amazonaws.cn as an alternate domain suffix, supporting China regions cn-north-1 and cn-northwest-1.

Fixes #65128

Are there any user-facing changes?

SQS queue URLs in AWS China regions are now correctly recognised by the SqsMessageQueueProvider.

Checklist

  • Added test cases for cn-north-1 and cn-northwest-1 China region URLs in test_message_sqs_queue_matches

Signed-off-by: Ali alliasgher123@gmail.com

The QUEUE_REGEXP only matched standard amazonaws.com domains, causing
SqsMessageQueueProvider.queue_matches() to return False for China region
queue URLs (amazonaws.cn). Added amazonaws.cn as an alternate domain in
the regex to support cn-north-1 and cn-northwest-1 regions.

Fixes apache#65128

Signed-off-by: Ali <alliasgher123@gmail.com>
@vincbeck vincbeck merged commit e3d7338 into apache:main Apr 14, 2026
94 checks passed
@boring-cyborg
Copy link
Copy Markdown

boring-cyborg bot commented Apr 14, 2026

Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:amazon AWS/Amazon - related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SQS domain not cover AWS China.

2 participants