-
Hi 👋 I have a question @kichik I have a case where I have a scheduled action that runs every ~10 minutes - think of like a healthcheck for the system, would having a runner on EC2 spot instance be cheaper than having a CodeBuild runner? I do not need the runners to be super fast, and I don't need them to be available at all times |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Sounds like a perfect use case for Lambda runners. If you set the ephemeral storage really low (defaults to max 10GB), it might even get on the free tier. If Lambda won't work, then spot instance is probably a cheaper than CodeBuild or even Fargate spot. |
Beta Was this translation helpful? Give feedback.
If you need to pull and run a Docker image, you would need Docker. That won't work on Lambda and it won't work on Fargate either. Your options would be CodeBuild, ECS or EC2. If you're already using ECS for other jobs, then that would be the best option as it will allow you to share the instances. If not, EC2 should be cheaper both in absolute terms, and also by allowing you to pick instances that are smaller than the smallest CodeBuild compute size. If you can make it work with
t4g.nano
, for example, that would be the cheapest.For ECS you can also share a cluster between two providers. One provider would be your main provider with beefy CPU/RAM config. The second provider will be for th…