title: Migrating from remote-state to backend in Terraform 0.9
body: <p>I downloaded terraform 0.9 and tried to follow the <a href="https://www.terraform.io/docs/backends/legacy-0-8.html" rel="noreferrer">migration guide</a> to move from <code>remote-state</code> to <code>backend</code></p>
  
  <p>But it doesn't seem to work. I replaced:</p>
  
  <pre><code>data "terraform_remote_state" "state" {
    backend = "s3"
    config {
      bucket = "terraform-state-${var.environment}"
      key = "network/terraform.tfstate"
      region = "${var.aws_region}"
    }
  }
  </code></pre>
  
  <p>with</p>
  
  <pre><code>terraform {
    backend "s3" {
      bucket = "terraform-backend"
      key = "network/terraform.tfstate"
      region = "us-west-2"
    }
  }
  </code></pre>
  
  <p>yet when I run <code>terraform</code> init in one of my environment folders, I get:</p>
  
  <blockquote>
    <p>Deprecation warning: This environment is configured to use legacy
    remote state. Remote state changed significantly in Terraform 0.9.
    Please update your remote state configuration to use the new 'backend'
    settings. For now, Terraform will continue to use your existing
    settings. Legacy remote state support will be removed in Terraform
    0.11.</p>
    
    <p>You can find a guide for upgrading here:</p>
    
    <p><a href="https://www.terraform.io/docs/backends/legacy-0-8.html" rel="noreferrer">https://www.terraform.io/docs/backends/legacy-0-8.html</a></p>
  </blockquote>
  
  <p>I also had to drop the variable interpolation since this is not allowed anymore. Does that mean that one S3 Bucket is used for multiple environments? What have I missed here?</p>