AWS Cloudformation 日志

问题描述 投票:0回答:1

我正在使用 AWS CDK 订阅用于从 S3 创建事件的 Lambda 函数。我收到这种错误。

Error: An error occurred (InvalidArgument) when calling the PutBucketNotificationConfiguration operation: Unable to validate the following destination configurations. See the details in CloudWatch Log 
Stream: 2023/11/13/[$LATEST]b53fbfb27fc4405082109cabad91f3ce (RequestId: 1b65e732-7a5e-476e-9494-9ddde24654f0)

我在 Cloudformation 堆栈中看到同样的错误。问题出在 CloudWatch 中。我找不到与 Cloudformation 相关的日志组。你知道如何找到它吗?它的命名模式是什么?可以在 Cloudformation 设置中的某个位置进行配置吗?我们有数百个群组,所以我无法浏览列表并检查每个群组

我尝试使用不同的模式搜索该日志组,但没有成功。我只需要这些日志来了解我的堆栈出了什么问题并解决问题。

amazon-web-services aws-cloudformation amazon-cloudwatch
1个回答
0
投票

您的问题可能与缺少 Lambda 调用权限有关。 检查您的模板是否有 AWS::Lambda::Permission https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html

确保(我不知道如何使用 CDK 执行此操作)在 PutBucketNotificationConfiguration 操作之前授予权限。

顺便说一句,Cloudformation 日志可在事件选项卡的 Cloudformation 堆栈中找到。

© www.soinside.com 2019 - 2024. All rights reserved.