title: AWS Import-image User does not have access to the S3 object
body: <p>When running the AWS (Amazon Web Services) import-image task:</p>
  
  <pre><code>aws ec2 import-image --description "My OVA" --disk-containers file://c:\TEMP\containers.json
  </code></pre>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>An error occurred (InvalidParameter) when calling the ImportImage operation: User does not have access to the S3 object.(mys3bucket/vms/myOVA.ova)</p>
  </blockquote>
  
  <p>I followed all of the instructions in <a href="http://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html#iam-permissions-image" rel="nofollow noreferrer">this AWS document on importing a VM</a> (including Steps 1, 2, and 3). Specifically, I setup a vmimport role and the recommended policies for the role. What am I doing wrong?</p>