title: Uploading data from Amazon S3 to Amazon Cloudsearch error
body: <p>I am trying to upload the data from Amazon S3 Bucket to Amazon CloudSearch domain using AWS CLI. When I try to execute the command</p>
  
  <pre><code>cs-import-documents -d mydomain --source s3://mybucket/myobject.json
  </code></pre>
  
  <p>I get the following error :</p>
  
  <blockquote>
    <p>AWS authentication requires a valid Date or x-amz-date header (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied)</p>
  </blockquote>
  
  <p>When I try to use the command</p>
  
  <pre><code>aws cloudsearchdomain upload-documents 
  </code></pre>
  
  <p>and pass in the s3 bucket url (<code>https://s3-us-west-1.amazonaws.com/mybucket/myobject.json</code>)</p>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>Error parsing parameter '--documents': Blob values must be a path to a file.</p>
  </blockquote>
  
  <p>I have also gone through the error log file and the documentation for Amazon CloudSearch but I am not able to resolve the issue.</p>
  
  <p>I have given all read write permissions access in Amazon S3 bucket and Amazon CloudSearch Domain. I am also using the latest version of AWS CLI .</p>
  
  <p>I would really appreciate it if someone can help me regarding this.</p>