title: How to run multipul modules in same file in terraform?
body: <p>I using <code>https://github.com/cloudposse/terraform-aws-acm-request-certificate</code> to generate certificate using terraform and aws.</p>
  <p>How to run multipul domains in the same file in terraform? (not subdomain)</p>
  <p>I try this but I have error <code>Error: Duplicate module call</code>:</p>
  <pre><code>module &quot;acm_request_certificate&quot; {
    source                            = &quot;git::https://github.com/cloudposse/terraform-aws-acm-request-certificate.git?ref=master&quot;
    domain_name                       = &quot;example.com&quot;
    process_domain_validation_options = true
    ttl                               = &quot;300&quot;
  }
  
  module &quot;acm_request_certificate&quot; {
    source                            = &quot;git::https://github.com/cloudposse/terraform-aws-acm-request-certificate.git?ref=master&quot;
    domain_name                       = &quot;otherexample.com&quot;
    process_domain_validation_options = true
    ttl                               = &quot;300&quot;
  }
  </code></pre>
  <p>I looking for solution like:</p>
  <pre><code>const domains = [&quot;example.com&quot;, &quot;otherexample.com&quot;]
  
  foreach(domain of domains) {
   module &quot;acm_request_certificate&quot; {
    source                            = &quot;git::https://github.com/cloudposse/terraform-aws-acm-request-certificate.git?ref=master&quot;
    domain_name                       = domain
    process_domain_validation_options = true
    ttl                               = &quot;300&quot;
   }
  }
  </code></pre>