You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varAWS=require('aws-sdk');vars3=newAWS.S3();// creds.fetch() just returns an object with the access key and secret keyAWS.config.update(creds.fetch());vars3Stream=require('s3-upload-stream')(s3);varup=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.
The text was updated successfully, but these errors were encountered:
Getting a weird token expired error:
Yields:
The creds are good and are tied to an IAM with full S3 access.
The text was updated successfully, but these errors were encountered: