-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plan/Apply -json
support missing
#183
Comments
As a workaround: ctx := context.Background()
outfile := "./mystate.state"
tfexec.Plan(context, tfexec.Out(outfile))
tfjson, _ := txexec.ShowPlanFile(context, outfile)
b, _ := json.Marshal(tfjson)
jsonOutfile := "./mystate.json"
os.WriteFile(jsonOutfile, b, 0666) |
We have a use case for being able to stream JSON with the The intention is to modify the acceptance testing framework so that the |
Closed in #354. |
Plans and applies now support streaming json with the
-json
flag. Adding support for the flag may not be enough--including streamed data structures fromstdout
would be preferred.The text was updated successfully, but these errors were encountered: