[英]How can I see AWS CloudFormation logs in CloudWatch?
I am not able to view CloudFormation stackset operation logs in the CloudFormation console.我无法在 CloudFormation 控制台中查看 CloudFormation 堆栈集操作日志。 Although each stackset operation does have an "Operation ID" Is it possible to see the logs in CloudWatch?
虽然每个 stackset 操作都有一个“操作 ID” 是否可以在 CloudWatch 中查看日志? Or some way to turn on logging?
或者某种方式来打开日志记录?
CloudFormation stack set events/log cannot be viewed using CloudWatch;无法使用 CloudWatch 查看 CloudFormation 堆栈集事件/日志; this is done only through the AWS Cfn console or API.
这只能通过 AWS Cfn 控制台或 API 完成。
If using the AWS-CLI try running aws cloudformation describe-stack-set-operation --stack-set-name xxxxxxx --operation-id xxxx-xxxx-xxxxx
to display details of stack set operation.如果使用 AWS-CLI,请尝试运行
aws cloudformation describe-stack-set-operation --stack-set-name xxxxxxx --operation-id xxxx-xxxx-xxxxx
以显示堆栈设置操作的详细信息。
NB: You can run the command while the stack set is being created to view events as they're reported.注意:您可以在创建堆栈集时运行该命令以查看报告的事件。
您可能需要查看https://aws.amazon.com/blogs/devops/view-cloudformation-logs-in-the-console/,因为cloudwatch中还有一些用于流化云形成日志的附加设置
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.