Details on S3 integration at https://www.windmill.dev/docs/core_concepts/persistent_storage/large_data_files
1
// Details on S3 integration at https://www.windmill.dev/docs/core_concepts/persistent_storage/large_data_files
2
3
import * as wmill from 'npm:[email protected]';
4
import S3Object from 'npm:[email protected]';
5
6
export async function main(s3_file_path: string) {
7
const s3_file_output: S3Object = {
8
s3: s3_file_path
9
};
10
11
const file_content = 'Hello Windmill!';
12
// file_content can be either a string or ReadableStream<Uint8Array>
13
await wmill.writeS3File(s3_file_output, file_content);
14
return s3_file_output;
15
}