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

Created by admin 220 days ago Viewed 115 times 0 Points

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,
) {
  return (await new S3Client(s3).getObject(path)).text();
}

Submitted by admin 220 days ago

Edited 24 days ago

No comments yet

Login to be able to comment