I know lambdas go into an inactive state after 14 days of non-use (AWS docs here and here), then on invocation, the lambda fails with:
Resources for the function are being restored. (Service: Lambda, Status Code: 502, Request ID: bd8cd989-2197-4126-a0aa-ad705ed1a9a1)
It then provisions resources (usually taking 2-3 minutes) and makes the lambda active again for calling.
I've experienced this as well with step functions that are invoked only occasionally with the first lambda that is invoked so failing as above.
But it appears that later lambdas in the step function do not fail due to inactivity. Is there documentation on AWS that confirms that upon the invocation of the "first" lambda in a step function, that the state machine also "awakens" and resources all the other lambdas of the step function (without explicitly invoking them)?
I am assuming this is why later lambdas (that are not used otherwise except in the step function) do not fail, but I would like to know if there is clearer documentation that this is the case. I have not been able to find such documentation.