Open gmcguire opened 5 years ago
Also experiencing this issue. It seems to happen for me when fargate task run
fails before launching a container. You can repro this by running fargate with a new IAM user with enough IAM policy grants to create the ecsTaskExecutionRole
but nothing else.
When creating a service in an empty cluster, I'm seeing the following error:
It looks like for whatever reason the
GetRole
call in CreateEcsTaskExecutionRole isn't finding the existing role, and tries to recreate it.https://github.com/jpignata/fargate/blob/master/iam/role.go#L28
If I delete the role, this code recreates it correctly, but the next service I try to add hits the same error.