简体   繁体   中英

How can I see AWS CloudFormation logs in CloudWatch?

I am not able to view CloudFormation stackset operation logs in the CloudFormation console. Although each stackset operation does have an "Operation ID" Is it possible to see the logs in CloudWatch? Or some way to turn on logging?

CloudFormation stack set events/log cannot be viewed using CloudWatch; this is done only through the AWS Cfn console or 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.

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中还有一些用于流化云形成日志的附加设置

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM