title: Boto3: Get EC2 images owned by me
body: <p>I would like to get all ami images owned by me. I tried something like below:</p>
  
  <pre><code>ec2 = boto3.resource('ec2')
  owner_id = 'owner_id'
  filters = [{'Name': 'owner-id', 'Values': [owner_id]}]
  images = ec2.images.filter(Filters=filters).all()
  </code></pre>
  
  <p>But I need to put owner_id explicid in the code. Is it any solution to do that automatically from aws credentials?</p>