title: Amazon AWS Java API. I don't see my AMIs
body: <p>I'm using the Java API for Amazon AWS. I successfully authenticate, then get all images and my images are not among them (my AMIs are private, but I suppose that I will still see them since I have been authenticated). Here is my source...</p>
  
  <pre><code>final AmazonEC2 client = new AmazonEC2Client(credentails);
  
  for(Image image: client.describeImages().getImages()){
      if(image.getOwnerId().equals("1234567890")){
      //... do something usefull with the AMI
      }
  }
  </code></pre>
  
  <p>And my "OwnerId" is not among the received ones. What is the problem, I won't make my AMIs public, how can I get my AMIs?</p>
  
  <p>ANSWER: I was in a wrong region, and I was getting only AMIs from that region, not mine. 
  The way to change region is:</p>
  
  <pre><code>client.setEndpoint("ec2.us-west-1.amazonaws.com");
  </code></pre>