Skip to content
ohsudo, Home

Tags

#aws-cli

Unable to locate credentials
Cloud

AWS CLI "Unable to locate credentials": where the CLI looks, and why it found nothing

Fix AWS CLI "Unable to locate credentials": check the profile and user, environment variables, SSO and aws login, EC2 instance roles, IMDS in containers, and cron jobs.

Beginner · 4 min read