What format is ~/.aws/credential & config file

346 views Asked by At

I was wondering if there was a name for the data format that the AWS credentials and config files are in.

A sample ~/.aws/config file like this:

[default]
region = eu-west-1

[profile1]
region = eu-central-2
2

There are 2 answers

2
Yogesh_D On BEST ANSWER

I believe it is a take on the INI file format. However I am not sure if the SDK and eventually configparser in python supports all the conventions of a INI file like the ; based comments etc.

0
Marcin On

AWS CLI is written in Python, and the format is standard python format supported by its configparser. Not sure if there is any offical name for it, except that it is similar to "Microsoft Windows INI files".