我使用 AWS 教育账户并密切关注本教程
https://github.com/mongoose-os-apps/aws-iot-button
This is an Internet Button reference project: when a button on the device is pressed, a cloud backend gets a notification and performs an action. In this particular case, AWS Lambda function sends an email to the specific email address.
为此我需要一个堆栈。 但在使用 aws cli 创建新堆栈时,堆栈状态从 CREATE_IN_PROGRESS 更改为 ROLLBACK_COMPLETE。
我尝试从 cli 中删除并重做堆栈,进行必要的更改
aws cloudformation create-stack --stack-name my-internet-button --parameters ParameterKey=TopicName,ParameterValue=$DEVICE_ID/button_pressed ParameterKey=SubscriptionEmail,ParameterValue=$MY_EMAIL --capabilities CAPABILITY_IAM --template-body file://aws_button_template.json
状态仍然下降到 ROLLBACK_COMPLETE
最佳答案
ROLLBACK_COMPLETE 的原因是堆栈未能创建 1 个或多个资源。要进行故障排除,请在 Web 控制台上打开堆栈 --> 事件 --> 检查第一个 CREATE_FAILED 资源(从底部开始)和状态原因。
关于amazon-web-services - 在 AWS CloudFormation 中,使用 aws cli 创建新堆栈时,堆栈状态从 CREATE_IN_PROGRESS 更改为 ROLLBACK_COMPLETE,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65308976/