- Newest
- Most votes
- Most comments
Okay I got the proper command: aws configure export-credentials --profile sso-profile --format env
https://github.com/aws/aws-cli/issues/9430#issuecomment-2789828499
answered a year ago
Hello.
Although it is a third-party tool, you can easily obtain IAM Identity Center credentials using a tool called aws-vault.
Using such an external tool will allow you to set things like session tokens without using your own scripts.
After logging in to the IAM Identity Center, you can check the session token and other information from the UI, but if you want to do it with a script, you will have to use a script you created or a third-party tool.
https://github.com/99designs/aws-vault/blob/master/USAGE.md#single-sign-on-sso
Access token for SSO appear in the AWS login console. On your sign in page, you will see the list of accounts, your role and next to it will be the Access Keys link.
Sure, I'm trying to do some simple automation with the CLI tools
Relevant content
asked 3 years ago
asked 3 years ago

Would be great if the AWS CLI supported this functionality. It already has it internally it should just expose it.