简体   繁体   中英

AWS CLI: The config profile (example) could not be found

I'm trying to setup an new named profile using the awscli

I used aws configure --profile example to set the profile up but I left everything as the default

Now I'm getting The config profile (example) could not be found

I even tried creating and modifying the ~\\.aws\\config file with the following but to no avail

[example]
region=eu-west-1
output=text

Any command I try to execute will result in the above error

I also tried reinstalling the awscli

Help is much appreciated, thanks!

FWIR if you leave the defaults then it won't create the profile since the defaults are all NONE .

Your format is not quite correct for creating the profile configuration manually.

It should be

[profile example]
region=eu-west-1
output=text

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM