Add S3 region option (#1469)

This commit is contained in:
Jordan Jethwa 2017-02-22 23:13:40 -08:00 committed by Peter Hedenskog
parent c7c7cbbcbb
commit 21c252f3c8
2 changed files with 6 additions and 1 deletions

View File

@ -19,7 +19,8 @@ function getClient(options) {
multipartUploadSize: options.s3.multipartUploadSize || 15728640,
s3Options: {
accessKeyId: options.s3.key,
secretAccessKey: options.s3.secret
secretAccessKey: options.s3.secret,
region: options.s3.region || 'us-standard'
}
});
} else {

View File

@ -396,6 +396,10 @@ module.exports.parseCommandLine = function parseCommandLine() {
type: 'boolean',
group: 's3'
})
.option('s3.region', {
describe: 'The S3 region',
group: 's3'
})
/**
Html options
*/