Open saadqc opened 7 years ago
I'll take a look into this. I have somewhat dropped the ball and haven't made an update to the versions of this. Expect an update soon.
Awesome! Thank You.
@saadqc - Can you post the structure of your config.awscredentials
?
By default, the initial constructor takes in SSLEnabled
as per the AWS SDK:
http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html
So:
var s3 = require('gulp-s3-upload')({
'accessKeyId': 'YOURACCESSKEYID',
'secretAccessKey': 'YOURSECRET',
'sslEnabled': true,
/* any other necessary options to enable SSL */
});
Here is the structure:
var aws_credentials= { 'accessKeyId': 'YOURACCESSKEYID', 'secretAccessKey': 'YOURSECRET' };
Regarding sslEnabled option. Yes, I set that to false/true but that didn't work in my case.
Also, few things that I tried to get it working but no luck with that too. process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"; https://stackoverflow.com/a/21961005/2490859
Did you try on Node >= 8.0 version?
I am trying to upload static files to S3. It works with node 4.10 but throws following error with 8.1.2
here is the task
I am sure that I have access to S3. As I can update files with node 4.1.0 version. The issue with SSL. Can we simply put an option to use SSL or not? like in aws sdk we can use sslEnabled: false