Quantcast
Channel: Terraform - HashiCorp Discuss
Viewing all articles
Browse latest Browse all 11432

Inappropriate value for attribute "vars"

$
0
0

Is there a way to define ‘control_nodes’ in datasources.tf so that it does not hit the following error?

From variables.tf:

variable "control_nodes" {
        description = "A list of IP addresses of control nodes"
}
│ Error: Incorrect attribute value type
│
│   on modules/control/datasources.tf line 12, in data "template_file" "control":
│   12:         vars = {
│   13:                 control_nodes = var.control_nodes
│   14:         }
│
│ Inappropriate value for attribute "vars": element "control_nodes": string required.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 11432

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>