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

Return structured data rather than flattening #98

Open
james-callahan opened this issue Jan 13, 2023 · 4 comments
Open

Return structured data rather than flattening #98

james-callahan opened this issue Jan 13, 2023 · 4 comments
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request help wanted Extra attention is needed

Comments

@james-callahan
Copy link

Currently all data is flattened.
I'd rather have full structured data for my e.g. yaml document

@carlpett
Copy link
Owner

Hi @james-callahan,
This is not possible with the Terraform plugin SDK, sadly.

However, Hashicorp released a new provider framework just a few weeks ago which appears to have some more possibilities around complex types, but I have not yet had time to investigate how complicated a migration is.

@carlpett carlpett added enhancement New feature or request help wanted Extra attention is needed dependencies Pull requests that update a dependency file labels Jan 15, 2023
@NicolasTobias
Copy link

Wow, just i was looking for this.
Because pushing the data from the sops file to vault because is flattened, is not possible.

@NicolasTobias
Copy link

how it is going? any foreseeable estimation?

@basvd
Copy link

basvd commented Nov 28, 2023

As a workaround, you might try this approach:

data "sops_file" "secrets" {
  source_file = "secrets.encrypted.json"
}

locals {
  secrets = jsondecode(data.sops_file.secrets.raw)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants