How to Add Timestamps to sls deploy Output for Better Deployment Insights?
SOLVE
I'm looking for a way to analyze the time taken by each step of the sls deploy process to identify bottlenecks in my deployment pipeline. While the interactive mode shows a running timer, I need more detailed timestamps for actions like downloading dependencies, building Lambda layers, compiling templates, and waiting for CloudFormation. Using --verbose provides extra logs but no timestamps.
Is there a way to achieve this natively in Serverless Framework or via an external tool? Also, does the solution change when deploying with a Serverless Compose file? Any guidance would be appreciated!
That's an excellent question! Let me consult with our experts to see if they have any specific recommendations or insights that could be helpful for you.