def get_ec2_instance_tags(instance_id, region):
    'Return a list of tags associated with the given EC2 instance.'
    logging.info('Getting tags for instance %s', instance_id)
    return boto3.client('ec2', region_name=region).describe_instances(InstanceIds=[instance_id]).get('Reservations')[0].get('Instances')[0].get('Tags')
Return a list of tags associated with the given EC2 instance.
def get_ec2_instance_tags(instance_id, region):
    
    logging.info('Getting tags for instance %s', instance_id)
    return boto3.client('ec2', region_name=region).describe_instances(InstanceIds=[instance_id]).get('Reservations')[0].get('Instances')[0].get('Tags')