aws-sdk-js-automation on v2.1263.0
aws-sdk-js-automation on master
Updates SDK to v2.1263.0 (compare)
kuhe on master
fix(region_config): remove muta… (compare)
Using AWS SDK v3, I have an
EC2Client which needs to send request to 2 different regions.
Note it should not happen concurrently, it depends on another configuration which can be switched at runtime.
EC2ClientConfig used when creating the client allows us to pass the region as a
() => Promise<T>)
So we configured the client with a Promise based on our configuration.
And that works, at least to resolve the endpoint and so on.
The issue is when signing the request, the signin region is always the first region the client "saw".
Do you know how to fixes this, without having 2 clients ?