This introduces include, a new helper function inspired by the same function in helm, which can be used as an alternative to snippet. The function works almost exactly like snippet, except instead of copying the contents verbatim, it can be used to pass the contents through the templating engine prior to including. This promotes reusability by having a common set of template text where we use boilerplate.
The primary use case is to refactor the provider code in the CIS compliance reference architecture so that we can reference variables like AwsRegion into a common snippet that is injected.
This introduces
include
, a new helper function inspired by the same function inhelm
, which can be used as an alternative tosnippet
. The function works almost exactly likesnippet
, except instead of copying the contents verbatim, it can be used to pass the contents through the templating engine prior to including. This promotes reusability by having a common set of template text where we use boilerplate.The primary use case is to refactor the
provider
code in the CIS compliance reference architecture so that we can reference variables likeAwsRegion
into a common snippet that is injected.