I want to set up a cron job in aws, to run a simple script to do a health check or check if there are new updates in RSS feed. I know I can use a curl command to check/download for this. is lambda cheapest option. is there any cheaper option than this, to set up a cron job , which runs and checks periodically?
curl -Is http://www.example.com | head -n 1
CodePudding user response:
You're right in thinking of setting up a Lambda on a Cron Schedule. Right now there isn't any other service cheaper, looking at a few alternatives they're multiples the cost:
ECS
EKS
EC2
FarGate
Lambda is free for the first 1 million calls and is purpose built to be run for 5-15mins and the most popular ways are either a Cron schedule or Http Endpoint.