Skip to content

[Feature] Add support for specifying SSO instance via -S/--sso flag for aws-sso-profile#1264

Merged
synfinatic merged 6 commits intosynfinatic:mainfrom
l2D:feat/add-support-sso-flag-for-aws-sso-profile-function
Sep 2, 2025
Merged

[Feature] Add support for specifying SSO instance via -S/--sso flag for aws-sso-profile#1264
synfinatic merged 6 commits intosynfinatic:mainfrom
l2D:feat/add-support-sso-flag-for-aws-sso-profile-function

Conversation

@l2D
Copy link
Contributor

@l2D l2D commented Aug 26, 2025

This pull request adds support for specifying an SSO instance when using the aws-sso-profile shell helper, making it easier to work with multiple AWS SSO configurations.

The feature is available via the new -S/--sso flag, and usage instructions have been updated in the documentation.

Example usage

# Usage
aws-sso-profile
Usage: aws-sso-profile [-S|--sso <sso-instance>] <profile>

# Basic usage with the default SSO instance
aws-sso-profile MyProfile

# Using a specific SSO instance (v2.1.0+)
aws-sso-profile -S Production MyProfile
aws-sso-profile --sso Production MyProfile

Related

Changes:

  • Added support for the -S/--sso flag to the aws-sso-profile shell helper, allowing users to specify an SSO instance when assuming a profile. This enables seamless use with multiple AWS organizations or duplicate profile names. (internal/helper/bash_profile.sh, internal/helper/zshrc.sh, internal/helper/aws-sso.fish) [1] [2] [3]

Documentation:

  • Updated docs/commands.md and docs/quickstart.md with usage examples and explanations for the new -S/--sso flag, clarifying its benefits and how to use it. [1] [2]

Changelog:

  • Added a changelog entry describing the new -S/--sso flag support in the aws-sso-profile helper.

@l2D l2D force-pushed the feat/add-support-sso-flag-for-aws-sso-profile-function branch from ca4d0ea to 188e9be Compare August 28, 2025 03:59
l2D added 3 commits August 28, 2025 04:05
…S/--sso flag

- enables specifying an sso instance when assuming a profile
- enhances `aws-sso-profile` to accept `-S` or `--sso` flag
- allows users to target specific sso instances for authentication
@l2D l2D force-pushed the feat/add-support-sso-flag-for-aws-sso-profile-function branch from 188e9be to 4373ad7 Compare August 28, 2025 04:07
docs/commands.md Outdated

The `-S` or `--sso` flag allows you to specify which SSO instance to use when you
have multiple SSO configurations. This is particularly useful when working with
multiple AWS organizations or when the profile name exists in multiple SSO instances.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't think we actually support same profile name in multiple instances since profiles are global in the ~/.aws/config

Copy link
Contributor Author

@l2D l2D Aug 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ This was resolved by

Commit: a24027a

- remove incorrect phase for support same profile name in multiple instances.
@l2D l2D requested a review from synfinatic August 30, 2025 02:36
- Updates the PR link in the changelog for the
`aws-sso-profile` feature to provide accurate
reference.
@l2D l2D force-pushed the feat/add-support-sso-flag-for-aws-sso-profile-function branch from e28510d to 64be27f Compare September 1, 2025 04:30
@synfinatic synfinatic merged commit 2fe03c1 into synfinatic:main Sep 2, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants