David Spenard
Dec 9, 2021

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.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

David Spenard
David Spenard

Written by David Spenard

I'm working the Cloud. Been writing code and building systems since the Intel 486 days.

No responses yet

Write a response