You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
variable "instance_ips" {
type = list(string)
description = "list of openstack instances ips"
nullable = false
}
I get the following error message:
│ Error: Invalid value for input variable │
│ │
│ on generated.auto.tfvars.json line 1: │
│ 1: {"instance_ips":"***","instance_ips__type":"***","instance_names":"***","instance_names__type":"***","instance_ssh_key":"***","previous":"***","se │
│ rvice":"***","target":"***"} │
│ │
│ The given value is not suitable for var.instance_ips declared at │
│ variables.tf:27,1-24: list of string required.
Not sure how I should handle that ... I am mistaking somewhere ?
Thanks
The text was updated successfully, but these errors were encountered:
For anyone interested, my current dirty workaround is to declare in my k3s Terraform plan instance_ips as a string and use a local variable in my main.tf:
The fix never completely worked as intended in my experience. What I personally did as a workaround was using JSON strings for any output/input that wasn’t a simple string output and then decode than into a local.
it’s a workaround, not a real fix, but it works consistently.
(Kind of reopening #465, although supposingly fixed by #504 @chanwit)
I am using a Terraform plan to spawn an Openstack instance, outputting:
I am using the output Secret as an input for my next Terraform plan (installing a k3s cluster):
and declare
instance_ips
as a list of strings:I get the following error message:
Not sure how I should handle that ... I am mistaking somewhere ?
Thanks
The text was updated successfully, but these errors were encountered: