-
Notifications
You must be signed in to change notification settings - Fork 548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement]: Support ephemeral values in terraform 1.10.0 #2373
Comments
While
and probably some other that I might've missed. These are the ones I've come across that either have a TTL such as tokens/certs, or are static in nature such as KV. |
+1. It can be a killer feature. Here an usecase where ephemeral can save me resource "vault_kv_secret_v2" "secrets" {
for_each = { for env in var.branches : env=> env }
mount = "test"
name = "test/${each.key}"
data_json = jsonencode(
merge(
try(data.vault_kv_secret_v2.existing_secrets[each.key].data, {}),
{ for key in var.secrets_keys : key => lookup(
try(data.vault_kv_secret_v2.existing_secrets[each.key].data, {}),
key,
"PLACEHOLDER"
)}
)
) I populate manually my secret outside Terraform. But, if I run a 2nd time Terraform, it will not recognize my secret and will erase them. Using ephemeral data for retreiving secrets without store them in the tfstate will be the perfect solution. Maybe my method is wrong but I know that supporting ephemeral data and resources can really be a killer feature and will be useful for many people |
Description
Terraform released ephemeral values in the latest 1.10.0 which would be really useful when dealing with vault secrets, avoiding to have them stored in the state.
Here is the documentation of the feature https://www.hashicorp.com/blog/terraform-1-10-improves-handling-secrets-in-state-with-ephemeral-values
Any chances we could see this in a near future on the provider ?
Affected Resource(s) and/or Data Source(s)
vault_generic_secret
Potential Terraform Configuration
No response
References
https://www.hashicorp.com/blog/terraform-1-10-improves-handling-secrets-in-state-with-ephemeral-values
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: