xervoio / aws-s3-size Goto Github PK
View Code? Open in Web Editor NEWThis module calculates the total size of a folder inside of S3.
This module calculates the total size of a folder inside of S3.
s3sizer is throwing error for the bucket folder which is AES256 encrypted on AWS
Here is my error:
{ [TimeoutError: Missing credentials in config]
I20160903-14:46:41.268(-4)? message: 'Missing credentials in config',
I20160903-14:46:41.268(-4)? code: 'CredentialsError',
I20160903-14:46:41.269(-4)? time: Sat Sep 03 2016 14:46:41 GMT-0400 (EDT),
I20160903-14:46:41.269(-4)? originalError:
I20160903-14:46:41.269(-4)? { message: 'Could not load credentials from any providers',
I20160903-14:46:41.269(-4)? code: 'CredentialsError',
I20160903-14:46:41.269(-4)? time: Sat Sep 03 2016 14:46:41 GMT-0400 (EDT),
I20160903-14:46:41.269(-4)? originalError:
I20160903-14:46:41.270(-4)? { message: 'Connection timed out after 1000ms',
I20160903-14:46:41.270(-4)? code: 'TimeoutError',
I20160903-14:46:41.270(-4)? time: Sat Sep 03 2016 14:46:41 GMT-0400 (EDT) } } }
Here is my code
AWS.config.update
accessKeyId: Meteor.settings.AWSAccessKeyId
secretAccessKey: Meteor.settings.AWSSecretAccessKey
region: 'US Standard'
s3 = new AWS.S3()
s3Sizer = new S3Sizer({"s3": s3})
s3Sizer.getFolderSize 'bucket.name', directory, (err, size) ->
if err
console.log(err)
else
console.log(size)
I use the same s3 object to delete files from the bucket and it works fine. How come with your package I keep getting this error and it does not work at all.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.