Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TokenExpired Error #39

Open
recursivefunk opened this issue May 21, 2015 · 0 comments
Open

TokenExpired Error #39

recursivefunk opened this issue May 21, 2015 · 0 comments

Comments

@recursivefunk
Copy link

Getting a weird token expired error:

var AWS = require('aws-sdk');
var s3  = new AWS.S3();

 // creds.fetch() just returns an object with the access key and secret key
AWS.config.update( creds.fetch() );

var s3Stream  = require('s3-upload-stream')( s3 );

var up = s3Stream.upload({
     Bucket: bucket,
     Key: key,
     ACL: 'public-read',
     StorageClass: 'REDUCED_REDUNDANCY',
     ContentType: 'application/javascript'
 });

fs.createReadStream( './foo.json'  ).pipe( up );

Yields:

ExpiredToken: The provided token has expired.

The creds are good and are tied to an IAM with full S3 access.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant