Infisical / terraform-provider-infisical

The offical Infisical Terraform provider
Mozilla Public License 2.0
9 stars 6 forks source link

example is wrong on the official page of Infisical provider #46

Open srudyka opened 4 months ago

srudyka commented 4 months ago

https://registry.terraform.io/providers/Infisical/infisical/latest/docs/data-sources/secrets

The following example code needs to be changed:

output "single-secret" {
  value = data.infisical_secrets.backend-secrets.secrets["SECRET-NAME"]
}

to

output "single-secret" {
  value = data.infisical_secrets.backend-secrets.secrets["SECRET-NAME"].value
}