title: Terraform cannot read from remote state
body: <h3>Terraform version</h3>
  
  <p>v0.12.1</p>
  
  <h3>AWS provider version</h3>
  
  <p>v2.16.0</p>
  
  <p>I've Terraform workspace configured, as for now my workspace is pointing to <code>dev</code> where I've a tfstate file for my VPCs and Subnets and a different one for my security groups, however when I'm trying to refer <code>vpc_id</code> from my vpc remote tfstate into my security group then I get below error message</p>
  
  <p><code>No stored state was found for the given workspace in the given backend.
  </code></p>
  
  <p>My s3 bucket looks like below </p>
  
  <pre><code>nonprod-us-east-1
    |-- env
           |-- dev
                  |-- vpc_subnet/tfstate
                  |-- security_group/tfstate
  </code></pre>
  
  <h3>Terraform Configuration Files</h3>
  
  Security-Group tf config
  
  <pre><code>terraform {
      backend "s3"{
          # Configuration will be injected by environment variables.
      }
  }
  
  provider "aws" {
    region = "${var.region}"
  }
  
  
  data "terraform_remote_state" "vpc_subnet" {
    backend = "s3"
  
    config = {
      bucket  = "nonprod-us-east-1"
      key     = "vpc_subnet/tfstate"
      region  = "us-east-1"
    }
  }
  
   vpc_id = "${data.terraform_remote_state.vpc_subnet.outputs.vpc_id}"
  </code></pre>
  
  <p>And I've verified that my <code>vpc_subnet/tfstate</code>  oputputs has <code>vpc_id</code></p>
  
  <h3>Outputs from VPC subnet tf state</h3>
  
  <pre><code>outputs": {
      "private_subnet_cidr_blocks": {
        "value": [
          "10.0.3.0/24",
          "10.0.4.0/24",
          "10.0.5.0/24"
        ],
        "type": [
          "tuple",
          [
            "string",
            "string",
            "string"
          ]
        ]
      },
      "private_subnet_ids": {
        "value": [
          "subnet-042a16dd291e90add",
          "subnet-02e8322d996968a3f",
          "subnet-078f525c24015b364"
        ],
        "type": [
          "tuple",
          [
            "string",
            "string",
            "string"
          ]
        ]
      },
      "public_subnet_cidr_blocks": {
        "value": [
          "10.0.0.0/24",
          "10.0.1.0/24",
          "10.0.2.0/24"
        ],
        "type": [
          "tuple",
          [
            "string",
            "string",
            "string"
          ]
        ]
      },
      "public_subnet_ids": {
        "value": [
          "subnet-0ba92a28f6e8ddd95",
          "subnet-08efcb80bed22f4e2",
          "subnet-0b641797bfe207a0b"
        ],
        "type": [
          "tuple",
          [
            "string",
            "string",
            "string"
          ]
        ]
      },
      "vpc_id": {
        "value": "vpc-0bb7595ff05fed581",
        "type": "string"
      }
    }
  </code></pre>
  
  <h3>Expected Behavior</h3>
  
  <p>It should be able to read <code>vpc_id</code> from remote tf state location.</p>
  
  <h3>Actual Behavior</h3>
  
  <p>Failing to read output from remote tf state</p>