6 "github.com/hashicorp/terraform/config"
9 // EvalCountCheckComputed is an EvalNode that checks if a resource count
10 // is computed and errors if so. This can possibly happen across a
11 // module boundary and we don't yet support this.
12 type EvalCountCheckComputed struct {
13 Resource *config.Resource
17 func (n *EvalCountCheckComputed) Eval(ctx EvalContext) (interface{}, error) {
18 if n.Resource.RawCount.Value() == unknownValue() {
19 return nil, fmt.Errorf(
20 "%s: value of 'count' cannot be computed",