lifeomic / terraform-plan-parser

Command line utility and JavaScript API for parsing stdout from "terraform plan" and converting it to JSON.
MIT License
149 stars 16 forks source link

Cannot parse deposed line #26

Open nitrocode opened 5 years ago

nitrocode commented 5 years ago

Cannot parse this destroy line

From terraform-plan.stdout

  - module.service.module.service.module.blue.aws_launch_configuration.default (deposed)
$ parse-terraform-plan  -i terraform-plan.stdout | jq .errors[0]
{
  "code": "UNABLE_TO_PARSE_CHANGE_LINE",
  "message": "Unable to parse \"  - module.service.module.service.module.blue.aws_launch_configuration.default (deposed)\" (ignoring)"
}

I guess this deposed thing is undocumented https://github.com/hashicorp/terraform/issues/10753

Lucas-Desouza commented 3 years ago

I'm seeing the same issue. Is this only working with a specific terraform version?

Lucas-Desouza commented 3 years ago

I'm seeing this with terraform 1.0.5