Firebase cloud functions are more AWS Lambda competition, where you write JS functions that follow a particular interface and can do certain things.
This is being able to deploy regular NodeJS servers with no special changes or modifications, and have them run an autoscaling sandbox that does a really good job of keeping the server alive (and charging you) only when absolutely necessary. Also scales up infinitely (up to your budget, anyway) in a pinch.