Skip to content

Support for CN endpoints #700

@karenc-bq

Description

@karenc-bq

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions