Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeFromFile ¶
func GenerateFromFile ¶
Types ¶
type ConfigurationsFile ¶ added in v0.2.0
type ConfigurationsFile struct { // These are used for generating Terragrunt root files. TerragruntConfigurations []TerragruntConfiguration `hcl:"terragrunt_configuration,block"` // These `include` blocks will be present in all generated files. TerragruntIncludeAlls []terragrunt.IncludeConfig `hcl:"terragrunt_include_all,block"` }
ConfigurationsFile represents a file containing a set of configurations.
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
func NewGenerator(optFns ...GeneratorOptsFn) (*Generator, error)
func (*Generator) DecodeFromFile ¶
func (*Generator) GenerateFromConfig ¶ added in v0.3.0
func (g *Generator) GenerateFromConfig(config *ConfigurationsFile) error
func (*Generator) GenerateFromFile ¶
type GeneratorOptsFn ¶
func WithFs ¶
func WithFs(fs afero.Fs) GeneratorOptsFn
WithFs sets the file system for the Generator.
type TerragruntConfiguration ¶ added in v0.2.0
type TerragruntConfiguration struct { Name string `hcl:"name,label"` // Source is the value passed for the `terraform` block's `source` attribute. Source string `hcl:"source,attr"` // DestinationPath is the path at which the file should be generated. DestinationPath string `hcl:"destination_path,attr"` // Includes is used to generate an `includes` block in the generated file. Includes []terragrunt.IncludeConfig `hcl:"include,block"` }
TerragruntConfiguration represents the information required for the generation of a Terragrunt configuration.
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
terragrunt
Package Terragrunt defines the structures of generated Terragrunt configuration files.
|
Package Terragrunt defines the structures of generated Terragrunt configuration files. |
Click to show internal directories.
Click to hide internal directories.