conditional-trigger

Invicton-Labs/conditional-trigger/null

Terraform Module HCL NULL

Accepts a boolean condition for whether a new value should be generated.

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

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

Inputs (1)
NameTypeDescriptionDefault
regenerateboolWhether a new ID should be generated. required
Outputs (1)
uuid — The UUID that only changes when either the `regenerate` input variable is set to `true`, or this mod
Resources (1)
random_uuid
Details
FrameworkTerraform Module
LanguageHCL
Version0.1.1
Cloud NULL
Total downloads859
Inputs1
Outputs1
Resources1
NamespaceInvicton-Labs
Updated