title: migrate AWS Lambda rails code to AWS Fargate
body: <p>I have AWS Lambda function written in ruby and due to the larger and larger amounts of data it should process (maths) it timeouts. Due to the nature of the job it is timing out due to very extensive maths and optimization of maths is out of review - it is way more complex and not an option as sits in a proprietary library written in ruby.</p>
  <p>To avoid this I'm searching the way to migrate whole lambda code to AWS Fargate so it will be able to instantiate a task and let it run for a long time (probably around 30-35 minutes).  I was not able to find a guide on how to convert lambda code to aws fargate deployment.</p>
  <p>So I have an AWS lambda zip file that contains rails lambda code, proprietary ruby library, and mysql2 gem with native *.so libraries (results of calculations are stored in db).</p>
  <p>Is there any tool or guide how to migrate such or similar lambda functions to fargate? Btw, lambda is invoked from SQS as far as I understood in case of Fargate SQS will invoke lambda which will run fargate task. But task configuration and images and rest are not clear.</p>