I always encounter the ”the config profile could not be found” error everywhen I want to config something with AWS.
"The config profile (myname) could not be found"
Can someone give me some advice to solve the issue?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The cause: When you trying to run an AWS CLI command with a profile that isn’t set up in your AWS credentials file will result in this error.
Solution: To solve the issue, make sure the
AWS_PROFILE
environment variable is set on the machine and either unset it or set it to a profile that exists in your credentials file.Depending on your operating system, use one of the following commands to print the environment variable: