如何设置来自孟买地区的 AWS SNS SMS 通知?
How to set AWS SNS SMS notification from Mumbai Region?
AWS 在孟买地区不支持短信服务。但我需要这样做,当我尝试在发送通知设置中创建云监视警报时,我复制了位于弗吉尼亚州的 SNS 主题的 ARN,但它显示错误消息 出错了,有什么办法可以做到这一点请分享你的想法
不,你做不到。 CloudWatch 只会发布到与您的 cloudwatch alerts/alarms.
位于同一区域的 SNS 主题
但是你可以有一个类似于此的解决方法answer
与解决方案类似,您可以创建以下资源:
> CloudWatch Alarm (ap-south-1)
> -> SNS (ap-south-1)
> -> Lambda (you can have this in any region, cross region lambda can be invoked from sns)
> -> SNS (us-east-1), invoked from lambda
> -> SMS subscriber (us-east-1)
更新
AWS 确认这是不可能的 https://forums.aws.amazon.com/thread.jspa?threadID=130530。
已确认仍然无法发布到其他地区的 SNS 主题。我试图在 ap-south-1 中创建一个 CW 警报,以在 us-east-1 的主题中发送警报,
<pre>[ec2-user@ip-**** ~]$ aws cloudwatch put-metric-alarm --alarm-name TestSMSAlarm --alarm-description "Test Alarm turned ON" --alarm-actions arn:aws:sns:us-east-1:*****:Test --metric-name HealthyHostCount --namespace AWS/ELB --statistic Maximum --dimensions "Name=LoadBalancerName,Value=awseb-e-z-AWSEBLoa-****" --period 300 --evaluation-periods 1 --threshold 1 --comparison-operator LessThanThreshold --region ap-south-1
下面的错误是我得到的:
An error occurred (ValidationError) when calling the PutMetricAlarm operation: Invalid region us-east-1 specified. Only ap-south-1 is supported.
以下地区现在支持短信,来自 SNS FAQ:
Which AWS regions support Worldwide SMS?
1) US-East-1 (Virginia), 2) US-West-2 (Oregon), 3) EU-West-1 (Dublin), 4) Asia Pacific (Tokyo), 5) Asia Pacific (Singapore), and 6) Asia Pacific (Sydney).
Amazon SNS 现在在亚太地区(孟买)地区支持 SMS 短信!
AWS 在孟买地区不支持短信服务。但我需要这样做,当我尝试在发送通知设置中创建云监视警报时,我复制了位于弗吉尼亚州的 SNS 主题的 ARN,但它显示错误消息 出错了,有什么办法可以做到这一点请分享你的想法
不,你做不到。 CloudWatch 只会发布到与您的 cloudwatch alerts/alarms.
位于同一区域的 SNS 主题但是你可以有一个类似于此的解决方法answer
与解决方案类似,您可以创建以下资源:
> CloudWatch Alarm (ap-south-1)
> -> SNS (ap-south-1)
> -> Lambda (you can have this in any region, cross region lambda can be invoked from sns)
> -> SNS (us-east-1), invoked from lambda
> -> SMS subscriber (us-east-1)
更新
AWS 确认这是不可能的 https://forums.aws.amazon.com/thread.jspa?threadID=130530。
已确认仍然无法发布到其他地区的 SNS 主题。我试图在 ap-south-1 中创建一个 CW 警报,以在 us-east-1 的主题中发送警报,
<pre>[ec2-user@ip-**** ~]$ aws cloudwatch put-metric-alarm --alarm-name TestSMSAlarm --alarm-description "Test Alarm turned ON" --alarm-actions arn:aws:sns:us-east-1:*****:Test --metric-name HealthyHostCount --namespace AWS/ELB --statistic Maximum --dimensions "Name=LoadBalancerName,Value=awseb-e-z-AWSEBLoa-****" --period 300 --evaluation-periods 1 --threshold 1 --comparison-operator LessThanThreshold --region ap-south-1
下面的错误是我得到的:
An error occurred (ValidationError) when calling the PutMetricAlarm operation: Invalid region us-east-1 specified. Only ap-south-1 is supported.
以下地区现在支持短信,来自 SNS FAQ:
Which AWS regions support Worldwide SMS?
1) US-East-1 (Virginia), 2) US-West-2 (Oregon), 3) EU-West-1 (Dublin), 4) Asia Pacific (Tokyo), 5) Asia Pacific (Singapore), and 6) Asia Pacific (Sydney).
Amazon SNS 现在在亚太地区(孟买)地区支持 SMS 短信!