Browse Source

Comment to assert that AWS CLI really illogically prefers default config file over AWS_CONFIG_FILE

Source commit: e70eaf14aadbb766214d5098deeb7bbd553ae515
Martin Prikryl 2 years ago
parent
commit
5d462e92db
1 changed files with 1 additions and 0 deletions
  1. 1 0
      source/core/S3FileSystem.cpp

+ 1 - 0
source/core/S3FileSystem.cpp

@@ -84,6 +84,7 @@ UnicodeString GetS3ConfigValue(const UnicodeString & Name, UnicodeString * Sourc
         UnicodeString ConfigFileName = GetEnvironmentVariable(AWS_CONFIG_FILE);
         UnicodeString ProfilePath = GetShellFolderPath(CSIDL_PROFILE);
         UnicodeString DefaultConfigFileName = IncludeTrailingBackslash(ProfilePath) + L".aws\\credentials";
+        // "aws" cli really prefers the default location over location specificed by AWS_CONFIG_FILE
         if (FileExists(DefaultConfigFileName))
         {
           ConfigFileName = DefaultConfigFileName;