Discourse logs sent to wrong S3

I was recently doing some cleanup of old files and infrastructure that I no longer needed after running this forum for a while.

I went through a migration of S3 a couple times and I just recently discovered my upload and email logs are still being uploaded to the first S3 ever configured.

I cannot find in the database where this is declared. My app.yml doesn’t point to aws (the first S3) at all.

Where can I find this in the database?

Could it be outside Discourse itself?

For example, perhaps app.yml as a bind mount to a host directory, or there is an implicit bind mount from the container to the host, and that host directory is still being synced/backed up to the old S3 bucket by something like aws s3 sync, rclone, a cron job, or a backup script.

If app.yml no longer references the old AWS/S3 settings, I’d probably check the host for scheduled jobs or sync scripts next.

This is unlikely.
The old S3 was a few migrations ago.