skip to Main Content

Amazon web services – Lambda getting access denied when trying to copy the data in same bucket

Lambda getting access denied when trying to copy the data in same bucket. Here is my Bucket Policy: { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": "*", "Action": [ "s3:GetObject", "s3:GetObjectTagging", "s3:PutObject", "s3:PutObjectTagging" ], "Resource": "arn:aws:s3:::vgi-esf-eng-us-east-1-narwhal-bfb-automated-input/*" }, { "Effect":…

VIEW QUESTION

Amazon web services – How to get a fragment of an mp4 video file from the middle, but keep the file metadata using nodejs aws

export async function* initiateObjectStream( Key: string, start: number, end: number, ): AsyncGenerator<any, any, unknown> { const streamRange = `bytes=${start}-${end}`; const getObjectCommand = new GetObjectCommand({ Bucket: bucket, Key, Range: streamRange, }); const { Body: chunks} = await s3Client.send(getObjectCommand); for await (const…

VIEW QUESTION
Back To Top
Search