Fix AWS CLI SSO Configuration Values Error

Fix the AWS CLI error: Missing the following required SSO configuration values: sso_start_url, sso_region, sso_role_name, sso_account_id.


The error Missing the following required SSO configuration values: sso_start_url, sso_region, sso_role_name, sso_account_id. To make sure this profile is properly configured to use SSO, please run: aws configure sso likely happens if you do the following:

  • You run the aws sso login command without specifying an AWS profile.

In order to fix the error in your AWS CLI, you need to run the aws sso login command using the --profile <my-profile-name> argument like in the following example:

aws sso login --profile <my-profile-name>

Make sure to use an existing AWS profile. Your profiles can be found in the ~/.aws/config file.

If you need guidance on setting up AWS SSO correctly on your local machine and use it with the AWS CLI effectively then I would recommend you to read this guide I wrote.