I understand how to read a file, but I'm not sure how to create a stream to update the file. Essentially, I want to run the following on an s3 object:
fs.writeFileSync('targetFile.csv', new_data, {flag: 'a+'})
The context is, I have an elastic beanstalk app containing a form. On submit, I want to capture some of the data and write to file csv file that lives in a s3 bucket. If there's a better way solution, I'm open to that.
via blakeface
No comments:
Post a Comment