Edits history of script submission #6013 for ' Create a file in S3 (Deno) (s3)'

  • deno
    // Details on S3 integration at https://www.windmill.dev/docs/core_concepts/persistent_storage/large_data_files
    
    import * as wmill from 'npm:[email protected]';
    import S3Object from 'npm:[email protected]';
    
    export async function main(s3_file_path: string) {
    	const s3_file_output: S3Object = {
    		s3: s3_file_path
    	};
    
    	const file_content = 'Hello Windmill!';
    	// file_content can be either a string or ReadableStream<Uint8Array>
    	await wmill.writeS3File(s3_file_output, file_content);
    	return s3_file_output;
    }

    Submitted by henri186 834 days ago