Upload text in bucket ( s3)
One script reply has been approved by the moderators Verified

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

Login to be able to comment
Points: 0
deno
One script reply has been approved by the moderators
Ap­pro­ved
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);
}

Submitted by admin 220 days ago

Edited 24 days ago

No comments yet

Login to be able to comment