File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ config.development = {
2121 s3 : {
2222 accessKeyId : process . env . AWS_ACCESS_KEY_ID ,
2323 secretAccessKey : process . env . AWS_SECRET_ACCESS_KEY ,
24+ sessionToken : process . env . AWS_SESSION_TOKEN , //(optional)
2425 bucketName : process . env . BUCKET_NAME ,
2526 region : process . env . REGION ,
2627 downloadUrl : process . env . DOWNLOAD_URL , // binary files download host address.
Original file line number Diff line number Diff line change @@ -231,6 +231,7 @@ common.uploadFileToS3 = function (key, filePath) {
231231 AWS . config . update ( {
232232 accessKeyId : _ . get ( config , 's3.accessKeyId' ) ,
233233 secretAccessKey : _ . get ( config , 's3.secretAccessKey' ) ,
234+ sessionToken : _ . get ( config , 's3.sessionToken' ) ,
234235 region : _ . get ( config , 's3.region' )
235236 } ) ;
236237 var s3 = new AWS . S3 ( {
You can’t perform that action at this time.
0 commit comments