Created
          February 20, 2018 19:55 
        
      - 
      
- 
        Save joeljuca/66a453a243c1f74da9fb57b12e7f5900 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') | |
| 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