Checkout https://github.com/kaihendry/helloworld if you want to do something similar on AWS.
I'm using aur/aws-sam-cli btw to upload the code to the AWS lambda runtime aka "serverless".
AWS SAM could be better. There are two pain points:
1. https://github.com/aws/aws-sam-cli/is... - SAM doesn't show the CNAME
2. https://github.com/aws/aws-sam-cli/is... - slow to update
00:00 A local deployment
05:23 Adjusting for a serverless deployment
12:00 Wrapping up, how expensive is serverless?