title: Can depends_on in terraform be set to a file path?
body: <p>I am trying to break down my <strong>main.tf</strong> file . So I have set aws config via terraform, created the configuration recorder and set the delivery channel to a s3 bucket created in the same main.tf file. Now for the AWS config rules, I have created a separate file viz <strong>config-rule.tf</strong>. As known , every aws_config_config_rule that we create has a <strong>depends_on</strong> clause where in we call the dependent resource, which in this case being <strong>aws_config_configuration_recorder</strong>. So my question is can I interpolate the depends_on clause to something like :</p>
  
  <pre><code>    resource "aws_config_config_rule" "s3_bucket_server_side_encryption_enabled" {
      name = "s3_bucket_server_side_encryption_enabled"
  
      source {
      owner             = "AWS"
      source_identifier = "S3_BUCKET_SERVER_SIDE_ENCRYPTION_ENABLED"
      }
  
      depends_on = ["${file("aws-config-setup.tf")}"]
      }
  </code></pre>
  
  <p>Considering I move my aws config setup from my main.tf file to a new file called <strong>aws-config-setup.tf</strong>.</p>