Title, I got handed down some AWS project that no longer works. The project was written in Python 2.7, which is appears AWS Lambda has deprecated. So I’ve attempted to update the code to the latest release Py 3.9 and most of my errors are resolved.
Due to very poor documentation & lack of comments, I’ve been stuck trying to figure out which parts of this codebase go to which AWS services.
For example: this project had 3 different __init__.py files & one of them is even empty.
The code apparently was working before the past developer parted ways with the company. The company didn’t have access to the AWS account (totally their fault & I prefer not to have the discussion), but I am now tasked with hooking up all this code to a new AWS account.
I’ve no idea which pieces of this project go to which services. Some of them are obvious. Certainly the Lambda.py is supposed to go to a lambda function.
Hopefully in the code I can find ways to determine where these files were originally uploaded. I am praying that I can find functions, methods or libraries within this code to help suggest things like “oh this .py file interacts with the AWS Simple Email Service” or “wow this .py file interacts with the S3 bucket”
I am coming from Google Cloud Platform, so my knowledge of the python codebase that interacts with AWS is limited. I am excited to take on this role & expand my skillset in cloud technologies. Just performing a little rant & organizing my thoughts before I get too deep into setting up the integrations necessary on AWS to get this code to work on a new AWS account.
In short the project does this:
Get JSON from Webhook, perform calculation & alter JSON, convert to PDF, email PDF to customer, store PDF in S3 bucket.
The project uses a library called pypdftk or Python PDK Toolkit. Hopefully this is compatible with Py 3.9, because apparently Py 2.7 is deprecated on AWS Lambda.