Actually when I get data from a kv_secret_v2, I could retrieve the data and some metadata, but not the version of the secret.
This information is returned by API, but not available in data source informations.
Affected Resource(s) and/or Data Source(s)
data_vault_kv_secret_v2
Potential Terraform Configuration
data "vault_kv_secret_v2" "secret"{
mount = vault_mount.kvv2.path
name = "secret"
}
output "secret_version" {
value = data.vault_kv_secret_v2.secret.version
}
Description
Actually when I get data from a kv_secret_v2, I could retrieve the data and some metadata, but not the version of the secret. This information is returned by API, but not available in data source informations.
Affected Resource(s) and/or Data Source(s)
Potential Terraform Configuration
References
It could be added here : https://github.com/hashicorp/terraform-provider-vault/blob/main/vault/data_source_kv_secret_v2.go#L165
Would you like to implement a fix?
None