s3-bucket

Streaming videos from S3 bucket

▼魔方 西西 提交于 2020-07-17 06:45:09
问题 I am working on video streaming with nodejs server. I have used Amazon S3 bucket as video storage. While nodejs is running in an Amazon EC2 instance. In order to stream a specific video file in response to a client's request, the file needs to be downloaded from S3 bucket to EC2 instance (nodejs server) first, which is a time consuming process and client has to wait for several seconds before the first video segment is sent from nodejs to client. I am looking for a way to remove the

How change S3 file ownership while cross-account uploading

安稳与你 提交于 2020-06-25 10:40:30
问题 I have an application which upload ( copy ) some files to a S3 bucket in another AWS account, I use copyObject command from AWS SDK ( Nodejs ) var params = { Bucket: "MyBucket_AccountB", CopySource: encodeURI('/Accunt_A_Bocket/file.png'), Key: "file.png", ACL: 'bucket-owner-full-control' }; s3.copyObject(params, function(err, datas) { if (err) console.log(err, err.stack); // an error occurred else console.log(datas); // successful response }); This code, run from a diffrent AWS Account, let's