title: how to override Map variable values defined on module level on terraform
body: <p>Ex: I have created custom module in terraform</p>
  <pre><code>main.tf
  resource &quot;xyz&quot; &quot;abc&quot; {
   name = var.settings[name]
   type = var.settings[type]
  }
  
  variable.tf
  variable &quot;settings&quot; {
   type = map(any)
   description = &quot;Default variables&quot;
    default = {
      name  = &quot;test&quot;
      type = &quot;instance&quot;
  }
  </code></pre>
  <p>I am accessing this module and want to override the default values while accessing module</p>
  <pre><code>module &quot;xyz&quot; {
  
  source =&quot;../../xyz&quot;
  name = &quot;google&quot;    // want to override this default value 
  type = &quot;cloud&quot;     //want to override this default value 
  }
  </code></pre>
  <p>please help how to override the map variable defined on module level</p>