Skip to content

Instantly share code, notes, and snippets.

@alexhwoods
Created August 23, 2019 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexhwoods/f39262c198bfa46a93b9ccbec7bd55a8 to your computer and use it in GitHub Desktop.
Save alexhwoods/f39262c198bfa46a93b9ccbec7bd55a8 to your computer and use it in GitHub Desktop.
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
);
@alexhwoods
Copy link
Author

...just use the cli 🤦‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment