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
Using outputs from one Terraform resource as inputs to another Terraform resource works great when outputted reference is a string. However it seems to be interpreting collections (lists, maps and objects) as strings too. For example if my parent Terraform outputs a list of strings
output "testing" {
value = ["one", "two"]
}
and the child Terraform requires a list of strings
variable "testing" {
type = list(string)
}
the child Terraform will blow up with Invalid value for input variable ... list of string required. I can view the output and verify the secret is storing the value correctly, but the generated.auto.tfvars.json is converting the array to a string
{...,"testing":"[\"one\",\"two\"]"}
I've been able to get around this by using the terraform_remote_state data lookup. But it would be nice if the controller could support these types of output references.
The text was updated successfully, but these errors were encountered:
Using outputs from one Terraform resource as inputs to another Terraform resource works great when outputted reference is a string. However it seems to be interpreting collections (lists, maps and objects) as strings too. For example if my parent Terraform outputs a list of strings
and the child Terraform requires a list of strings
the child Terraform will blow up with
Invalid value for input variable ... list of string required
. I can view the output and verify the secret is storing the value correctly, but thegenerated.auto.tfvars.json
is converting the array to a stringI've been able to get around this by using the terraform_remote_state data lookup. But it would be nice if the controller could support these types of output references.
The text was updated successfully, but these errors were encountered: