Fall back to old AWS env vars if present

This commit is contained in:
Simon Detheridge 2019-12-17 09:57:51 +00:00
parent b7e098208f
commit 0b3b71b857

View file

@ -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: