title: terraform input selection based on condition under resource inputs
body: <p>I need to select the block of content based on condition to use under resource inputs,</p>
  <p>if var.enable_auto_scaling == false, use below inputs</p>
  <pre><code>    node_count            = 1       
  </code></pre>
  <p>if var.enable_auto_scaling == true, use below inputs</p>
  <pre><code>  max_count = 8
    min_count = 1
  </code></pre>
  <p>code:</p>
  <pre><code>resource &quot;azurerm_kubernetes_cluster_node_pool&quot; &quot;example&quot; {
    name                  = &quot;internal&quot;
    kubernetes_cluster_id = azurerm_kubernetes_cluster.example.id
    vm_size               = &quot;Standard_DS2_v2&quot;
  
    # if var.enable_auto_scaling == false
    #     node_count            = 1       
    # if var.enable_auto_scaling == true
    #     max_count = 8
    #     min_count = 1
  
    tags = {
      Environment = &quot;Production&quot;
    }
  }
  </code></pre>