I’m building my first Serverless app on AWS Lambda. I haven’t touched it in a few weeks, and just finished with some local development.
Now I want to deploy it to Lambda, but I realized I have no idea what changes I would actually be deploying since I can’t recall if I ran a deploy at the end of my last development session a few weeks ago. This is a pretty scary situation to be in. In other words, I don’t know if I’d be deploying just today’s commit, or code from several weeks ago as well.
I’m migrating from Heroku, and I feel like Heroku handled this pretty well by associating every deployment with a particular Git commit. I’d love the same for Serverless on Lambda, so I can see for instance that my development Lambda environment is running commit abc1234 from a few weeks ago (obviously I’m using Git locally for version control).
How do folks generally handle this? Note that I’m using the Serverless Stage Manager with development / staging / production environments if that makes a difference.