title: How to print EC2 Tag name along with IP address?
body: <p>I have a code which prints the Public IP's for the running instances, </p>
  
  <pre><code>regions = ['us-east-1','us-west-1','us-west-2','eu-west-1','sa-east-1','ap-southeast-1','ap-southeast-2','ap-northeast-1']
  for region in regions:
    client = boto3.client('ec2',aws_access_key_id=ACCESS_KEY,aws_secret_access_key=SECRET_KEY,region_name=region,)
    addresses_dict = client.describe_addresses()
    for eip_dict in addresses_dict['Addresses']:
        if 'PrivateIpAddress' in eip_dict:
            print eip_dict['PublicIp']
  </code></pre>
  
  <p>This is fine, now i also want to print the <code>tag name</code> and store it in another dict, i know i this can be done by :</p>
  
  <pre><code>regions = ['us-east-1','us-west-1','us-west-2','eu-west-1','sa-east-1','ap-southeast-1','ap-southeast-2','ap-northeast-1']
  for region in regions:
    client = boto3.client('ec2',aws_access_key_id=ACCESS_KEY,aws_secret_access_key=SECRET_KEY,region_name=region,)
    dex_dict = client.describe_tags()
    for dexy_dict in dex_dict['Tags']:
       print dexy_dict['Value']
  </code></pre>
  
  <p>The problem is how do i combine it in one function and use 2 dict : one to store IP's and another to store the tag-name ? Please HELP</p>