How to fix the error - botocore.exceptions.ProfileNotFound: The config profile (AnyProfileName) could not be found?
This occurs when you do aws configure in cmd. It is caused by setting the following environment variable: AWS_PROFILE = AnyProfileName Removing this environment variable is the fix. After removing, if you do aws configure , aws would be configured for the default profile rather than AnyProfileName .