diff --git a/lib/amazonka/CHANGELOG.md b/lib/amazonka/CHANGELOG.md index 6a8e7ab8103..6b1e6d8a06c 100644 --- a/lib/amazonka/CHANGELOG.md +++ b/lib/amazonka/CHANGELOG.md @@ -9,7 +9,7 @@ - New package `amazonka-dynamodb-attributevalue`: `amazonka-dynamodb`and `amazonka-dynamodb-streams` now share a common `AttributeValue` type, removing the need to manually convert between them. Each SDK re-exports it, so no code changes should be necessary, but manual conversion between the "regular" and "streams" `AttributeValue` can be removed. (thanks @dalpd) [\#992](https://github.com/brendanhay/amazonka/pull/992) - `amazonka`: Add support for `AWS_SHARED_CREDENTIALS_FILE` and `AWS_CONFIG_FILE` environment variables to override the - default paths `$HOME/.aws/credentials` and `$HOME/.aws/config` [\#951](https://github.com/brendanhay/amazonka/pull/951) + default paths `$HOME/.aws/credentials` and `$HOME/.aws/config` [\#951](https://github.com/brendanhay/amazonka/pull/951). The typo in `AWS_CONFIG_FILE` was fixed in [\#1007](https://github.com/brendanhay/amazonka/pull/1007). ### Fixed diff --git a/lib/amazonka/src/Amazonka/Auth/ConfigFile.hs b/lib/amazonka/src/Amazonka/Auth/ConfigFile.hs index f438b599b23..f9ca0109891 100644 --- a/lib/amazonka/src/Amazonka/Auth/ConfigFile.hs +++ b/lib/amazonka/src/Amazonka/Auth/ConfigFile.hs @@ -320,7 +320,7 @@ fromFileEnv :: fromFileEnv env = liftIO $ do profile <- Environment.lookupEnv "AWS_PROFILE" <&> maybe "default" Text.pack conf <- - Environment.lookupEnv "AWS_CONFIG_File" + Environment.lookupEnv "AWS_CONFIG_FILE" >>= maybe (configPathRelative "/.aws/config") pure cred <- Environment.lookupEnv "AWS_SHARED_CREDENTIALS_FILE"