简体   繁体   English

如何找到 AWS CloudFormation 堆栈创建失败的根本原因?

[英]How can I find the root cause for AWS CloudFormation stack creation failure?

I am trying to install a simple stack using AWS CloudFormation.我正在尝试使用 AWS CloudFormation 安装一个简单的堆栈。 I create an IAM user and also pass in some script to install Puppet and Git through userdata so that it can be executed by cloudinit.我创建了一个 IAM 用户,并通过 userdata 传递了一些脚本来安装 Puppet 和 Git,以便它可以由 cloudinit 执行。

The problem is for some reason the template fails mid way and the stack creation is rolled back.问题是由于某种原因模板在中途失败并且堆栈创建被回滚。 I am doing this through the management GUI.我通过管理 GUI 执行此操作。 But it doesn't tell me why it fails.但它并没有告诉我为什么它失败了。 I can see that some of the resources are created and then it fails.我可以看到一些资源被创建,然后它失败了。 Is there a way to look at detailed logs to see what exactly is failing?有没有办法查看详细的日志以查看到底是什么失败了?

The AWS Management Console for AWS CloudFormation offers an Events tab in the stack detail panel, which lists the stack life-cycle events and features a Reason column in turn, which contains more details for the errors in case. AWS CloudFormationAWS 管理控制台在堆栈详细信息面板中提供了一个事件选项卡,该选项卡列出了堆栈生命周期事件,并依次提供了一个原因列,其中包含错误的更多详细信息以防万一。

This column exposes the ResourceStatusReason field of the StackEvent data type retrieved via the DescribeStackEvents action:此列公开通过DescribeStackEvents操作检索到的StackEvent数据类型的ResourceStatusReason字段:

ResourceStatusReason - Success/failure message associated with the resource ResourceStatusReason - 与资源关联的成功/失败消息

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何仅在创建 AWS::Cloudformation::Stack 时调用 AWS::Lambda::Function? - How can I invoke an AWS::Lambda::Function only on the creation of a AWS::Cloudformation::Stack? 我如何运行AWS Lambda函数以使我知道CloudFormation已完成整个堆栈的创建 - How do I run a AWS Lambda function to let me know that CloudFormation has completed the entire stack creation 如何在 bash 中等待 AWS CloudFormation 堆栈创建或更新完成? - How to wait until an AWS CloudFormation stack creation or update is completed in bash? 如何为特定 CloudFormation 堆栈创建“aws.cloudformation”CloudWatch 事件类型? - How can I create an "aws.cloudformation" CloudWatch event type for a specific CloudFormation stack? AWS MWAA Cloudformation 堆栈创建因 NotStabilized 而失败 - AWS MWAA Cloudformation stack creation failed with NotStabilized AWS CloudFormation 堆栈创建不断失败 - AWS CloudFormation Stack Creation Keeps Failing 在我使用 cloudformation 创建的 aws 帐户上找不到堆栈 - can not find the stack on my aws account created with cloudformation 如何打印具有以下内容的AWS实例列表:1)实例名称2)实例大小3)aws:cloudformation:stack-name? - How can I print a list of AWS instances with: 1) Instance name 2) Instance size 3) aws:cloudformation:stack-name? 如何在 VPC 内连接 AWS lambda 以连接到 cloudformation 堆栈? - How can I connect an AWS lambda inside a VPC to connect to a cloudformation stack? 使用 cloudformation 创建的 AWS 中手动更新的堆栈将来会导致冲突吗? - will a manually updated stack in AWS that was created with cloudformation cause conflicts in the future?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM