Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const AWS = require('aws-sdk');
const S3 = new AWS.S3({'region':'us-east-1'});
exports.handler = async (event) => {
let param = {
'Bucket': 'bucketname',
'Key': 'var/tmp/a.json',
'Body': null // nullにしておく
}
await S3.putObject(param).promise()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment