Sure, cloud is usually more expensive, so is developer time. If your team is wrangling more with the quirks of your own setup instead of the standardized workflow of a paas provider, your calculation won't work in your favour anymore.
And then turn back to trying to work out how to grant IAM access to the resource that developer asked for before turning their attention to why traffic won’t come out of the VPC before trying to work out how to do compression on API gateway.
The whole time pining for the old days of running everything on Linux.