CloudFormation errors out. Python version needs to be updated.
The runtime parameter of python3.7 is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (python3.12) while creating or updating functions. (Service: Lambda, Status Code: 400, Request ID: 318fecf5-0598-4cf2-84c6-09e350369b86)" (RequestToken: 00a811ba-b0d9-9897-4df4-244f2af5fb85, HandlerErrorCode: InvalidRequest)
CloudFormation errors out. Python version needs to be updated.