diff --git a/lib/storage/data/LocationConstraintParser.js b/lib/storage/data/LocationConstraintParser.js index 7320bda21..29a9e110f 100644 --- a/lib/storage/data/LocationConstraintParser.js +++ b/lib/storage/data/LocationConstraintParser.js @@ -102,7 +102,9 @@ function parseLC(config, vault) { if (locationObj.details.credentialsProfile) { s3Params.credentials = new AWS.SharedIniFileCredentials({ profile: locationObj.details.credentialsProfile }); - } else { + } else if (locationObj.details.credentials && + locationObj.details.credentials.accessKey && + locationObj.details.credentials.secretKey) { s3Params.accessKeyId = locationObj.details.credentials.accessKey; s3Params.secretAccessKey =