Created
August 23, 2019 20:34
-
-
Save alexhwoods/f39262c198bfa46a93b9ccbec7bd55a8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const AWS = require('aws-sdk') | |
AWS.config.update({ | |
accessKeyId: "access-key", | |
secretAccessKey: "secret-access-key" | |
}); | |
new AWS.S3().putObject( | |
{ | |
Bucket: "bucket-name", | |
Key: Date.now().toString(), | |
Body: Buffer.from("hello world"), | |
ACL: "public-read" | |
}, | |
console.log | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
...just use the cli 🤦♂️