awslabs / aws-streaming-media-analytics

AWS Streaming Media Analytics is a serverless end-to-end solution for analyzing the video streaming experience
MIT No Attribution
39 stars 17 forks source link

Lambda functions migrated to python3.8 #11

Closed alcousins closed 4 years ago

alcousins commented 4 years ago

Description of changes:

This pull request migrates the lambda functions for processing fast.ly and cloudfront logs from python27 to python38.

It also refactors the python deployment process to use a requirements.txt file (rather than packaging dependencies here on github) and to deploy following the simple guide in lambda docs.

This change in deployment does raise some linting issues which i'll look at in another issue in the future, but i believe this greatly simplifies + modernizes the code.

I've not tested the fast.ly log parser, but it is broadly the same as the cloudfront one so i applied the same python fixes and hopefully it works reliably.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

alcousins commented 4 years ago

We aren't quite at the code-review stage, very much in cleanup mode. I'll just merge this one straight in.