A hackday project to add some boilerplate templates to generate Terraform modules:
Template to generate a basic Terraform module that follows all of our conventions: file naming conventions (variables.tf, outputs.tf, etc), commenting conventions, provider versioning conventions, code formatting, etc.
Template to generate a basic Terraform module with examples and tests. The example uses the generated module and the automated test tests the example. Again, everything follows our conventions: test stages, namespacing with unique IDs, etc.
Template to generate a wrapper module of an existing module, along with examples and tests. This makes it easier to create/maintain wrapper modules like we have in the CIS Service Catalog.
Some fixes and improvements to boilerplate itself:
Add support for setting a custom working directory for hooks using the dir param.
Fix a bug in the parsing of --var KEY=VALUE flags where it would break if VALUE contained an equals sign.
Description
A hackday project to add some boilerplate templates to generate Terraform modules:
variables.tf
,outputs.tf
, etc), commenting conventions, provider versioning conventions, code formatting, etc.dir
param.--var KEY=VALUE
flags where it would break ifVALUE
contained an equals sign.Video overview: https://gruntwork-io.slack.com/archives/CM6RR6JE7/p1668089425227579
TODOs
Read the Gruntwork contribution guidelines.
Release Notes (draft)
Added / Removed / Updated [X].
Migration Guide