We also have "dev mode" which let's you to test/debug your lambdas locally without re-deployment
As does both SAM and the CDK.
https://docs.aws.amazon.com/cdk/v2/guide/testing-locally-get...
But this is 2026. You should be deploying Docker containers to Lambda and those are really easy to test locally
Docker has a large cold start time usually, sometimes it can take up to 10 seconds for a dockerized Python lambda to invoke. Are there solutions for that, that include docker?