mirror of https://github.com/hashicorp/terraform
When the ephemeral_values experiment is active, a module author can designate individual input variables and output values as being "ephemeral", which doesn't currently do anything but in future commits will represent that the values can be used only in locations that don't require Terraform to persist the value as part of state snapshots or saved plan files.TF-13085
parent
1ef2ad7d4c
commit
6fad32b033
@ -0,0 +1,21 @@
|
||||
# ALLOW-LANGUAGE-EXPERIMENTS
|
||||
|
||||
# If the ephemeral_values features get stabilized, this test input will fail
|
||||
# due to the experiment being concluded, in which case it might make sense to
|
||||
# move this file to valid-files and remove the experiment opt-in
|
||||
#
|
||||
# If this experiment is removed without stabilizing it then this will fail
|
||||
# and should be removed altogether.
|
||||
|
||||
terraform {
|
||||
experiments = [ephemeral_values] # WARNING: Experimental feature "ephemeral_values" is active
|
||||
}
|
||||
|
||||
variable "in" {
|
||||
ephemeral = true
|
||||
}
|
||||
|
||||
output "out" {
|
||||
ephemeral = true
|
||||
value = var.in
|
||||
}
|
||||
Loading…
Reference in new issue