ECR client no longer respects the endpoint_url parameter #3326
Labels
bug
This issue is a confirmed bug.
needs-triage
This issue or PR still needs to be triaged.
potential-regression
Marking this issue as a potential regression to be checked by team member
Describe the bug
When invoking ECR methods on a client with the
endpoint_url
configured, the configured endpoint is ignored, and all requests are actually send toecr.amazonaws.com
.Regression Issue
Expected Behavior
I would expect the request to go to that endpoint url. This worked with botocore
1.35.87
, so this is a recent regression.Current Behavior
This error tells me that the requests are actually send through to AWS, and not to the configured endpoint. (The endpoint in my case is Moto, which accepts any request, regardless of the security token included.)
Reproduction Steps
Running this test passes against
1.35.87
, as expected, but fails against1.35.88
with anUnrecognizedClientException
- because botocore is trying to reach out to AWS instead.Possible Solution
No response
Additional Information/Context
I've created a very simple GitHub repo if you want to see the above test in action, against both
botocore
versions:bblommers/botocore-ecr-endpoint#1
Note that also fails against other methods, like DescribeRepositories and PutReplicationConfiguration
SDK version used
1.35.88
Environment details (OS name and version, etc.)
Ubuntu
The text was updated successfully, but these errors were encountered: