相关疑难解决方法(0)

AWS Cloudformation - 通过规则事件调用 Lambda 失败

我尝试在 cloudformation 中创建一个模板,具有由一个 cloudwatch 事件规则(每 10 分钟)触发的 lambda 函数。在 cloudwatch 图中,我可以看到调用,但也可以看到所有失败的调用。我认为这是规则角色的问题,但我无法弄清楚。

在此处输入图片说明 这是我的模板,您可以在 cloudformation 设计器中看到。

{
    "AWSTemplateFormatVersion": "2010-09-09",
    "Metadata": {
        "AWS::CloudFormation::Designer": {
            "d1498a15-7d12-4ec9-bba6-3ba163574a10": {
                "size": {
                    "width": 60,
                    "height": 60
                },
                "position": {
                    "x": 450,
                    "y": 90
                },
                "z": 1,
                "embeds": []
            },
            "afe4f2cd-0634-4114-8327-1ecf60933475": {
                "size": {
                    "width": 60,
                    "height": 60
                },
                "position": {
                    "x": 310,
                    "y": 90
                },
                "z": 1,
                "embeds": [],
                "isrelatedto": [
                    "d1498a15-7d12-4ec9-bba6-3ba163574a10"
                ]
            },
            "c7843bb1-3134-44e7-9463-f9054118e52b": {
                "size": {
                    "width": 60,
                    "height": 60
                },
                "position": {
                    "x": 150, …
Run Code Online (Sandbox Code Playgroud)

amazon-web-services aws-cloudformation amazon-cloudwatch

3
推荐指数
1
解决办法
1244
查看次数