Especially since “EC2” is not just a VM. There are dozen services at least that come under EC2.
Also if you start trying to use DynamoDB like you would Mongo, you’re going to be really upset. The use cases, design considerations and performance considerations of DynamoDB compared to Mongo is night and day.