export async function commitFileToS3_v1()

in src/libs/s3.ts [3:20]


export async function commitFileToS3_v1(
    client: S3Client,
    stage: string,
    filenamepath: string,
    contents: string,
) {
    const command = new PutObjectCommand({
        Bucket: `gu-national-delivery-fulfilment-${stage.toLowerCase()}`,
        Key: filenamepath,
        Body: contents,
    });
    try {
        const response = await client.send(command);
        console.log(response);
    } catch (err) {
        console.error(err);
    }
}