hashicorp / hashicorp/terraform-exec

Use terraform-json StateOutput for Output method return value

Open
#393 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
786
Forks
129
PR merge metrics
No merged PRs in 30d

Description

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`

Contributor guide

Open the contributing guide

Research direction

Start in output.go at the Output method and compare its current OutputMeta return type with terraform-json's StateOutput definition. Confirm that the method's public return value uses StateOutput for terraform output -json, with the existing behavior preserved.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.