input-provided

Invicton-Labs/input-provided/null

Terraform Module HCL NULL

A module that checks if a non-null input was provided.

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

Terraform Input Provided This module checks during the plan step whether a non-null, or possibly non-null, input value was provided. Generally, it can make this determination even if the actual value of the input is not known until the apply step (known after apply). This is extremely useful when using a conditional count value for a resource in a module, where the presence of an input variable is used to determine whether a resource should be created. Normally, this can only be done if the value of that input variable is known during the plan step; this module allows you to use that same pattern even if the input value isn't known until the apply step. It does this by taking advantage of Terraform's typing system. If an input is null, and is known to be null during the plan step (i.e. not

Inputs (1)
NameTypeDescriptionDefault
inputanyThe value to check to see if it has been provided in the Terraform config.{ "__TF_MAGIC_OBJECT_LIST_5dc338f33789
Outputs (3)
provided — Whether a value, other than a definitive (known at the plan step) `null`, was provided as an input.
one_if_provided — 1 if the `provided` output is `true`, 0 if `false`. Useful for `count` arguments of resources.
one_if_not_provided — 1 if the `provided` output is `false`, 0 if `true`. Useful for `count` arguments of resources.
Details
FrameworkTerraform Module
LanguageHCL
Version0.2.0
Cloud NULL
Total downloads1.7k
Inputs1
Outputs3
NamespaceInvicton-Labs
Updated