Best way to set up server side rendering with python and AWS

Hi, I’m trying to figure out the best way to setup server-side rendering for a webpage with just python and AWS.
The usual way would be to use Django, but since we will be using AWS Dynamo DB the build in ORM Mapper is of no use. So is there a reason to use Django in such a case at all or would the combination AWS API Gateway + Lambda + Cloudfront Edge allow the server-side rendering approach by its own without Django?

Thanks in advance