The AWS Command Line Interface (CLI) is a unified tool to manage your AWS services. With just one tool to download and configure, you can control multiple AWS services from the command line and automate them through scripts.
Often times the ~/.aws/config is having some configuration issues and needs to be reconfigured or modified. This is because there are multiple declarations for the same setting under a single role header. Therefore, editing the file manually will fix this issue. See the link below on how to reconfigure AWS CLI or find the directory.
For Windows: Here you will find the config and credentials files path. Simply modify the following below.
Modify accordingly with the right keys
– AWS Access Key ID and Access
– AWS Secret Access Key