5 ms·
I'm still using the old way: "crontab -e" inside the same EC2 where I run the app. In case of failure I automatically send an email to me. This is the easiest s
by davide_v 4y ago
I'm still using the old way: "crontab -e" inside the same EC2 where I run the app. In case of failure I automatically send an email to me.
This is the easiest scenario in case you already have an EC2 for some other things that is already running.
Instead, from scratch (no EC2), I'd probably use Lambda.
- djhn 4y agoOut of curiosity and for the sake of completeness, by failure, you're probably talking about an error that the script itself can detect? What about a scenario where the EC2 goes down (silently)?
- davide_v 4y agoYes I mean failure of the cron script itself. If the EC2 goes down entirely there are other alerts you can set up on AWS, such as Cloudwatch or similar.