title: terraform plan throws Unsupported argument and attribute cannot be set error
body: <p>I am trying to create an s3 bucket using terraform. Following is my
  <strong>s3.tf</strong> file</p>
  <pre><code>resource &quot;aws_s3_bucket&quot; &quot;b&quot; {
    bucket = &quot;my-bucket&quot;
    acl    = &quot;private&quot;
    force_destroy = &quot;true&quot;
    policy = &quot;&quot;
    region = &quot;us-east-1&quot;
  
    tags = {
      org = &quot;xyz&quot;
      Environment = &quot;CI&quot;
      project = &quot;abc&quot;
    }
  
    versioning {
      enabled = &quot;true&quot;
    }
  
    cors_rule {
      allowed_headers = [&quot;*&quot;]
      allowed_methods = [&quot;PUT&quot;, &quot;POST&quot;]
      allowed_origins = [&quot;https://s3-website-test.hashicorp.com&quot;]
      expose_headers  = [&quot;ETag&quot;]
      max_age_seconds = 3000
    }
  
  
  
  }
  
  // S3 bucket-level Public Access Block configuration
  resource &quot;aws_s3_bucket_public_access_block&quot; &quot;b&quot; {
    bucket = aws_s3_bucket.b.id
  
    block_public_acls       = true
    block_public_policy     = true
    ignore_public_acls      = true
    restrict_public_buckets = true
  }
  </code></pre>
  <p><strong>Policy.tf</strong> file</p>
  <pre><code>resource &quot;aws_s3_bucket_policy&quot; &quot;b&quot; {
    bucket = aws_s3_bucket.b.id
    path = &quot;/&quot;
    description = &quot;Policy for api to access S3 Bucket&quot;
  
    policy = &lt;&lt;POLICY
  {
      &quot;Version&quot;: &quot;2012-10-17&quot;,
      &quot;Statement&quot;: [
          {
              &quot;Effect&quot;: &quot;Allow&quot;,
              &quot;Action&quot;: [
                  &quot;s3:ListBucket&quot;
              ],
              &quot;Resource&quot;: [
                  &quot;arn:aws:s3:::my-bucket&quot;
              ]
          },
          {
              &quot;Effect&quot;: &quot;Allow&quot;,
              &quot;Action&quot;: [
                  &quot;s3:*&quot;
              ],
              &quot;Resource&quot;: [
                  &quot;arn:aws:s3:::my-bucket/*&quot;
              ]
          }
      ]
  }
  POLICY
  }
  </code></pre>
  <p>The terraform plan is throwing <code>unsupported argument</code> error for <code>policy</code> in <strong>s3.tf</strong> file and <code>path</code> and <code>description</code> in <strong>policy.tf</strong> file and <code>Computed attribute cannot be set</code> error for <code>region</code>. I could intialize these arguments in the previous versions of terraform. Are they not supported now? If they are not supported now is there a way to intialize these arguments in the <strong>s3.tf</strong> and <strong>policy.tf</strong> files?</p>
  <p>Error messages:</p>
  <pre><code>Error: Unsupported argument
  
    on s3.tf line 6, in resource &quot;aws_s3_bucket&quot; &quot;b&quot;:
     6:   bucket_policy = &quot;&quot;
  
  An argument named &quot;policy&quot; is not expected here.
  
  Error: Computed attribute cannot be set
  
    on s3.tf line 7, in resource &quot;aws_s3_bucket&quot; &quot;b&quot;:
     7:   region = &quot;us-east-1&quot;
  
  Error: Unsupported argument
  
    on policy.tf line 30, in resource &quot;aws_s3_bucket_policy&quot; &quot;b&quot;:
    30:   path = &quot;/&quot;
  
  An argument named &quot;path&quot; is not expected here.
  
  Error: Unsupported argument
  
    on policy.tf line 31, in resource &quot;aws_s3_bucket_policy&quot; &quot;b&quot;:
    31:   description = &quot;Policy for api to access S3 Bucket&quot;
  
  An argument named &quot;description&quot; is not expected here.
  
  
  </code></pre>