aws / aws-sdk

Landing page for the AWS SDKs on GitHub
https://aws.amazon.com/tools/
Other
68 stars 12 forks source link

Add better error message for failed cross-partition requests #648

Open tim-finnigan opened 7 months ago

tim-finnigan commented 7 months ago

As reported in https://github.com/aws/aws-sdk/issues/647 and https://stackoverflow.com/a/54837250, there is a lot of confusion when making requests to GovCloud regions from non-GovCloud regions. The cross-partition requests fail because "You cannot use IAM credentials from one partition to interact with resources in a different partition." This results in authorization errors that vary across services, for example:

image

Would the SDK teams be able to a clearer error message for this scenario?