title: Issues with importing resource to terraform module
body: <p>I have created module named <strong>workflow</strong> for Azure LogicApp
  Here is the module:</p>
  
  <pre><code>resource "azurerm_logic_app_workflow" "LogicApp" {
      name                             = "${var.LogicAppName}"
      location                         = "${var.LogicAppLocation}"
      resource_group_name = "${var.rgName}"
      workflow_schema         = "${var.schema}"
  }
  </code></pre>
  
  <p>In <code>workflow_schema</code> i'm specifying the path to my file which contains the logicapp configuration</p>
  
  <p>In main <code>config.tf</code> I have the following setup:</p>
  
  <pre><code>module "workflow" {
    source                     = "./modules/workflow/"
    LogicAppName       = "LaName"
    LogicAppLocation  = "${azurerm_resource_group.rg.location}"
    rgName                   = "${azurerm_resource_group.rg.name}"
    schema                   = "${file("./path/to/the/file/LaName")}"
  }
  </code></pre>
  
  <p>So, when I'm running <code>terraform init</code> and <code>terraform plan</code> everything works perfectly fine.</p>
  
  <p>Since my logic app was created earlier, I want to import it so that terraform apply won't overwrite it.</p>
  
  <p>I am running the following command and it returns the error:</p>
  
  <pre><code>terraform import module.workflow.azurerm_logic_app_workflow.LogicApp /subscriptions/mySubscriptionID/resourceGroups/myRgName/providers/Microsoft.Logic/workflows/LaName
  
  Error: Import to non-existent module
  
  module.workflow is not defined in the configuration. Please add configuration
  for this module before importing into it.
  </code></pre>
  
  <p>I'm using the following versions of software:</p>
  
  <pre><code>Terraform v0.12.13
  + provider.azurerm v1.28.0
  </code></pre>
  
  <p>If anyone has any ideas why <code>terraform import</code> fails, please share them.</p>