Skip to content

aws-cli not using default browser for macOS #10693

Description

@pbtura

Describe the bug

After updating to macOS 27, I had to reinstall a few libraries including aws-cli. I installed the library using
curl -fsSL https://awscli.amazonaws.com/v2/install.sh | sudo bash -s -- --system
Now when I try to do an sso login ( aws sso login --profile myprofile ) aws-cli is opening the window in Firefox rather than Chrome. I double checked my system settings and Google Chrome is set as the default browser. While this is not a show stopper, it is annoying since I have to re-signin to my accounts in a browser I don't usually use.

Regression Issue

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

Expected Behavior

aws-cli should open a window using the default browser defined in the OS settings

Current Behavior

aws-cli opens the window in a different browser.

Reproduction Steps

aws sso login --profile myprofile

Possible Solution

No response

Additional Information/Context

No response

CLI version used

aws-cli/2.37.1 Python/3.14.6 Darwin/27.0.0 script-exe/arm64

Environment details (OS name and version, etc.)

MacOS 27.0 (26A428), arm CPU

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.needs-triageThis issue or PR still needs to be triaged.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions