Every time I want to config something with AWS I get the following error :
\"The config profile (myname) could not be found\"
like : aws confi
Did you actually set up your specific user? The walkthrough setup guide in AWS explains how to set a default user, and then how to set up additional users. If you didn't complete the full setup, you'll just have a default block and your myName won't have been created..
For me it was because I had my .aws/config
file looking like this:
[profile myname]
aws_access_key_id = ....
aws_secret_access_key = ....
region=us-west-1
I think the reason is I based it off my .aws/credentials
file, which requires having [profile myname]
for Zappa and maybe some other aws/elastic beanstalk tools.
When I changed config
to this it worked great:
[myname]
aws_access_key_id = ....
aws_secret_access_key = ....
region=us-west-1
Use as follows
[profilename]
region=us-east-1
output=text
Example cmd
aws --profile myname CMD opts
Was facing similar issue and found below link more helpful then the answers provided here. I guess this is due to the updates to AWS CLI since the answers are provided.
https://serverfault.com/questions/792937/the-config-profile-adminuser-could-not-be-found
Essentially it helps to create two different files (i.e. one for the general config related information and the second for the credentials related information).