Skip to content

feat(cli): infer pro license when identity provider and region are sp… #1369

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

Conversation

Konippi
Copy link
Contributor

@Konippi Konippi commented Apr 26, 2025

Issue #, if available:
resolve #1352

Description of changes:
This PR improves the user experience by automatically inferring Pro license when users provide both --identity-provider and --region parameters during login.

I think --license is a necessary option regardless of pro/free.
Therefore, I thought it would be good to automatically determine that it is a pro license when --identity-provider and --region are specified.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@Konippi Konippi requested a review from a team as a code owner April 26, 2025 08:03
@jsamuel1
Copy link
Collaborator

Thanks. This matches my expectation as a user.

@codecov-commenter
Copy link

codecov-commenter commented Apr 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 16.75%. Comparing base (93ca9c2) to head (dd91be7).
Report is 59 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1369       +/-   ##
===========================================
+ Coverage   14.29%   16.75%    +2.45%     
===========================================
  Files        2335      213     -2122     
  Lines      201929    20704   -181225     
  Branches   182293      871   -181422     
===========================================
- Hits        28860     3468    -25392     
+ Misses     171663    17236   -154427     
+ Partials     1406        0     -1406     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Konippi Konippi force-pushed the infer-pro-lisence-when-required-options-are-specified branch from 50a052d to dd91be7 Compare May 1, 2025 06:08
@brandonskiser brandonskiser merged commit cb690ff into aws:main May 7, 2025
10 of 11 checks passed
@brandonskiser
Copy link
Contributor

Thank you for the contribution!

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.

Q Login with Identity Provider on commandline asks for Pro/Free.
4 participants