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 11:34] โ€“ andrewaws:sso [31/03/2026 15:18] (current) โ€“ 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 open 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> <code>
 +$ aws configure sso --use-device-code <cr>
 +
 SSO session name (Recommended): test123 SSO session name (Recommended): test123
 SSO start URL [None]: https://d-1a2345ab23.awsapps.com/start/# SSO start URL [None]: https://d-1a2345ab23.awsapps.com/start/#
Line 17: Line 19:
  
 ABCD-EFGH 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. There are 8 AWS accounts available to you.
 Using the account ID 123412341234 Using the account ID 123412341234
Line 28: Line 36:
 aws sts get-caller-identity --profile MyDeploymentRole aws sts get-caller-identity --profile MyDeploymentRole
 </code> </code>
- {{:aws:use-device-code.png}} 
  
 +
 +===== Deriving SSO URL =====
 +
 +The URL for the SSO sign in can be derived programatically:-
  
 <code> <code>
aws/sso.1754998473.txt.gz ยท Last modified: by andrew

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki