Skip to content
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

Implement corefunc_dump #1

Open
skyzyx opened this issue Sep 5, 2023 · 1 comment
Open

Implement corefunc_dump #1

skyzyx opened this issue Sep 5, 2023 · 1 comment
Assignees
Labels
BLOCKED Blocked by something. enhancement New feature or request waiting-on-upstream Need to wait for an upstream dependency to do something first.

Comments

@skyzyx
Copy link
Member

skyzyx commented Sep 5, 2023

  • Go: corefunc.Dump(any)
  • TF: corefunc_dump

Idea is to have something that can dump the contents of a variable. There are a few things that do this in Go, like gospew. However, I don't think that a straight-up spew of variable internals from Go is the right solution as HCL is a much simpler language with many-fewer constructs.

But I've not yet seen anything that provides this in Terraform other than, maybe, terraform console — which I've never used, but is supposed to be like a REPL for your Terraform state. This is meant to be something that works with Terraform plan, which more users are familiar/comfortable with.

The HCL language is strongly typed under the hood, and in the Terraform Plugin Framework. Not sure if this can be implemented without some sort of generics system, or by supporting any somehow.

Will need to investigate.

@skyzyx skyzyx self-assigned this Oct 7, 2023
@skyzyx skyzyx added enhancement New feature or request BLOCKED Blocked by something. waiting-on-upstream Need to wait for an upstream dependency to do something first. labels Oct 7, 2023
@skyzyx
Copy link
Member Author

skyzyx commented Oct 7, 2023

Blocked by same upstream issues as #9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BLOCKED Blocked by something. enhancement New feature or request waiting-on-upstream Need to wait for an upstream dependency to do something first.
Projects
None yet
Development

No branches or pull requests

1 participant