sbchapin / serverless-terraform-variables

Retrieve terraform output variables for interpolation in serverless configuration
MIT License
9 stars 3 forks source link

Better way to interact with terraform #4

Open sbchapin opened 5 years ago

sbchapin commented 5 years ago

This plugin directly uses terraform via external synchronous exec.

To ever get close to a major release, this plugin needs to be able to interpret terraform state without relying on an external exec of terraform CLI.

Must be able to...

Suggestions for how to proceed and experience with previous solutions are very welcome (gRPC for enterprise terraform, anyone?)

sbchapin commented 4 years ago

@theburningmonk published a lovely article about serverless referencing terraform state via tf-deployed CloudFormation stacks.

This is a viable alternative to using output variables from terraform (and consequently this plugin, as serverless can directly reference CF). However, it has the downside of producing redundant terraform code.

This may be a red herring (for this project's quest to find terraform output nirvana), but I believe anyone considering this problem should give it a read.

Thanks to @theburningmonk for going out of his way to document his techniques on this matter (and good to know that other people share my views of serverless deployment.