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

后端 未结 10 508
醉话见心
醉话见心 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:24

    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..

    0 讨论(0)
  • 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
    
    0 讨论(0)
  • 2021-02-01 12:26

    Use as follows

    [profilename]
    region=us-east-1
    output=text
    

    Example cmd

    aws --profile myname CMD opts
    
    0 讨论(0)
  • 2021-02-01 12:35

    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).

    0 讨论(0)
提交回复
热议问题