Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseHclResources ¶
func ParseTerragruntProject ¶ added in v1.7.0
Types ¶
type Config ¶ added in v1.7.0
type Config struct {
ProviderConfig map[schema.ProviderName]ProviderConfig `json:"provider_config"`
}
type ParsedProject ¶ added in v1.7.0
type ParsedProject struct { Directory string Provider schema.ProviderName DefaultRegion string RootModule Module }
func (ParsedProject) GetModule ¶ added in v1.7.0
func (pp ParsedProject) GetModule() schema.ModuleDef
func (ParsedProject) GetResources ¶ added in v1.7.0
func (pp ParsedProject) GetResources() []schema.ResourceDef
type Project ¶ added in v1.7.0
type Project struct { TerraformVersion string `json:"terraform_version"` FormatVersion string `json:"format_version"` InfracostResourceChanges interface{} `json:"infracost_resource_changes"` Configuration Config `json:"configuration"` PlannedValues map[string]Module `json:"planned_values"` PriorState interface{} `json:"prior_state"` }
type ProviderConfig ¶ added in v1.7.0
type ProviderConfig struct { Name schema.ProviderName `json:"name"` Expressions struct { Region struct { ConstantValue string `json:"constant_value"` } `json:"region"` } `json:"expressions"` }
type Resource ¶
type Resource struct { Address string `mapstructure:"address"` Mode string `mapstructure:"mode"` Name string `mapstructure:"name"` Type string `mapstructure:"type"` Values map[string]interface{} `mapstructure:"values"` }
func (Resource) ToResource ¶ added in v1.7.0
func (r Resource) ToResource(provider schema.ProviderName, defaultRegion string) schema.ResourceDef
Click to show internal directories.
Click to hide internal directories.