[grunt/s3] upgrade to aws_s3 package, grunt-s3 package is broken

This commit is contained in:
spalger
2017-11-14 17:00:06 -06:00
parent db50cde805
commit 9b844b32b0
3 changed files with 12 additions and 11 deletions

26
grunt/config/aws_s3.js Normal file
View File

@ -0,0 +1,26 @@
var config = {};
try {
config = require('../../.aws-config.json');
} catch (e) {}
module.exports = {
upload_archives: {
files: [
{
expand: true,
cwd: '<%= distDir %>/archives',
src: '*',
dest: 'elasticsearch/elasticsearch-js/'
},
],
options: {
accessKeyId: config.key || process.env.AWS_KEY,
secretAccessKey: config.secret || process.env.AWS_SECRET,
bucket: 'download.elasticsearch.org',
access: 'public-read',
params: {
'ContentDisposition': 'attachment'
}
}
}
};