Watch option for SAM Build command.

As we moved forward in the AWS Lambda space development, we found ourselves somewhat surprised that SAM did not have an option for an incremental build, that is, we had to run “sam build” every time we made the slightest change in our source code.

That initially did not seem like an issue because it would be relatively quick to run a sam build for 2 or 3 lambda functions. Still, as your project starts growing, a real problem for development speed might be already waiting for you around the corner, yikes!

So, trying to make the process more straightforward for the development community and ourselves, we worked in a small npm package that would help. A short note before sharing is, we are working with NodeJS.

https://www.npmjs.com/package/samwatch

https://github.com/mxitgo/samwatch

Although we are still making a round of testing, we wanted to share it with the hope it will help you and your team circumvent this particular issue.

In case you have any comments or questions, feel free to contact us.

Thanks, and happy lambda programming!

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s