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 logincommand without specifying an AWS profile.
To fix the error in your AWS CLI, 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 the profile block itself looks corrupted or half-edited, it's often simpler to remove it and start over than to patch each missing value.
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.
Frequently Asked Questions
Why does the CLI say SSO configuration values are missing?
Where do I find my profile names?
When should I run aws configure sso?
Can I avoid passing a profile every time?
Next step