The AWS Command Line Interface tool from Amazon (for macOS available here on Homebrew) makes it possible to login to AWS through a SSO (Single Sign-On) identity provider such as Okta. However, if you login via "aws sso login
" the AWS credentials file (located at ~/.aws/credentials
) is not updated, this is a problem for tools/libraries that rely on that file.
This script is a wrapper around aws sso login
that also updates the .aws/credentials
file. It only requires AWS CLI and Python 3 to run.
Make sure your .aws/config
file has a section (or multiple sections) that have SSO configuation options.
For example: