I recently when to use your sample ChecksumLambdaFunction and found a number of python tab indentation issues where if you ran it as in from a Cloudformation deploy you get errors:
[ERROR] Runtime.UserCodeSyntaxError: Syntax error in module 'index': unindent does not match any outer indentation level (index.py, line 69) Traceback (most recent call last): File "/var/task/index.py" Line 69 except Exception as e:
If you correct that you will still come across other indentation issues. Fixing those lead you into some logic issues with Nonetype object comparisons and if statements when nothing is returned.
I recently when to use your sample ChecksumLambdaFunction and found a number of python tab indentation issues where if you ran it as in from a Cloudformation deploy you get errors:
[ERROR] Runtime.UserCodeSyntaxError: Syntax error in module 'index': unindent does not match any outer indentation level (index.py, line 69) Traceback (most recent call last): File "/var/task/index.py" Line 69 except Exception as e:
If you correct that you will still come across other indentation issues. Fixing those lead you into some logic issues with Nonetype object comparisons and if statements when nothing is returned.
As per your contribution guidelines I thought I'd open an issue. I have corrected it in my own forked change here: https://github.com/miketypeguy/amazon-s3-checksum-verification/blob/formating-fixes/s3-checksum.yaml.
I can make a pull request if this looks good to solve the issues as I have tested thoroughly and it's working well.