【发布时间】:2018-06-05 19:52:03
【问题描述】:
我正在尝试为 AWS Amazon cloudformation 中的自动缩放组创建一个生命周期事件,但是在部署我的堆栈时我不断收到一个非常模糊的错误:
Unable to publish test message to notification target
arn:aws:sns:us-east-1:000000000000:example-topic using IAM role arn:aws:iam::000000000000:role/SNSExample. Please check your target and role configuration and try to put lifecycle hook again.
我已经测试了 SNS 主题,它可以很好地发送电子邮件,我的代码似乎符合亚马逊的建议:
"ASGLifecycleEvent": {
"Type": "AWS::AutoScaling::LifecycleHook",
"Properties": {
"AutoScalingGroupName": "ASG-179ZOVNY8SEFT",
"LifecycleTransition": "autoscaling:EC2_INSTANCE_LAUNCHING",
"NotificationTargetARN": "arn:aws:sns:us-east-1:000000000000:example-topic",
"RoleARN": "arn:aws:iam::000000000000:role/SNSExample"
},
"Metadata": {
"AWS::CloudFormation::Designer": {
"id": "83129091-8efc-477d-86ef-9a08de4d6fac"
}
}
}
我已授予该 IAM 角色中所有内容的完全访问权限,但我仍然收到此错误消息。有没有人有任何其他想法可能真正导致此错误?
【问题讨论】:
标签: amazon-web-services amazon-ec2 amazon-cloudformation