Skip to content

Instantly share code, notes, and snippets.

@joeljuca
Created February 20, 2018 19:55
Show Gist options
  • Save joeljuca/66a453a243c1f74da9fb57b12e7f5900 to your computer and use it in GitHub Desktop.
Save joeljuca/66a453a243c1f74da9fb57b12e7f5900 to your computer and use it in GitHub Desktop.
const aws = require('aws-sdk')
const s3 = new aws.S3({
accessKeyId: '<access-id>',
secretAccessKey: '<access-secret>'
})
s3.getObject({
Bucket: 'joelwallis',
Key: 'joel.json'
}, (err, payload) => {
if (err) return console.error('Something went wrong:', err)
console.log(payload.Body.toString())
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment