- Newest
- Most votes
- Most comments
I removed AWS Environment variables and it started working, Not sure what added them there, they had values containing the word "DUMMY"
Hi,
Your update seems to be correct. When you want to use named profiles, --profile
option must be explicitly specified [1].
If you do not want to specify the profile on the command line every time, consider using the same credential as default profile if it's okay, or consider using an appropriate alias on your shell configuration.
You can find a comprehensive guidance on configuring AWS CLI credentials and profiles on the official documentation [1].
References
[1] Using named profiles - https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html#cli-configure-files-using-profiles
Sounds like you found the solution for you. Just thought I'd post another solution that worked for me when I got this error.
This error can happen if your Access Key is deactivated. I had to login to the Web Console, and reactivate my key (and eventually just generated a new one, and removed the old one).