title: How to fetch IP of instances in an Auto scaling group
body: <p>I have been trying to get IP details of all instances in each auto scaling groups which I have listed using paginator and printed using <code>print asg['AutoScalingGroupName']</code></p>
  
  <pre><code>import boto
  import boto3
  
  client = boto3.client('autoscaling', region_name='us-west-2')
  autoscale = boto.connect_autoscale()
  ec2 = boto.connect_ec2()
  paginator = client.get_paginator('describe_auto_scaling_groups')
  page_iterator = paginator.paginate(PaginationConfig={'PageSize': 100}
  )
  
  filtered_asgs = page_iterator.search(
      'AutoScalingGroups[] | [?contains(Tags[?Key==`{}`].Value, `{}`)]'.format('Application', 'CCP')
  )
  
  for asg in filtered_asgs:
      print asg['AutoScalingGroupName']
          group = autoscale.get_all_groups(asg['AutoScalingGroupName'])[0]
          instance_ids = [i.instance_id for i in group.instances]
          reservations = ec2.get_all_instances(instance_ids)
          instances = [i for r in reservations for i in r.instances]
          print instances
  </code></pre>
  
  <p>Please help me to find out what I am missing here.</p>