Amazon Elastic Container Service (ECS) / Fargate plugin Version1.48 is not working

Hi Team,

I have installed Amazon Elastic Container Service (ECS) / Fargate plugin Version1.48 in my Jenkins and executing the agents. But the agent is not coming up using the latest version of Amazon Elastic Container Service (ECS) / Fargate plugin. I’m running my controller Jenkins with Jenkins 2.401.1 version. I have separate agent cluster for controller and agent and our Jenkins controller and agent hosted on Amazon ECS. The agents are working with Amazon Elastic Container Service (ECS) / Fargate plugin Version1.37 in the Jenkins LTS version.

Please find the below logs.

Will provision ECS_agent_CLOUD_1-Jenkins-JNLP-Debian-ppx79, for label: Jenkins-JNLP-Debian
Jul 27, 2023 1:03:41 PM SEVERE hudson.triggers.SafeTimerTask run
Timer task hudson.slaves.NodeProvisioner$NodeProvisionerInvoker@4c4392f4 failed
java.lang.IllegalArgumentException
at hudson.slaves.NodeProvisioner$PlannedNode.(NodeProvisioner.java:102)
at com.cloudbees.jenkins.plugins.amazonecs.ECSCloud.provision(ECSCloud.java:292)
at io.jenkins.plugins.aws.lambda.cloud.LambdaCloudProvisionerStrategy.apply(LambdaCloudProvisionerStrategy.java:80)
at hudson.slaves.NodeProvisioner.update(NodeProvisioner.java:325)
at hudson.slaves.NodeProvisioner$NodeProvisionerInvoker.doRun(NodeProvisioner.java:823)
at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:92)
at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:67)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)

Jul 27, 2023 1:03:51 PM INFO com.cloudbees.jenkins.plugins.amazonecs.ECSCloud provision
Asked to provision 1 agent(s) for: Jenkins-JNLP-Debian
Jul 27, 2023 1:03:51 PM INFO com.cloudbees.jenkins.plugins.amazonecs.ECSCloud provision
Will provision ECS_agent_CLOUD_1-Jenkins-JNLP-Debian-3cngt, for label: Jenkins-JNLP-Debian
Jul 27, 2023 1:03:51 PM SEVERE hudson.triggers.SafeTimerTask run
Timer task hudson.slaves.NodeProvisioner$NodeProvisionerInvoker@4c4392f4 failed
java.lang.IllegalArgumentException
at hudson.slaves.NodeProvisioner$PlannedNode.(NodeProvisioner.java:102)
at com.cloudbees.jenkins.plugins.amazonecs.ECSCloud.provision(ECSCloud.java:292)
at io.jenkins.plugins.aws.lambda.cloud.LambdaCloudProvisionerStrategy.apply(LambdaCloudProvisionerStrategy.java:80)
at hudson.slaves.NodeProvisioner.update(NodeProvisioner.java:325)
at hudson.slaves.NodeProvisioner$NodeProvisionerInvoker.doRun(NodeProvisioner.java:823)
at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:92)
at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:67)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)