diff --git a/config/config.go b/config/config.go index bb3f5f1c8a54..c6128d1f3573 100644 --- a/config/config.go +++ b/config/config.go @@ -31,6 +31,7 @@ type Config struct { Atlas *AtlasConfig Modules []*Module ProviderConfigs []*ProviderConfig + DataSources []*DataSource Resources []*Resource Variables []*Variable Outputs []*Output @@ -67,6 +68,18 @@ type ProviderConfig struct { RawConfig *RawConfig } +// DataSource is the configuration for a data source. +// A data source represents retrieving some data from an external source for +// use elsewhere in a Terraform configuration, or computing some data +// internally within a logical provider. +type DataSource struct { + Name string + Type string + RawConfig *RawConfig + Provider string + DependsOn []string +} + // A resource represents a single Terraform resource in the configuration. // A Terraform resource is something that represents some component that // can be created and managed, and has some properties associated with it.