Go to Preferences -> Local Storage -> Store a copy of all originals at the specified location.[1]
I then sync the folder to S3.
[1] https://helpx.adobe.com/lightroom-cc/using/preferences.html