Skip to content

Terraform crash due to invalid JSON #22704

@scjody

Description

@scjody

Terraform Version

Terraform v0.12.8

Terraform Configuration Files

{
  "module": {
    "jody-mp-1": {
      "source": "./main/",
      "providers": {
        "google.cloud": "google.cloud", #TODO
        "google.main": "google.testing"
      },
      "name": "jody-mp-1",
      "type": "testing",
      "license": "nope",
      "password": "also nope",
    }
  }
}

Debug Output

https://gist.github.com/scjody/65c1008cf988faa459b0a20a1d53e240

Crash Output

https://gist.github.com/scjody/ffadecab541e4e68f566497b7bc62b2d

Expected Behavior

Some sort of error message - the JSON I'm trying to use is invalid.

Actual Behavior

Crash

Steps to Reproduce

  1. terraform init

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions