undefined undefined
node.js를 위한 S3 SDK : 다운로드
s3_get.js
1 2 3 4 5 6 | var AWS = require( 'aws-sdk' ); AWS.config.region = 'ap-northeast-2' ; var s3 = new AWS.S3(); var file = require( 'fs' ).createWriteStream( 'logo.png' ); var params = {Bucket: 'codingeverybody2' , Key: 'logo.png' }; s3.getObject(params).createReadStream().pipe(file); |