简体   繁体   English

如何在 CloudWatch 中查看 AWS CloudFormation 日志?

[英]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.

相关问题 AWS Cloudformation 如何将日志从 CloudWatch Logs 发送到 S3 - AWS Cloudformation How to send logs from CloudWatch Logs to S3 如何为特定 CloudFormation 堆栈创建“aws.cloudformation”CloudWatch 事件类型? - How can I create an "aws.cloudformation" CloudWatch event type for a specific CloudFormation stack? 如何使用 CloudFormation 为 CloudWatch Logs 定义资源策略? - How to define Resource Policy for CloudWatch Logs with CloudFormation? 为什么我看不到 Lambda 函数的 CloudWatch 日志? - Why can't I see CloudWatch Logs for Lambda function? 如何在AWS CloudWatch中轮换日志? - How to rotate logs in AWS CloudWatch? 我在哪里可以导出AWS Cloudwatch日志(用于Loggly)? - Where can I export AWS Cloudwatch Logs (for Loggly)? 如何使用适用于 .NET 的 AWS 开发工具包将多个日志发送到单个 CloudWatch 日志流? - How can I send multiple logs to a single CloudWatch log stream using the AWS SDK for .NET? 如何在 nodejs 中使用 `aws-sdk` 读取 cloudwatch 日志 - How can I read cloudwatch logs using `aws-sdk`in nodejs 如何将自定义事件字符串写入Aws cloudwatch日志 - How do I write a custom event string to Aws cloudwatch logs 如何跟踪 AWS CloudWatch Log Stream 日志? - How do I tail AWS CloudWatch Log Stream logs?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM