So basically abusing how serverless functions are supposed to work by "warming them up". I wouldn't count on this working long-term as cloud vendors will be more aggressive in discouraging this behaviour.
I would expect that the number of customers that would roll this out and run it without any mistakes that drive up the monthly spend is small enough that Amazon doesn’t care.