我在AWS Beanstalk上部署了我的应用程序。为了更好地监视我的应用程序,我还打开了电子邮件通知。
我遵循了指示:aws sns docs 并将此策略附加到该环境使用的服务角色。
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"sns:Publish"
],
"Resource": [
"*"
]
}
]
我还检查有关sns主题的配置:
{
"Namespace": "aws:elasticbeanstalk:sns:topics",
"OptionName": "Notification Endpoint",
"Value": "xxxxxx@aws.com"
},
{
"Namespace": "aws:elasticbeanstalk:sns:topics",
"OptionName": "Notification Protocol",
"Value": "email"
},
{
"Namespace": "aws:elasticbeanstalk:sns:topics",
"OptionName": "Notification Topic ARN",
"Value": "arn:aws:sns:us-east-1:888888888888:ElasticBeanstalkNotifications-Environment-xxxxxxxxxxxxxxx"
},
{
"Namespace": "aws:elasticbeanstalk:sns:topics",
"OptionName": "Notification Topic Name"
},
但是,我仍然收到此警报,无法收到来自AWS的任何通知。如果您能告诉我我做错了什么,我将不胜感激。