Skip to content

Instantly share code, notes, and snippets.

@mshakhomirov
Created October 20, 2019 18:16
Show Gist options
  • Save mshakhomirov/393e6a92053772ffc5ce1c01e475095b to your computer and use it in GitHub Desktop.
Save mshakhomirov/393e6a92053772ffc5ce1c01e475095b to your computer and use it in GitHub Desktop.
(base) Mikes-MBP:s3-to-gcs mikeshakhomirov$ node test
index.handler invoked with event { Records:
[ { eventVersion: '2.0',
eventSource: 'aws:s3',
awsRegion: 'eu-west-1',
eventTime: '2017-04-11T09:29:02.255Z',
eventName: 'ObjectCreated:Put',
userIdentity: [Object],
requestParameters: [Object],
responseElements: [Object],
s3: [Object] } ] }
Loading into a table my-file-to-transfer-production
from: my-file-to-transfer/2019/10/06/13/my-file-to-transfer-production-2-2019-10-06-13-21-26-d9b
success, result returned:
Buffer 7b 22 67 72 6f 75 70 49 64 22 3a 31 37 37 30 39 31 2c 22 63 6f 6e 73 75 6d 65 72 43 6f 75 6e 74 22 3a 31 2c 22 62 72 6f 61 64 63 61 73 74 65 72 ... >
File written successfully.
(base) Mikes-MBP:s3-to-gcs mikeshakhomirov$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment