1

I am currently using aws-sdk to download file from S3 using node.js.

var s3 = new AWS.S3();

var params = {
    Bucket: bucket,
    Key: directory + file,
    Expires: 300
};

var url = s3.getSignedUrl('getObject', params);
res.redirect(url);

And it is giving me a link with https.

https://mybucket.s3.amazonaws.com/.......qNBK%2BzP48%3D

Is there a way to get link with http instead of https? Thanks.

Khay
  • 1,530
  • 13
  • 28

1 Answers1

1

To disable SSL download, set false in AWS config.

AWS.config.update({
    accessKeyId: key,
    secretAccessKey: secret,
    sslEnabled: false
});
Khay
  • 1,530
  • 13
  • 28