- 最新
- 投票最多
- 评论最多
How long does it take to run? If its going to be a large chunk of that 15 minutes, then just having an always on EC2 instance might be best. If its quick, you could have a Lambda function which is triggered once every 15 minutes based on a cron schedule in EventBridge.
You'll want to compare pricing for EC2 instances and Lambda. Keep in mind that for both, a smaller amount of computer is cheaper, but will likely take longer to run. For EC2, that helps with your cost formula (if you're leaving it running), but for Lambda it can sometimes be cheaper to pay for a larger compute environment since you're billed per ms it runs.
For an EC2 instance, you could schedule it to start every 15 minutes, but there are startup and shutdown times involved, so I doubt it would be worth it to start/stop vs a Lambda if the jobs are that short that the extra stopped instance time would be worth it
相关内容
- AWS 官方已更新 2 年前
- AWS 官方已更新 1 年前