Is it programmatically possible to access the previous version of a Vault secret in Terraform using the vault_generic_secret resouce?
If the current version of a Vault secret is 21, Terraform datasource can access the previous secret version like so:
data "vault_generic_secret" "ssh_key_previous_version" {
path = "kv/dev/ssh/var.ssh_key_name"
version = 20
}
Is there a process to lookup the previous Vault secret version (key version -1) dynamically ?