title: Boto3 AttributeError: 'dict' object has no attribute 'tags'
body: <p>When I run my script I get the error: <code>AttributeError: 'dict' object has no attribute 'tags'</code></p>
  
  <p>Here is my code: </p>
  
  <pre><code>import sys
  import boto3
  ec2 = boto3.client('ec2')
  instance_id_list = input("Enter an instance ID separated by commas: ")
  instance_ids = instance_id_list.split(",")
  print("Deleting Instance IDs:")
  for instance_id in instance_ids:
      instance = ec2.describe_instances(
          InstanceIds=[instance_id]
      ) ['Reservations']
  
      #ec2info = defaultdict()
      #for tag in instance.tags:
      #    if 'Name'in tag['Key']:
      #         print(tag['Key'])
      #        name = tag['Value']
      # Add instance info to a dictionary    \
      print(instance.get('Instances'))
      ec2info[instance.id] = {
          'Name': instance.get('Reservations').get('Instances').get('InstanceId'),
          'Instance ID': instance.id,
          'Type': instance.instance_type,
          'State': instance.state['Name'],
          'Private IP': instance.private_ip_address,
          'Public IP': instance.public_ip_address,
          'Launch Time': instance.launch_time
          }
  
  
  attributes = ['Name', 'Instance ID', 'Type',
                'State', 'Private IP', 'Public IP', 'Launch Time']
  for instance_id, instance in ec2info.items():
      for key in attributes:
          print("{0}: {1}".format(key, instance[key]))
          #print(instance.terminate())
          print("------")
  </code></pre>
  
  <p>Here is the full output of my script:</p>
  
  <pre class="lang-none prettyprint-override"><code>        Enter an instance ID separated by commas: i-024d1b8e8eaa8e417,i-03804b280877175be
      Deleting Instance IDs:
      Traceback (most recent call last):
        File ".\aws_ec2_terminate_instances.py", line 13, in &lt;module&gt;
          for tag in instance.tags:
  
  AttributeError: 'dict' object has no attribute 'tags'
  </code></pre>
  
  <p>How can I fix this error?</p>