input-provided
Invicton-Labs/input-provided/null
A module that checks if a non-null input was provided.
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
| Name | Type | Description | Default |
|---|---|---|---|
| input | any | The value to check to see if it has been provided in the Terraform config. | {
"__TF_MAGIC_OBJECT_LIST_5dc338f33789 |
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.