Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const s3 = new S3({ apiVersion: '2006-03-01' });
- const JS_code = `
- let x = 'Hello World';
- `;
- // I'm using the following method inside an async function.
- await s3.putObject({
- Bucket: 'my-bucket-gayashan',
- Key: 'myFile.js',
- ContentType:'binary',
- Body: Buffer.from(JS_code, 'binary')
- });
Add Comment
Please, Sign In to add comment