title: Use Terraform state output from another project
body: <p>I recently upgraded Terraform from 11.11 to 12.24, and after running the 0.12upgrade, accessing the remote terraform_state output no longer works.</p>
  
  <p>The error I get is : 
  This object does not have an attribute named "subnet_id"</p>
  
  <p>This is my config:</p>
  
  <p><strong>Repo 1</strong> (creates networks, subnets, etc)</p>
  
  <pre><code>network 
  | main.tf 
  | output.tf
  </code></pre>
  
  <p>Contents of output.tf (from above):</p>
  
  <pre><code>output "subnet_ids" {
    value = openstack_networking_subnet_v2.openstack-subnet.*.id
  }
  
  output "network_ids" {
    value = openstack_networking_network_v2.openstack-networks.*.id
  }
  </code></pre>
  
  <p>Running  <em>Terraform output</em> in above repo, gives me the following output (modified id's):</p>
  
  <pre><code>network_ids = [
    "08adfe73-dfg5-404d-958e-e8db73121531",
    "c0b561e5-320c-46b3-b328-98723f54ef82",
    "200eb570-b734-4b18-9250-6ckae90ea0e1",
    "84c43fc5-771c-4c79-8670-3d858788661e",
  ]
  subnet_ids = [
    "f5df394f-d542-492a-a224-eefb998536ac",
    "f0f5d2fe-e83c-4041-971a-bba34870d5de",
    "89e966b1-826e-483d-b312-bb7aa9893a02",
    "76d6dfda-8161-4961-89a6-39aeeb82db3c",
  ]
  </code></pre>
  
  <p><strong>Repo 2</strong> (Creates compute platform)</p>
  
  <pre><code>infrastructure
  | main.tf
    | modules 
      | compute
        | main.tf
  </code></pre>
  
  <p>Contents of the compute's main.tf:</p>
  
  <pre><code>...
  data "terraform_remote_state" "base_networking_a" {
    backend = "s3"
    config = {
      bucket               = "terraform-state"
      workspace_key_prefix = "network-terraform-state/${var.environment}a"
      key                  = "terraform.tfstate"
      region  = "ap-southeast-2"
      profile = "aws_profile"
    }
  }
  ...
  resource "openstack_lb_loadbalancer_v2" "k8s-loadbalancer-a" {
    name          = var.loadbalancer_name
    vip_subnet_id = "data.terraform_remote_state.base_networking_a.outputs.subnet_ids[2]"
  }
  </code></pre>
  
  <p>As an additional method, when I output the contents using a terraform file with the following contents :</p>
  
  <pre><code>output "net" {
      value = data.terraform_remote_state.base_networking_a.outputs.*
  }
  </code></pre>
  
  <p>Then I get the following ouput:</p>
  
  <pre><code>Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
  
  Outputs:
  
  net = [
    {},
  ]
  </code></pre>
  
  <p>Any ideas how to access those values stored in a remote state, or what I'm doing wrong?</p>