After enjoying this script for a while I have found that it was missing support for the AWS China partition. This is due to the partition part of the arns being hardcoded to "aws" as well as the console/federation urls only supporting the global AWS partition.
After enjoying this script for a while I have found that it was missing support for the AWS China partition. This is due to the partition part of the arns being hardcoded to "aws" as well as the console/federation urls only supporting the global AWS partition.
In order to remedy this situation I have submitted a pull request (https://github.com/LEGO/assume-aws-sso-role/pull/14) to add support for the AWS China partition.