Created by admin 220 days ago Viewed 281 times 0 Points
Upload text content at a given path in an s3 resource
No comments yet
import * as wmill from "https://deno.land/x/windmill@v1.70.1/mod.ts";
import { S3Client } from "https://deno.land/x/s3_lite_client@0.2.0/mod.ts";
export async function main(
s3: wmill.Resource<"s3">,
path: string,
content: string,
) {
return await new S3Client(s3).putObject(path, content);
}
No comments yet