WIP: Ignore provided 'region' if 'credentialScope' is defined
If we end in a rule with 'credentialScope', we probably want to ignore the 'region' even if the user has defined one.
Request to rules with 'credentialScope' are only going to succeed with the region in it, so if the user (mistakenly or not) has a 'region' defined the request will fail.
It may be nice, though, to leave a WARNING if 'region' is defined and is different from the one in 'credentialScope'.
Hi,
I've imported the branch so travis runs the full test suite: it looks like the code was there to let the user specify with what region to sign when a custom endpoint is specified. t/06_endpoint_override.t is failing https://travis-ci.org/pplu/aws-sdk-perl/branches
I've added a new commit that AFAIK greens everything again.
I'm not really sure if you want to do this, tho. I don't like the hacky approach but I'm really not familiar with the codebase to come up with a better solution. Maybe it's a problem we don't need to solve.
Give it a glance and maybe we can discuss it at some point.