value-changed
Invicton-Labs/value-changed/null
Terraform Values Changed This module checks to see if a given input value has changed from the value that was provided for the last apply. Usage Run 1 `` module "value-changed" { source = "Invicton-Labs/value-changed/null" value = "original value" } output "value-changed" { value = module.value-changed } ` Note that the changed output parameter is true since it's being stored for the first time. ` Apply complete! Resources: 2 added, 0 changed, 0 destroyed. Outputs: value-changed = { "changed" = true "new_value" = "original value" "old_value" = null } ` Run 2 (do not change the input value) ` module "value-changed" { source = "Invicton-Labs/value-changed/null" value = "original value" } output "value-changed" { value = module.value-changed } ` Note that the changed output parameter is false
| Name | Type | Description | Default |
|---|---|---|---|
| value | any | The value to check for changes. | required |
| consider_first_use_as_changed | bool | Whether to return `true` for the `changed` output if this module is being used f | true |
| save_depends_on | list(any) | An optional list of things to wait for before storing the new value in the state | [] |
changed — Whether the `value` input parameter has changed since the last apply.old_value — The value from the last apply.new_value — The new value.saved — This output will always return `true`, but will not return until after the new value is saved in sta