Skip to content

Troubleshooting - AWS Related

AWS profile properties are not in the correct ~/.aws files

Error

Your current AWS profile properties are not in the correct files. Use the "AWS Config and Credential file sorter" tool in Settings to sort them automatically and then try again.

You may be presented with this error if your AWS profile properties are not in the correct ~/.aws files when Cloud Glance tries to save that profile. As Example, your region property might be in the ~/.aws/credentials file instead of the ~/.aws/config file. This is the error that you get when saving a profile.

Cloud Glance has a tool in the Settings section called: AWS Config and Credential file sorter.

img.png

This tool will sort your AWS profiles and rewrite the properties in your ~/.aws/credentials and ~/.aws/config files to be in the correct file.

This is needed because CloudGlance saves AWS profiles in the recommended file according to the AWS documentation. If the profile is not in the correct file, properties can be duplicate in your config and credentials file, which causes confusion to the source of truth.

The tool will do the following:

  1. Make a copy of your ~/.aws/credentials and ~/.aws/config files and store them in the same directory (so that you can manually restore them IF something went wrong)
  2. Clear both files (all comments will be lost)
  3. Sort and place each profile property in the right file