title: Using terraform remote state in s3 with multiple folders
body: <p>I am currently using the default workspace and my folder structure is like this -</p>
  
  <pre><code>dev
          ├── app
          │   └── main.tf
          ├── mysql
          │   └── main.tf
          └── vpc
              └── main.tf
  </code></pre>
  
  <p>I have a s3 backend created and it works fine for a single folder  </p>
  
  <pre><code>terraform {
    backend "s3" {
      bucket         = "mybucket"
      key            = "global/s3/mykey/terraform.tfstate"
      region         = "us-east-1"
      dynamodb_table = "terraform-state-wellness-nonprod"
      encrypt        = true
    }
  }
  </code></pre>
  
  <p>I am struggling on how to include this back-end config in all the folders, like i want to use the same backend s3 bucket in app, mysql and vpc (diff keys for Dynamodb) but while this works in one folder , in the second folder terraform wants to delete both S3 bucket and Dynamodb.</p>