Nothing is configured for this user or profile
CommonNo keys in the environment, and the profile in use (default, or the one named by --profile or AWS_PROFILE) has no keys, no SSO settings and no role to assume.
Confirm
aws configure list aws configure list --profile NAME
access_key <not set>, and a profile and LOCATION you did not expect
Fix
- Configure the profile you mean: aws configure sso for IAM Identity Center, or aws configure for access keys on a personal machine.
- Select it explicitly with --profile NAME or AWS_PROFILE=NAME, and check the spelling: a misspelled name gives The config profile (NAME) could not be found.
aws configure list
Shows each value and where it came from; it reads local settings and makes no AWS call.