EventBridge scheduler schedules wrong ECS task definition

0

The AWS EventBridge Scheduler seemingly schedules the wrong ECS Task Definition. We noticed in the ECS that the tasks spun out via EventBridge is the wrong revision. Following log is from the CloudTrail:

...
"requestParameters": {
        "clientToken": "7929d6d1-048b-4f4a-afbd-2186b2a6b5a3",
        "count": 1,
        "launchType": "FARGATE",
        "networkConfiguration": {
            "awsvpcConfiguration": {
                "assignPublicIp": "DISABLED",
                "securityGroups": [
                    "sg-0334e4fe23d54ef07"
                ],
                "subnets": [
                    "subnet-007eb8e8a5c2a4cbb",
                    "subnet-0c8fcbcbe5c67b8f4"
                ]
            }
        },
        "cluster": "arn:aws:ecs:eu-west-1:xxxxxxxxx:cluster/prod",
        "enableExecuteCommand": false,
        "taskDefinition": "arn:aws:ecs:eu-west-1:xxxxxxxxxxx:task-definition/prod-scheduled-ar:31",
        "startedBy": "chronos-schedule/scheduled-ar",
        "enableECSManagedTags": false
    }
...

Does not correspond to the Terraform/Console configuration for the EventBridge Schedule:

TaskDefinitionArn:
"arn:aws:ecs:eu-west-1:xxxxxxxxxx:task-definition/prod-scheduled-ar:37",
TaskCount:
1,
LaunchType:
"FARGATE",
NetworkConfiguration:
{
awsvpcConfiguration:
{
Subnets:
["subnet-007eb8e8a5c2a4cbb","subnet-0c8fcbcbe5c67b8f4"],
SecurityGroups:
["sg-0334e4fe23d54ef07"],
AssignPublicIp:
"DISABLED"
}
},
PlatformVersion: --

Now we do update the EventBridge schedule every time we create the new revision but it doesn't RUN it when cron executes. I wonder why it is running the older task revisions. Any idea?

pbocan
已提问 2 个月前273 查看次数
没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则