aws/aws-advanced-python-wrapper

Support for CN endpoints

karenc-bq opened this issue · 0 comments

Describe the bug

Wrapper throws an AwsWrapperError when connecting using an endpoint with the following DNS pattern:

database-1.xwyz.rds.cn-north-1.amazonaws.com.cn

Sample error message:

[IamAuthPlugin] Invalid IAM host database-1.xwyz.rds.cn-north-1.amazonaws.com.cn. The IAM host must be a valid RDS or Aurora endpoint."

Expected Behavior

Wrapper needs to support both types of CN endpoint patterns:

database-1.xwyz.rds.cn-north-1.amazonaws.com.cn

and

database-1.xwyz.cn-north-1.rds.amazonaws.com.cn

What plugins are used? What other connection properties were set?

N/A

Current Behavior

N/A

Reproduction Steps

N/A

Possible Solution

No response

Additional Information/Context

No response

The AWS Advanced Python Wrapper version used

1.1.0

python version used

Python 3.11.10

Operating System and version

MacOS