New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws configure --profile "profilename" prompts "The config profile (profilename) could not be found" #4626
Comments
@BruceWangNo1, I'm sorry but I can't repro your problem. The
|
@bisdavid Thank you for your help. Probably not worth the effort to dive into this. I got a temporary fix anyway. |
For the record, I'm getting the same thing too - instead of preparing to write the profile, it looks like As documented here. And yes, we can work around it by manually editing the config files, but there's a reason we have this CLI command.
|
I am also able to repro this
|
I can reproduce this as well:
|
@lavignes @steve-estes and @dfezzie , |
I also seem to get this - but only if the AWS_PROFILE environment variable is also set (to a profile that does not yet exist). If I then unset this var then the I noticed it when I ran the command Hope that helps... |
Ah I see, thanks @ch-gareth ! so if you have a $AWS_PROFILE set it won't let you configure a new profile through |
Hmmm, sort of. If $AWS_PROFILE is set to a profile that exists / is defined then it seems OK for me. It just throws an error if that var is set to a profile which isn't configured (yet). Which makes sense really from that error message. |
@ch-gareth for me I don't have the
I'm 99% sure that is the bug here. It is supposed to do that. |
Hi @lavignes & @KaibaLopez. Yes, I see. |
Thanks @ch-gareth I encountered this for |
Confirmed that issue no longer exists as initially described in v1 or v2. Closing for now, but please feel free to @ me if anyone is still having problems! |
|
aws-cli/1.16.276 Python/2.7.14 Darwin/18.0.0 botocore/1.13.12
According to https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html#cli-quick-configuration-multi-profiles , this configure command should work. However, error message reads: "The config profile (profilename) could not be found"
Temporary fix:
vim ~/.aws/config
and add "[profilename]" and then rerun the configure command
The text was updated successfully, but these errors were encountered: