"github.com/hashicorp/hil"
"github.com/hashicorp/hil/ast"
"github.com/hashicorp/terraform/config"
+ "github.com/hashicorp/terraform/config/hcl2shim"
"github.com/hashicorp/terraform/config/module"
"github.com/hashicorp/terraform/flatmap"
)
-const (
- // VarEnvPrefix is the prefix of variables that are read from
- // the environment to set variables here.
- VarEnvPrefix = "TF_VAR_"
-)
-
// Interpolater is the structure responsible for determining the values
// for interpolations such as `aws_instance.foo.bar`.
type Interpolater struct {
func unknownVariable() ast.Variable {
return ast.Variable{
Type: ast.TypeUnknown,
- Value: config.UnknownVariableValue,
+ Value: hcl2shim.UnknownVariableValue,
}
}
// ".#" count field is marked as unknown to indicate "this whole list is
// unknown". We must honor that meaning here so computed references can be
// treated properly during the plan phase.
- if lengthAttr == config.UnknownVariableValue {
+ if lengthAttr == hcl2shim.UnknownVariableValue {
return unknownVariable(), nil
}
// ".%" count field is marked as unknown to indicate "this whole list is
// unknown". We must honor that meaning here so computed references can be
// treated properly during the plan phase.
- if lengthAttr == config.UnknownVariableValue {
+ if lengthAttr == hcl2shim.UnknownVariableValue {
return unknownVariable(), nil
}