```
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.
```
for key, value in sub.items():
                    content += '<entry><key>%s</key><value>%s</value></entry>\n' % (key, value)
                content += '</Attributes>'
                return make_response(req_action, content=content)
            elif req_action == 'Subscribe':
                if 'Endpoint' not in req_data:
                    return make_error(message='Endpoint not specified in subscription', code=400)
            elif req_action == 'Unsubscribe':
                if 'SubscriptionArn' not in req_data:
                    return make_error(message='SubscriptionArn not specified in unsubscribe request', code=400)
                do_unsubscribe(req_data.get('SubscriptionArn')[0])
            elif req_action == 'DeleteTopic':
                do_delete_topic(topic_arn)
            elif req_action == 'Publish':
                if topic_arn not in SNS_SUBSCRIPTIONS.keys():
                    return make_error(code=404, code_string='NotFound', message='Topic does not exist')
                publish_message(topic_arn, req_data)
                
                return make_response(req_action)
        return True
    def return_response(self, method, path, data, headers, response):
        
        
        if method == 'POST' and path == '/':
            req_data = urlparse.parse_qs(to_str(data))
            req_action = req_data['Action'][0]
            if req_action == 'Subscribe' and response.status_code < 400:
                response_data = xmltodict.parse(response.content)
                topic_arn = (req_data.get('TargetArn') or req_data.get('TopicArn'))[0]
                attributes = get_subscribe_attributes(req_data)