From 0b3b71b857d2fb6a2b3483916f52e9fa92eda7c8 Mon Sep 17 00:00:00 2001 From: Simon Detheridge Date: Tue, 17 Dec 2019 09:57:51 +0000 Subject: [PATCH] Fall back to old AWS env vars if present --- services/filestore/config/settings.defaults.coffee | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/services/filestore/config/settings.defaults.coffee b/services/filestore/config/settings.defaults.coffee index 95256a33d6..206f932a76 100644 --- a/services/filestore/config/settings.defaults.coffee +++ b/services/filestore/config/settings.defaults.coffee @@ -1,5 +1,12 @@ Path = require "path" +# environment variables renamed for consistency +# use AWS_ACCESS_KEY_ID-style going forward +if process.env['AWS_KEY'] && !process.env['AWS_ACCESS_KEY_ID'] + process.env['AWS_ACCESS_KEY_ID'] = process.env['AWS_KEY'] +if process.env['AWS_SECRET'] && !process.env['AWS_SECRET_ACCESS_KEY'] + process.env['AWS_SECRET_ACCESS_KEY'] = process.env['AWS_SECRET'] + settings = internal: filestore: