conditional-trigger
Invicton-Labs/conditional-trigger/null
Accepts a boolean condition for whether a new value should be generated.
Terraform Conditional Trigger Accepts a boolean condition for whether a new value should be generated. This allows you to provide a trigger or keeper value that will only change if the regerate input variable is set to true. Notes: - This module has the same limitations as the Invicton-Labs/get-state/null module. Namely, only the s3 and local backend types have been tested (others should work though), and if you're using a local backend on windows, you must use the -lock=false flag on terraform plan and terraform apply. Sample Use Case Problem Consider a case where you want to generate a new random ID for a resource if and only if a given input variable is set. With conventional Terraform, there's no way to do this. You might try something like this: `` variable "regenerate_id" { descripti
| Name | Type | Description | Default |
|---|---|---|---|
| regenerate | bool | Whether a new ID should be generated. | required |
uuid — The UUID that only changes when either the `regenerate` input variable is set to `true`, or this mod