You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is true, this is a strange AWS SDK bug, that you need a region name even if it's not actually used (because the explicit endpoint_url overrides the region anyway). The java/README.md explains (this text isn't present in python/README.md):
The region passed to withRegion does not matter (and can be any string),
because AlternatorRequestHandler will override the chosen endpoint anyway,
Unfortunately we can't just drop the withRegion() call, because without
it the library will expect to find a default region in the configuration file
and complain when it is missing.
As this text explains if you have in ~/.aws/config
[default]
region = us-east-1
The region_name option will no longer be required.
But I agree it's worth changing the test to include region_name='doesnt-matter' or something (I think using the name doesnt-matter instead of us-east-1 is better because it emphasizes that this parameter is needed but ignored).
The Sample code for the Alternator load balancing,
try1.py
andtry2.py
when executing, gives the errorThe line responsible for this is
Updated code with the additional
region_name='us-east-1'
fixes the issueThe text was updated successfully, but these errors were encountered: