I have an app on AWS using Elastic Beanstalk/RDS/EC2/etc.
The app has some database entries that need to be deleted after a certain time. I've tried to set up a cron task on the main server, but found that the web server cannot handle tasks like this, and a worker has to be created instead.
So, after writing up a quick worker based on this document, it seems that I cannot have the worker connect the existing database.
Am I overthinking this? I just need a way to have traffic come in, interact with the website, and then delete entries over time as they become irrelevant.