Re:AWS Lambda Terraform Cookbook with working examples
by oblio on Thursday December 31, 2020 @05:16AM
(#25591354)
SAM is a tool created by AWS.
It's a set of custom resources plus some CloudFormation macros that expand to CloudFormation templates.
It's also a bunch of scripts and utilities that help with the packaging and deployment.
At the end of the day you can use it to generate the final CloudFormation template and run that manually, if you want.
The reason I'd be reluctant to use it without thoroughly being it is that I don't like using any 3rd party monster suite of modules. I've been bitten by that a few times. You're at the mercy of the 3rd party to continue updating and supporting the modules. On top of that, it may not support a particular user case you want to implement. And it's almost worse if it does, because that likely means that it's no longer a simple wrapper around raw terraform resources, but a huge complex beast.
In this case, I don't think the author necessarily expects the user to directly user his code. It is a set of examples. The modules themselves are very simple (really just one or two raw resources with vars and outputs)