How to set AWS SNS SMS notification from Mumbai Region?

时间:2017-12-18 07:15:30

标签: amazon-web-services amazon-sns amazon-cloudwatch

AWS does not support for SMS service in Mumbai region. but I need to do this , when I try to create cloud watch alarm in send notification settings i copied the ARN of SNS topic which is in virginia but it show the error message something went wrong , is there any way to do the same please share your idea

2 个答案:

答案 0 :(得分:1)

不,你不能这样做。 CloudWatch将仅发布与您的cloudwatch警报/警报位于同一区域的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中的主题中发送警报,

[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 

以下错误是我得到的:

  

调用PutMetricAlarm操作时发生错误(ValidationError):指定了无效区域us-east-1。只支持ap-south-1。

来自SNS FAQ

的以下区域现在支持短信
  

哪些AWS区域支持全球SMS?

     

1)US-East-1(弗吉尼亚州),2)US-West-2(俄勒冈州),3)EU-West-1(都柏林),4)亚太(东京),5)亚太地区(新加坡) ),和6)亚太地区(悉尼)。

答案 1 :(得分:0)