amazon web services - Installing AWS key to use S3 -
i did aws configure
, inputted key , secret key. have checked account exists when ran: aws iam list-account-aliases
, alias appeared.
however, when try upload file aws, recieving error:
/users/kchen/campaiyn-web/node_modules/skipper-s3/node_modules/knox/lib/client.js:197 if (!options.key) throw new error('aws "key" required'); ^ error: aws "key" required @ new client (/users/kchen/campaiyn-web/node_modules/skipper-s3/node_modules/knox/lib/client.js:197:27) @ function.exports.createclient (/users/kchen/campaiyn-web/node_modules/skipper-s3/node_modules/knox/lib/client.js:925:10) @ writable.onfile (/users/kchen/campaiyn-web/node_modules/skipper-s3/index.js:248:22) @ dowrite (_stream_writable.js:292:12) @ writeorbuffer (_stream_writable.js:278:5) @ writable.write (_stream_writable.js:207:11) @ transform.ondata (_stream_readable.js:528:20) @ emitone (events.js:77:13) @ transform.emit (events.js:169:7) @ readableaddchunk (_stream_readable.js:146:16) @ transform.readable.push (_stream_readable.js:110:10) @ transform.push (_stream_transform.js:128:32) @ /users/kchen/campaiyn-web/node_modules/sails/node_modules/skipper/standalone/upstream/build-renamer-stream.js:49:19 @ object.opts.saveas (/users/kchen/campaiyn-web/node_modules/sails/node_modules/skipper/standalone/upstream/prototype.upload.js:71:7) @ determinebasename (/users/kchen/campaiyn-web/node_modules/sails/node_modules/skipper/standalone/upstream/build-renamer-stream.js:32:17) @ transform.__renamer__._transform (/users/kchen/campaiyn-web/node_modules/sails/node_modules/skipper/standalone/upstream/build-renamer-stream.js:40:7)
i feel key not installed correctly or looking @ incorrectly?
the library using (skipper) not know how pick credentials. recommend either passing credential in explicitly or switching using nodejs aws sdk supports this.
Comments
Post a Comment