title: User Data script not downloading files from S3 bucket?
body: <p>i have s3cmd and EC2 api  pre configured AMI. While creating new instance with user data for downloading files from S3 bucket, i face some following problems.</p>
  
  <p>in user data i have code for <br>
  - creating new directory on new instance.<br>
  - downloading file  from AWS S3 bucket.</p>
  
  <p>Script is </p>
  
  <pre><code>#! /bin/bash
  cd /home 
  mkdir pravin
  s3cmd get s3://bucket/usr.sh &gt;&gt; temp.log
  </code></pre>
  
  <p>But in above script , <code>mkdir pravin</code> creates new directory with name pravin but <code>s3cmd get s3://bucket/usr.sh</code> not downloads file from AWS S3 bucket.</p>
  
  <p>it also creates <code>temp.log</code> but it is empty.</p>
  
  <p>So how i can solve this problem ? </p>