AWS : The config profile (MyName) could not be found

后端 未结 10 515
醉话见心
醉话见心 2021-02-01 11:52

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

10条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-01 12:25

    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
    

提交回复
热议问题