title: Adding multiple filters in boto3
body: <p>Hi I have a requirement to fetch ec2 instance details with tags as follows</p>
  <p>prod = monitor</p>
  <p>test = monitor</p>
  <p>The objective is to list instances with these tags only . I was able to add one filter but not sure how to use multiple filters in ec2.instances.filter(Filters</p>
  <pre><code>from collections import defaultdict
  
  import boto3
  
  # Connect to EC2
  ec2 = boto3.resource('ec2')
  
  # Get information for all running instances
  running_instances = ec2.instances.filter(Filters=[{
      'Name': 'instance-state-name',
      'Values': ['running'] ,
      'Name': 'tag:prod',
      'Values': ['monitor']}])
  
  ec2info = defaultdict()
  for instance in running_instances:
      for tag in instance.tags:
          if 'Name'in tag['Key']:
              name = tag['Value']
              
                      
      # Add instance info to a dictionary         
      ec2info[instance.id] = {
          'Name': name,
          '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', 'Type', 'State', 'Private IP', 'Public IP', 'Launch Time']
  for instance_id, instance in ec2info.items():
      for key in attributes:
          print(&quot;{0}: {1}&quot;.format(key, instance[key]))
      print(&quot;------&quot;)
  </code></pre>