Cloudwatch failedinvocation error no logs available

后端 未结 8 1477
感动是毒
感动是毒 2020-12-29 04:31

I have set up a Cloudwatch rule event where an ECS task definition is started when a previous task definition is completed.

I can see the event triggers the task de

8条回答
  •  南笙
    南笙 (楼主)
    2020-12-29 05:01

    In case other people come here looking for the setup necessary to make this work for a task in Fargate. There is some extra configuration in addition to Stefano's answer. Running tasks in Fargate requires setting up an execution role, so you need to enable the CloudWatchEventECSRole to use it. Add this statement to that role:

    {
        "Effect": "Allow",
        "Action": "iam:PassRole",
        "Resource": [
            "arn:aws:iam:::role/"
        ]
    }
    

提交回复
热议问题