value-changed

Invicton-Labs/value-changed/null

Terraform Module HCL NULL
Install
module "value-changed" {
source = "Invicton-Labs/value-changed/null"
version = "0.2.0"
}
plain text: /constructs/tfmod-invicton-labs-value-changed-null/install.txt
⭐ Source on GitHub 📦 Registry page
README

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

Inputs (3)
NameTypeDescriptionDefault
valueanyThe value to check for changes. required
consider_first_use_as_changedboolWhether to return `true` for the `changed` output if this module is being used ftrue
save_depends_onlist(any)An optional list of things to wait for before storing the new value in the state[]
Outputs (4)
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
Resources (2)
null_resourcerandom_uuid
Details
FrameworkTerraform Module
LanguageHCL
Version0.2.0
Cloud NULL
Total downloads804
Inputs3
Outputs4
Resources2
NamespaceInvicton-Labs
Updated