That's probably true. I'm paying around 70 USD per month for Azure Functions (an equivalent of AWS Lambda) because they charge like crazy for disk read/writes and my application is quite tiny, definitely could fit on a raspberry pi. But I don't bother to optimize.