'Alternative to Lambda for Serverless Long running tasks

I am using a AWS Step function, where I have a map task. For each item in the input to the map task, plan was to trigger a Lambda function. I had designed the wireframe as such.

But now there has been change in the function code and the new code takes around 1+ hours in CPU and there is also a possibility to run it with GPU support.

Thus, I need to replace Lambda functions with another serverless aws service. Please suggest on which service to use?

Thanks.



Solution 1:[1]

The "serverless" solution to running a task on AWS for more than 15 minutes is to run it as an ECS task with a Fargate launch type.

Step Functions can manage ECS Fargate tasks

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mark B