0
How can I upload a json file to my s3 in easiest way?
Basically there is a json file in a webpage and I want to keep copy it every 5 minutes and upload to my s3.
0
How can I upload a json file to my s3 in easiest way?
Basically there is a json file in a webpage and I want to keep copy it every 5 minutes and upload to my s3.
0
You can set in a VM or your local machine a script with a command "wget path.for.file.json" and run every 5 min with a cronjob, also add to the script the command with aws CLI "aws s3 cp /path/for/your/json/file.json s3://yourbucket/" and this should do the magic. This will overwrite the previous file, if you want to keep different versions of this json file then I recommend you to additional add a timestamp to the name of your file like this "wget wget -O date +%Y%m%d%H%M%S
-file.json www.path.to./file.json"
thank you so much, so amazon don't have a service for this, do they? – Tel4tel – 2019-01-24T14:41:40.817
No, you have to do this manual or I'm not sure if you can use Lambda for that – Adad O. – 2019-01-24T14:45:27.667