aws:sso
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| aws:sso [12/08/2025 11:34] โ andrew | aws: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 sso has changed, so if you are running this on a headless system over ssh for example, use '' |
| < | < | ||
| + | $ aws configure sso --use-device-code <cr> | ||
| + | |||
| SSO session name (Recommended): | SSO session name (Recommended): | ||
| SSO start URL [None]: https:// | SSO start URL [None]: https:// | ||
| Line 17: | Line 19: | ||
| ABCD-EFGH | ABCD-EFGH | ||
| + | </ | ||
| + | {{: | ||
| + | |||
| + | Click Allow Access, you can then close your tab / browser session. | ||
| + | |||
| + | < | ||
| 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 | ||
| </ | </ | ||
| - | | ||
| + | |||
| + | ===== Deriving SSO URL ===== | ||
| + | |||
| + | The URL for the SSO sign in can be derived programatically: | ||
| < | < | ||
aws/sso.1754998473.txt.gz ยท Last modified: by andrew
