telia-oss / terraform-aws-ecs-fargate

Terraform module which creates Fargate ECS resources on AWS.
https://registry.terraform.io/modules/telia-oss/ecs-fargate/aws
MIT License
82 stars 75 forks source link

Service depends on the task execution policy #58

Closed larstobi closed 2 years ago

larstobi commented 2 years ago

Fixes this error message from the ECS console under Events: service X failed to launch a task with (error ECS was unable to assume the role 'arn:aws:iam::<account_id>:role/X-task-execution-role' 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.).

And this one: service X failed to launch a task with (error ECS was unable to assume the role X 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.).