aws / aws/aws-cli

Add better error message for failed cross-partition requests

Open
#9,018 1 comment 0 reactions 0 assignees View on GitHub
cross-sdk feature-request p3
Dominant language
Python
Stars
17.3k
Forks
4.6k
Avg merge
1d 2h
Merged PRs (30d)
13

Description

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](https://docs.aws.amazon.com/whitepapers/latest/aws-fault-isolation-boundaries/partitions.html)." This results in authorization errors that vary across services, for example:

![image](https://github.com/aws/aws-cli/assets/87778557/fe2ff2dd-64be-48ab-b613-9604dfe12c1b)

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.