28mm / blast-radius

Interactive visualizations of Terraform dependency graphs using d3.js
https://28mm.github.io/blast-radius-docs/
MIT License
2.05k stars 258 forks source link

Error: Unsuitable value type #91

Open jeacott1 opened 3 years ago

jeacott1 commented 3 years ago

Hi, I'm trying blast-radius for the first time and coming across this error:

Error: Unsuitable value type

On .terraform/modules/kind_zero/kind/_modules/kind/versions.tf line 4:
Unsuitable value: string required

versions.tf here looks like this:


terraform {
  required_providers {
    kind = {         <--- line 4
      source  = "kyma-incubator/kind"
      version = "0.0.6"
    }
  }

  required_version = ">= 0.13"
}

thoughts?

juangascon commented 3 years ago

This error comes from Terraform syntax evolution. In the Dockerfile we can see that it uses TF 0.12.12. The issue can be solved by changing the first line to "ARG TF_VERSION=0.13.5" or "ARG TF_VERSION=0.14.3" (latest) I do not know if it is possible to change the Terraform version in the python module.