Skip to content

Initialization doesn't like provided SSO start url #1235

@swirle13

Description

@swirle13

Output of aws-sso version:

AWS SSO CLI Version 2.0.3 -- Copyright 2021-2025 Aaron Turner
5c1f920359c675b7ac7e7efb2b7459553207287e (v2.0.3) built at 2025-05-29T15:11:31+0000

Describe the bug:
When initializing aws-sso-cli via aws-sso, pasting in the SSO start URL value as copied directly from the AWS Access Portal, it fails to parse the value. URL is in format of https://a-bcdef12345.awsapps.com/start/#. Only when deleting https:// does it accept the value.

To Reproduce:

  1. aws-sso
  2. Copy SSO start URL from AWS Access Portal, looks like https://a-bcdef12345.awsapps.com/start/#
  3. Response of ERROR unable to resolve host=https://a-bcdef12345.awsapps.com/start/#

Note: You do not need to redact AWS AccountIDs from outputs or config.
Per Amazon,
"While account IDs, like any identifying information, should be
used and shared carefully, they are not considered secret,
sensitive, or confidential information."

Expected behavior:
Allow parsing of URL as provided by AWS.

Screenshots:

Image

Desktop (please complete the following information):

  • OS: Debian GNU/Linux (dev container)
  • Version: 12.10 (bookworm)

Additional context:
I would think the program would accept the value as copied directly from the access portal. Seems a bit cumbersome to have to change the value. I would think it would accept and remove the scheme, delimiter, and double slash, https:// from the value provided.

Contents of ~/.aws-sso/config.yaml:

No such file or directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions