When DataMagic::Config looks for data.yaml it grabs the list of files in the S3 bucket and searches it for the filename. However, @s3.list_objects() only returns 1000 objects at a time, and if there are over 1000 objects in the bucket (because of backups/snapshots) then data.yaml won't be in that list and won't be loaded.
I suspect the best solution here is to not rely on file listing, and instead just assume that data.yaml is there and try to read it, taking an alternate path if that fails.
When
DataMagic::Config
looks fordata.yaml
it grabs the list of files in the S3 bucket and searches it for the filename. However,@s3.list_objects()
only returns 1000 objects at a time, and if there are over 1000 objects in the bucket (because of backups/snapshots) thendata.yaml
won't be in that list and won't be loaded.I suspect the best solution here is to not rely on file listing, and instead just assume that
data.yaml
is there and try to read it, taking an alternate path if that fails.