How do I setup a script to run on a schedule in a clean & professional way?

HOW TO -️ October 18, 2021

I have a small python piece of code that I want to run on a schedule. The dirty way to do it would be to just spin up an EC2 instance and use CRON to run the script.

But I was wondering if there's a better (cleaner) way to do this

Also I was wondering how to do the same but on Google Cloud as well as AWS

Answer

Update: I found this Google Cloud article that has a good explanation. https://cloud.google.com/blog/products/application-development/how-to-schedule-a-recurring-python-script-on-gcp

Initializing...