aws-samples/aws-modern-application-workshop

service MythicalMysfits-Service failed to launch a task

Opened this issue · 0 comments

Modul2, Step 4c testing NLB DNS fails due to timeout.
I assigned the ARN from the REPLACE_ME_ECS_SERVICE_ROLE_ARN to the executionRoleArn.

I figured out that the taks was not running due to the following error message:
service MythicalMysfits-Service failed to launch a task with (error ECS was unable to assume the role 'arn:aws:iam::xxxxxxxx:role/MythicalMysfitsCoreStack-ECSTaskRole-yyyyyyyyyy' that was provided for this task. Please verify that the role being passed has the proper trust relationship and permissions and that your IAM user has permissions to pass this role.).

Creating a new TaskExecutionRole solved the problem with the task.