other|解除aws sns发送限制的坑

时间:2024-03-18 18:33:42

如前面的文章所述,开发调试的下单短信通知的功能,测试的时候全都ok,在后台做的统计,接口返回状态也都200,结果过了几天在aws后台看到一片红,基本上全都没法出去。

other|解除aws sns发送限制的坑

症状表现就是,请求API返回的状态全都200,然后aws的后台统计全都失败。手动在aws的后台提交发送短信请求依旧显示失败并接收不到短信。

经过一番折腾和研究及求助,发现还是aws的坑。上线的时候还没问题,但是后面aws更新了sns的限制,启用了每个账户默认最高花费1美金。

https://aws.amazon.com/cn/premiumsupport/knowledge-center/sns-sms-spending-limit-increase/?nc1=h_ls

other|解除aws sns发送限制的坑

由于是最新更新的,我们也没收到通知就导致全都失败了,于是只能根据要求去提交case。特别要说明的时候,case中要包含诸如此类的内容,发送的源,最大每天发送数量,具体场景描述,短信模板等。最主要的是这些内容没有像国内的短信平台提供一个编辑提交审核的机制,反而需要你在case的时候没写人家回复给你你再补充。这点我觉得亚马逊的case服务的及时性特别差。

具体的可以参考官方手册,也就是上面的内容,描述清楚相关内容才有可能获得批准,不然服务依旧无法使用,尴尬。附我发的case请求示例:

Q1.How SMS will be used:  
Scene 1: customers in the website send SMS notification to the customer after order confirmation, said website receiving the order.
Scene 2: commodity production is completed on the site operations performed in the delivery, send text messages to inform the goods from the customers has been sent.
Q2.Which AWS region will be calling API/service from: us-west-2
A list of countries in which the recipients of your messages are located: All supported countries,Most customers are areas of the United States.
Q3.The maximum number of messages you expect to send per day: 2000
Q4.Message templates for this country: 
Templates 1:【XXX】Thank you for shopping on Zeelool. Your order number is XXX Any questions, call us at XXX.
Templates 2:【XXX】Good News! Your order XXX has been shipped out. You can track your order here(XXX) after 48 hours. Any questions, call at XXX.
Q5.Name of site:
https://www.XXXX.com/