Closed damonYuan closed 8 years ago
Hi Damon,
I have not tried to use s3-uploader
with CloudFront. You can add your own custom AWS configurations and from aws/aws-sdk-js#669 it looks like you could do it like this:
var Upload = require('s3-uploader');
process.env. AWS_ACCESS_KEY_ID = '*****';
process.env. AWS_SECRET_ACCESS_KEY = '*****';
var client = new Upload('my_s3_bucket', {
aws: {
path: 'images/',
endpoint: 'XXXXXXXX.cloudfront.net',
s3BucketEndpoint: true,
region: 'us-east-1',
},
versions: […]
});
let me try it and will let you know the result soon. Thanks for your reply
Did it work @damonYuan, if so, can you close this issue?
hi Starefossen, it works! Thanks!
how to Configuire cloudFront for AWS-SDK?