```
peter@nefilim ~ $ aws --endpoint-url=http://localhost:4575 sns publish --message="hello world" --phone-number="+15551239110"
An error occurred (NotFound) when calling the Publish operation: Topic does not exist
```

this works perfectly fine against AWS, from the docs:

```
       --phone-number (string)
          The phone number to which you want to deliver an  SMS  message.  Use
          E.164 format.

          If you don't specify a value for the PhoneNumber parameter, you must
          specify a value for the TargetArn or TopicArn parameters.
```
if type(conditions) is not list:
        conditions = [conditions]
    if attribute['Type'] == 'String.Array':
        values = ast.literal_eval(attribute['Value'])
        for value in values:
            for condition in conditions:
                if evaluate_condition(value, condition):
                    return True
    else:
        for condition in conditions:
            if evaluate_condition(attribute['Value'], condition):
                return True
    return False
def check_filter_policy(filter_policy, message_attributes):
    if not filter_policy:
        return True
    for criteria in filter_policy:
        conditions = filter_policy.get(criteria)
        attribute = message_attributes.get(criteria)
        if attribute is None:
            return False
        if evaluate_filter_policy_conditions(conditions, attribute) is False:
            return False
    return True