MeilleursAgents / terraform-provider-ansiblevault

Read ansible vault from Terraform
https://registry.terraform.io/providers/MeilleursAgents/ansiblevault/latest
MIT License
76 stars 19 forks source link

How to get nested objects key? #132

Closed ivellios closed 1 year ago

ivellios commented 1 year ago

How do I get the value in the nested objects? I tried the typical for yaml dot-notation, but it does not work.

data "ansiblevault_path" "my_key" {
  path = "./vault.yaml"
  key = "group.subgroup.my_key"

The vault file:

group:
  subgroup:
    my_key: value

I get Error that it is not found in the vault.

ivellios commented 1 year ago

Nevermind, I didn't saved the vault file 🤦‍♂️