I am trying to sync entire local directory to S3 bucket which is in ap-south-1 , if the bucket is in other region .. syncing a directory is working as expected . in the ap-south-1 region also My code is not throwing any error , it is coming with grace full exit . but the folder is not getting synced / uploaded to S3 . below given my code . Please help me out to solve this . Any help will be greatly appreciated .
Hi ,
I am trying to sync entire local directory to S3 bucket which is in ap-south-1 , if the bucket is in other region .. syncing a directory is working as expected . in the ap-south-1 region also My code is not throwing any error , it is coming with grace full exit . but the folder is not getting synced / uploaded to S3 . below given my code . Please help me out to solve this . Any help will be greatly appreciated .
const AWS = require('aws-sdk'); const s3 = require('s3');
const awsS3Client = new AWS.S3( { accessKeyId: accessKeyId, secretAccessKey: secretAccessKey, region: 'ap-south-1', signatureVersion: 'v4' });
const client = s3.createClient({ s3Client: awsS3Client } );
var params = { localDir: './' + local1 deleteRemoved: false, // default false, whether to remove s3 objects // that have no corresponding local file.