Yep, that's pretty much it. I have it working with iDrive this way. Install Nextcloud and the Memories app. Add S3 as external storage. Point Memories to external storage. Done.