Hi Pablo, as you have discovered the sample Python script I put together needs some defensive coding techniques applied, so it's blowing up when it fails to have a list of file names specified in the fileList for the Lambda's main_handler. So that's the first issue. The second issue is the call to upload_file in line 135 is hard-coded to specify an Excel file type, so that would need to be fixed to be dynamic, to accommodate different file types.
I'd love to go back and fix this and make it completely flexible and address all the typical needs, like triggering from S3 or EventBridge, but I just don't have the time. Feel free to make a branch and submit a PR and I can get the changes incorporated if you make some improvements. Hope this helps. Thanks.