Skip to content

fix(amazon): correct AWS China SQS regex to use amazonaws.com.cn#65299

Merged
vincbeck merged 1 commit intoapache:mainfrom
alliasgher:fix-amazon-sqs-china-com-cn
Apr 15, 2026
Merged

fix(amazon): correct AWS China SQS regex to use amazonaws.com.cn#65299
vincbeck merged 1 commit intoapache:mainfrom
alliasgher:fix-amazon-sqs-china-com-cn

Conversation

@alliasgher
Copy link
Copy Markdown
Contributor

Follow-up to #65173. As reported by @crazy-canux, AWS China regions use the endpoint suffix `amazonaws.com.cn`, not `amazonaws.cn`. The regex shipped in #65173 fails to match real AWS China SQS URLs like:

```
https://sqs.cn-northwest-1.amazonaws.com.cn/123456/my-sqs
```

This PR updates the regex to accept the optional `.cn` suffix on `amazonaws.com`, and updates the tests to use the correct endpoint.

Reopens / properly fixes #65128.

Follow-up to apache#65173. AWS China regions use the endpoint suffix
amazonaws.com.cn, not amazonaws.cn. The regex shipped in apache#65173 fails
to match real AWS China SQS URLs like:

    https://sqs.cn-northwest-1.amazonaws.com.cn/123456/my-sqs

Update the regex to accept the optional .cn suffix on amazonaws.com,
and update the tests to use the correct endpoint. Reported by
@crazy-canux in apache#65128.
@vincbeck vincbeck merged commit f18c6e1 into apache:main Apr 15, 2026
94 checks passed
karenbraganz pushed a commit to karenbraganz/airflow that referenced this pull request Apr 16, 2026
…che#65299)

Follow-up to apache#65173. AWS China regions use the endpoint suffix
amazonaws.com.cn, not amazonaws.cn. The regex shipped in apache#65173 fails
to match real AWS China SQS URLs like:

    https://sqs.cn-northwest-1.amazonaws.com.cn/123456/my-sqs

Update the regex to accept the optional .cn suffix on amazonaws.com,
and update the tests to use the correct endpoint. Reported by
@crazy-canux in apache#65128.
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