aws cli says profile not found after the sso login
aws s3 ls worked yesterday, today it says The config profile (prod) could not be found. AWS CLI v2.15.0. ~/.aws/config has [profile prod] with sso_role_name and sso_start_url. I ran aws sso login --profile prod and it said successfully logged in. AWS_PROFILE is set to prod in my shell. What would make the CLI not see the profile? I'm on a Mac, if that matters for where the config lives.
4 replies