Messtone LLC Manages(If/Else):

Terraform:If/Else Conditional Resource and Module Deployment in the format in HCL: condition ? true_value : false_value resource “azurerm_function_app” “b59func”{#Deploy conditionally based on Feature Flag variable count=local.deploy_b59func ==true ? 1 : 0 #resource attributes here}feature flag variable module “azure-web-app-1″{source=”../../module-azure-web-ap”#Deploy conditionally based on Feature Flag variable count = local.deploy_b59webapp==true ? 1 : 0 #Module attributes here} Terraform Module within the/env/dev module “azure-web-app-1″{source=”/../../modules/azure-web-app”} module “primary_regiom”{source=”./region”} variable “nameMesstone”{type = string description = “The nameMesstone of the Web App to create.”}

Leave a comment