😺

aws ecs register-task-definition時のエラーについて

2022/07/11に公開

aws ecs register-task-definition時、

An error occurred (ClientException) when calling the RegisterTaskDefinition operation: Fargate requires task definition to have execution role ARN to support log driver awslogs.

が出たら、

aws ecs register-task-definitionの引数に渡した定義ファイルに

"executionRoleArn": "arn:aws:iam::XXXXXXXX:role/ecsTaskExecutionRole"

の記載忘れが無いかをチェック。

Discussion