terraform-provider-sops
terraform-provider-sops copied to clipboard
Return structured data rather than flattening
Currently all data is flattened. I'd rather have full structured data for my e.g. yaml document
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.
Wow, just i was looking for this. Because pushing the data from the sops file to vault because is flattened, is not possible.
how it is going? any foreseeable estimation?
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)
}