I have a node.js application using elastic beanstalk with ebs volume. How can I save files to amazon ebs using node.js?
Does using the simple code from this answer put the file on ebs?
fs.writeFile("/tmp/test", "Hey there!", function(err) {
if(err) {
return console.log(err);
}
console.log("The file was saved!");
});
If it does, what is the code difference between saving the file on ebs or on the disk?