In a use case where you happen to have an instance that is used to deploy your application to a /development and /production directory(environment).
I use AWS Shell which is an integrated shell for working with the AWS CLI.
Navigate to ~/.aws/ on a mac. If you are on a windows, you will need to google the path. In this directory you will see .credentials and .config.