title: Shell script to Upload files from AWS EC2 to S3
body: <p>I am executing jmeter on AWS EC2, result of which is returned in the form csv file. <br></p>
  
  <p>I need to upload this csv file to AWS S3 bucket.<br></p>
  
  <p>Since I am creating number of EC2 instances dynamically and executing jmeter on those instances, it's better to automate this process . <br></p>
  
  <p>So for this I want to write shell script (as a user data) to execute jmeter and upload result CSV file to S3 bucket from each EC2 instance.<br></p>
  
  <p>How i can write script for this ?</p>