简体   繁体   中英

AWS SMS: How to get Delivery Status via direct SNS Notification

I'm able to send SMS' fine through AWS SNS. I've also setup CloudWatch, and can see the logs for sent SMS'. However, I cannot find a way to subscribe a SNS topic to the delivery event? So as soon as the SMS has resulted in a successful or failed delivery over the network, I will get a HTTPS post to a url to log the result. This is easily setup in SES, for something like bounces, but I can't find anything obvious on the SNS dashboard, and trying to setup notifications on CloudWatch seems counter-intuitive since we shouldn't need to leave the SNS environment. What am I missing here?

Just to add: The notification needs to happen immediately on delivery status (CloudWatch seems delayed). For some reason AWS does not immediately fail on an obviously fake number (and happily makes you pay the full price of a SMS), and so need the resultant failure ASAP.

Hi The only way I know to track the delivery status for SMS sending is do a logsubscription to a aws lambda or kinesis stream. So the recipe would be:

Finally have in mind that logs written in cloudwatch are compressed in gzip format and encoded in base64 so to be able to read the logs properly you would need to decompress and decode the data once you have red it from the kinesis stream

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM