-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid character '<' error when running aws-sso console against China AWS SSO #634
Comments
So best guess this is because |
@deanmax I think this PR should fix this issue. I don't have access right now for .cn so I can't exactly reproduce your issue. If you feel like giving it a try and letting me know that would be great: #635 LMK if you'd like me to build you a binary and attach it to this ticket. Just let me know if you're on an Intel or ARM Mac. |
replied in #635 (comment) |
Yeah, this is specific to China regions. AWS claims Identity Center is available in China: https://aws.amazon.com/about-aws/whats-new/2023/09/aws-iam-identity-center-beijing-ningxia-regions/ But they don't actually list the endpoints for Beijing or Ningxia: https://docs.aws.amazon.com/general/latest/gr/sso.html Irony of course is the latter is linked by the announcement saying this is where to find the new endpoints. :-/ Anyways, I'm going to have to open a support ticket with Amazon. My personal account is on the free tier and my company has no AWS China presence, so might take a while. If you have an Enterprise support contract with AWS, you might get a faster response if you ask them what are the Beijing/Ningxia IAM Identity Center endpoints. |
Also add additional trace debug logging for failures. Refs: #634
@deanmax So I dug around the AWS docs and I think I found the info I need. It's not actually documented, on the AWS website as far as I can tell, but I've made a pretty good educated guess. If it doesn't work, log with There are probably other bugs hiding with the China/US Gov partitions though. |
commented in #635 |
Also add additional trace debug logging for failures. Refs: #634
Output of
aws-sso version
:Describe the bug:
If it's first time login, an Authorization Request browser window will pop up correctly
However after you click "Allow", you'll see the above error in the terminal.
aws-sso --sso=default console --account=1122334455 --role=sso-devops -duration=720
works fineaws-sso --sso=china eval --account=1122334455 --role=CHINA-DEVOPS
works fineTo Reproduce:
~/.aws-sso/config.yaml
as describedaws-sso --sso=china console --account=1122334455 --role=CHINA-DEVOPS --duration=720
.Expected behavior:
AWS console browser window popped up after running
aws-sso
console commandScreenshots:
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context:
Add any other context about the problem here.
Contents of
~/.aws-sso/config.yaml
:The text was updated successfully, but these errors were encountered: