title: terraform_remote_state data block syntax
body: <p>I'm working on an AWS multi-account setup with Terraform. I've got a master account that creates several sub-accounts, and in the sub-accounts I'm referencing the master's remote state to retrieve output values. </p>
  
  <p>The <code>terraform plan</code> command is failing for this configuration in a test main.tf:</p>
  
  <pre><code>terraform {
    required_version = "&gt;= 0.12.0"
  
    backend "s3" {
      bucket = "bucketname"
      key    = "statekey.tfstate"
      region = "us-east-1"
    }
  }
  
  provider "aws" {
    region  = "us-east-1"
    version = "~&gt; 2.7"
  }
  
  data "aws_region" "current" {}
  
  data "terraform_remote_state" "common" {
    backend = "s3"
    config {
          bucket = "anotherbucket"
          key    = "master.tfstate"
    }
  }
  </code></pre>
  
  <p>With the following error:</p>
  
  <pre><code>➜  test terraform plan
  
  Error: Unsupported block type
  
    on main.tf line 20, in data "terraform_remote_state" "common":
    20:   config {
  
  Blocks of type "config" are not expected here. Did you mean to define argument
  "config"? If so, use the equals sign to assign it a value.
  </code></pre>
  
  <p>From what I can tell from <a href="https://www.terraform.io/docs/providers/terraform/d/remote_state.html" rel="nofollow noreferrer">the documentation</a>, this should be working… what am I doing wrong? </p>
  
  <pre><code>➜  test terraform -v  
  Terraform v0.12.2
  + provider.aws v2.14.0
  </code></pre>