hashicorp / terraform-exec

Terraform CLI commands via Go.
https://pkg.go.dev/github.com/hashicorp/terraform-exec
Mozilla Public License 2.0
662 stars 112 forks source link

Use terraform-json StateOutput for Output method return value #393

Open prksu opened 1 year ago

prksu commented 1 year ago

Currently, the Output method terraform output -json returns a map with its own type value i.e. OutputMeta

https://github.com/hashicorp/terraform-exec/blob/3fe5e310fd57434fdb99157c26d6dd1241c2b618/tfexec/output.go#LL39C73-L39C94

according to the project description, terraform-exec return value should use the data type defined in terraform-json which has the fit type for this case i.e. StateOutput