Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatBackendConfigAsArgs ¶
FormatBackendConfigAsArgs formats the given variables as backend config args (e.g. of the format -backend-config=key=value). Used by both Terraform and Terragrunt.
func FormatPluginDirAsArgs ¶
FormatPluginDirAsArgs formats the plugin-dir variable -plugin-dir
func FormatTerraformArgs ¶
func FormatTerraformArgs(vars map[string]interface{}, prefix string, useSpaceAsSeparator bool, omitNil bool) []string
FormatTerraformArgs formats the given vars into HCL command-line argument format, with each var being prefixed with the given prefix. This is used by both Terraform and Terragrunt commands. If useSpaceAsSeparator is true, a space will separate the prefix and each var (e.g., -var foo=bar). If useSpaceAsSeparator is false, an equals will separate the prefix and each var (e.g., -backend-config=foo=bar). If omitNil is false, then nil values will be included as "null" (e.g. -backend-config=foo=null). If omitNil is true, then nil values will be formatted without the value (e.g. -backend-config=foo).
Types ¶
This section is empty.