title: Redirect output of console to a file on AWS S3
body: <p>Say I have a website that return me <strong>JSON</strong> data when I send a <strong>GET</strong> request using <strong>curl</strong>. I want to re-direct the output of curl to <strong>AWS S3</strong>. A new file should be created on S3 for it.</p>
  
  <p>Currently I am able to redirect the output to store it locally.</p>
  
  <pre><code>curl -s -X GET 'http://website_that_returns_json.com' &gt; folder_to_save/$(date +"%Y-%m-%d_%H-%M.json")
  </code></pre>
  
  <p>I have <code>AWS CLI</code> and <code>s3cmd</code> installed. How would I redirect the output of create to create a new file on AWS S3 ? </p>
  
  <p><strong>Assume :</strong> </p>
  
  <ol>
  <li>AWS S3 access key and secret key are already set.</li>
  <li>Location to store file : <code>mybucket/$(date +"%Y-%m-%d_%H-%M.json"</code></li>
  </ol>