The Hidden Magic of Extensions
AWS Lambda execution lifecycle has main phases: initialization, invocation, and shutdown. In the initialization phase, Lambda creates the runtime environment, downloads the code, imports everything needed, and runs the functions initialization code. In the invocation phase, the Lambda will get an input, process it, and produce an output. After the invocation phase, Lambda will go to an ideal state and wait for the next input.