Update Asset Indexes for new files in s3 not working
We ended up using this cli tool:
https://github.com/rsanchez/craft-cli

We still had to tweak the php memory limit in the php config: memory_limit 2048M

But eventually we managed to index 21.000+ images this way.