There are DynamoDB Local[1] and AWS SAM CLI[2], both from AWS, which allow you to self-host DynamoDB and AWS Lambda functions. ;)
That said, I agree with your argument, but found it rather funny that you just picked two AWS services you can indeed run locally.
[1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerg...