export async function copyObject()

in src/lib/storage.ts [85:95]


export async function copyObject(sourcePath: string, destPath: string) {
	const bucket = await getBucket();
	const options = {
		Bucket: bucket,
		CopySource: `${bucket}/${sourcePath}`,
		Key: destPath,
		ServerSideEncryption: 'aws:kms',
	};
	console.log(`copying file ${bucket}/${sourcePath} to ${bucket}/${destPath}`);
	return s3.copyObject(options).promise();
}