User Tools

Site Tools


aws:sso

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
aws:sso [12/08/2025 10:54] andrewaws:sso [18/09/2025 15:27] (current) – [Automating SSO] andrew
Line 1: Line 1:
 ====== Automating SSO ====== ====== Automating SSO ======
  
-AWS sso has changed, so if you are running this on a headless system over ssh for example, use ''aws configure sso –-use-device-code''. This will produce an option to openn a browser and approve access there.+AWS sso has changed, so if you are running this on a headless system over ssh for example, use ''aws configure sso –-use-device-code''. This will produce an option to open a browser and approve access there.
  
 +
 +<code>
 +SSO session name (Recommended): test123
 +SSO start URL [None]: https://d-1a2345ab23.awsapps.com/start/#
 +SSO region [None]: eu-west-1
 +SSO registration scopes [sso:account:access]:
 +Attempting to automatically open the SSO authorization page in your default browser.
 +If the browser does not open or you wish to use a different device to authorize this request, open the following URL:
 +
 +https://d-1a2345ab23.awsapps.com/start/#/device
 +
 +Then enter the code:
 +
 +ABCD-EFGH
 +</code>
 +{{:aws:use-device-code.png?200}}
 +
 +Click Allow Access, you can then close your tab / browser session.
 +
 +<code>
 +There are 8 AWS accounts available to you.
 +Using the account ID 123412341234
 +There are 3 roles available to you.
 +Using the role name "AdministratorAccess"
 +Default client Region [None]: eu-west-1
 +CLI default output format (json if not specified) [None]: json
 +Profile name [AdministratorAccess-123412341234]: MyDeploymentRole
 +To use this profile, specify the profile name using --profile, as shown:
 +
 +aws sts get-caller-identity --profile MyDeploymentRole
 +</code>
 +
 +
 +===== Deriving SSO URL =====
 +
 +The URL for the SSO sign in can be derived programatically:-
  
 <code> <code>
aws/sso.1754996046.txt.gz · Last modified: by andrew

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki