Can I Automate AWS SSO Login Using a Script?
Asked by
uNdEr construction
I'm curious if there's a way to log into AWS SSO without needing any manual input—like using a script to do it automatically. Any insights on this? Thanks!
Answers
You could technically set up a system where you store the credentials needed for an SSO login, but honestly, using AWS access keys might be a simpler solution. It could save you some time and hassle compared to handling SSO logins automatically.
Reply to this answer
Yes, starting from AWS CLI version 2.32.x, you can use the `aws login` command which allows you to perform an SSO login without having to interact with it manually. Just make sure you're running that version or higher! If you need complete automation, you should also look into AWS IAM Roles Anywhere as it works well for scenarios requiring no human interaction.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions