Skip to content

aws sso login --sso-session <your-china-sso-session> does not work anymore #10464

Description

@wjonkheijm

Describe the bug

aws-cli/2.35.14 Python/3.14.6 Darwin/25.5.0 source/arm64
this version gives a Failed to resolve start URL: HTTP 404 on chinese urls in .aws/config.

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

successful login

Current Behavior

aws: [ERROR]: An error occurred (Configuration): Failed to resolve start URL: HTTP 404

Reproduction Steps

in .aws/config:
[sso-session chinasession]
sso_start_url = https://start.home.awsapps.cn/directory/
sso_region = cn-northwest-1
sso_registration_scopes = sso:account:access

aws sso login --sso-session chinasession

Possible Solution

awscli/customizations/sso/resolve.py
this has
_AWS_OWNED_SUFFIXES = (
'.app.aws',
'.portal.amazonaws.com',
'.awsapps.com',
)

Adding '.awsapps.cn', solves it for me.

Additional Information/Context

No response

CLI version used

aws-cli/2.35.14 Python/3.14.6 Darwin/25.5.0 source/arm64

Environment details (OS name and version, etc.)

macos 26.5.1

Metadata

Metadata

Labels

bugThis issue is a bug.p1This is a high priority issuesso

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions