Skip to content

Commit

Permalink
add info for cli updates
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Feb 10, 2025
1 parent 408c848 commit 3661828
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/how-to/aws-sso/native-sso-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,17 @@ This will setup a profile called `my-account` with my `inf-admin-t4` admin acces
AWS Organizations uses the commercial linked account alias, so you will not see an account like `ent-gov-shared-sa-prod`, but insteaad it will be its associated
account `ent-ew-shared-sa-prod`.

If you are using CLI v2.22 or later, you will need to add `--use-device-code`. A change was made in 2.22 to make PKCE the default, which makes a call to OIDC and will faile the callback from a command line. See
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html for more details:

> Proof Key for Code Exchange (PKCE) authorization is used by default for the AWS CLI starting with version 2.22.0 and must be used on devices with a browser. To continue to use Device authorization, append the --use-device-code option.
>
> `$ aws configure sso --use-device-code`

```console
% aws configure sso --profile my-account --no-browser
# % aws configure sso --profile my-account --no-browser --use-device-code # for CLI 2.22 and later
SSO session name (Recommended): ent-gov
Browser will not be automatically opened.
Please visit the following URL:
Expand Down Expand Up @@ -187,3 +196,6 @@ aws --profile my-account-eks whoami

* 1.0.1 -- 2024-03-19
- add bit about profile ent-gov and daily login

* 1.0.2 -- 2025-02-10
- update docs for changes in CLI v2.22

0 comments on commit 3661828

Please sign in to comment.