[{"data":1,"prerenderedAt":57},["ShallowReactive",2],{"workflow-ecs-fargate-cdk-dotnet":3},{"id":4,"title":5,"cleanup":6,"contributors":10,"deploy":12,"description":15,"diagram":16,"extension":17,"framework":18,"gitHub":19,"introBox":28,"level":35,"meta":36,"resources":37,"s3URL":43,"services":44,"simplicity":48,"stem":49,"testing":50,"type":54,"usecase":55,"videoId":27,"__hash__":56},"workflows\u002Fworkflows\u002Fecs-fargate-cdk-dotnet.json","ECS Task with Fargate container",{"headline":7,"text":8},"Cleanup",[9],"1. Delete the stack: \u003Ccode>cdk destroy\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fuma-shankar.json",{"text":13},[14],"cdk apply","AWS Step functions integration with ECS Task with Fargate container","\u002Fassets\u002Fimages\u002Fworkflows\u002Fecs-fargate-cdk-dotnet.png","json","AWS CDK",{"template":20,"payloads":25},{"repoURL":21,"templateDir":22,"templateFile":23,"ASL":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fstep-functions-workflows-collection\u002Ftree\u002Fmain\u002Fsfn-fargate-dotnet-cdk\u002F","sfn-fargate-dotnet-cdk","src\u002Fcdk\u002FCdkStack.cs","statemachine\u002Fstatemachine.asl",[26],{"headline":27,"payloadURL":27},"",{"headline":29,"text":30},"AWS Step functions with ECS Task with Fargate container",[31,32,33,34],"AWS Lambda is an AWS service that allows users to run code without the need to provision or manage servers. ECS is another AWS service that provides containerized compute capacity, which can be used to run applications or services.","When combining Step Functions with Lambda and ECS, it is possible to create workflows that are executed in a serverless and scalable environment. The main advantage of this approach is that it allows users to create complex workflows that can be executed in a reliable and cost-effective manner. However, there is a challenge with using Lambda functions in Step Functions workflows: the maximum execution time for a Lambda function is 15 minutes. This can be a problem for workflows that require longer execution times.","To overcome this challenge, it is possible to use ECSTask to run the long-running tasks. ECSTask allows users to create containerized tasks that can run for much longer periods than a Lambda function. When a task needs to be executed, Step Functions can trigger an ECSTask to run the task, passing any necessary input or configuration data to the task.","In summary, combining Step Functions with Lambda and ECSTask provides a powerful tool for creating complex, serverless workflows. By leveraging the strengths of each service, it is possible to create workflows that are reliable, scalable, and cost-effective.","200",{},{"headline":38,"bullets":39},"Additional resources",[40],{"text":41,"link":42},"Manage Amazon ECS or Fargate Tasks with Step Functions","https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconnect-ecs.html",null,[45,46,47],"lambda","fargate","sfn","3 - Application","workflows\u002Fecs-fargate-cdk-dotnet",{"headline":51,"text":52},"Testing",[53],"See the GitHub repo for detailed testing instructions.","Standard","Microservices","HcUNa2B9hLo_EF5K9qnW-BmJ1ius10jeXFuPOoWnV9Q",1778927712557]