After upgrading from v1.16 to 1.18 of the ECS plugin, no ECS slaves were able to be launched.
We are using EC2 as the launch type (not fargate).
The error message in the log is as follows:
I was able to fix the problem by going into the build slave configuration and changing the field "Task Execution Role ARN" from the default value of "ecsTaskExecutionRole" to "" (empty string).
However, if an admin opens the jenkins system config, all the build slave configs (20+) will have the "Task Execution Role ARN" field reset back to their default value. If the config is saved, the problem will reoccur
What I believe is happening is that on v1.18, the plugin is incorrectly applying the task execution role to EC2 launch type slaves (should only be applied to fargate launch type).
Reverting the plugin back to v1.16 resolved the problem.