title: Terraform Custom Attribute Destroying User Pool AWS
body: <p>I have a custom attribute that I am no longer using, and it is forcing terraform to destroy the user pool each time.   Is there away to avoid the user pool's destruction?</p>
  
  <p>My terraform:</p>
  
  <pre><code>resource "aws_cognito_user_pool" "my_pool" {
     name                          = "${var.la} Pool"
  
     alias_attributes              = [
        "email"
     ]
  
     /* Auto-verify these fields */
     auto_verified_attributes      = [
        "email"
     ]
  
     ...
  
     schema {
        attribute_data_type         = "String"
        name                        = "my_custom_attribute1"
        required                    = "false"
        mutable                     = "true"
     }
   }
  </code></pre>
  
  <p>terraform plan gives the following result:</p>
  
  <pre><code>  schema.xxx.attribute_data_type:                          "String" =&gt; "" (forces new resource)
    schema.xxx.developer_only_attribute:                          "false" =&gt; "false"
    schema.xxx.mutable:                                           "true" =&gt; "false" (forces new resource)
    schema.xxx.name:                                              "my_custom_attribute1" =&gt; "" (forces new resource)
    schema.xxx.number_attribute_constraints.#:                    "0" =&gt; "0"
    schema.xxx.required:                                          "false" =&gt; "false"
    schema.xxx.string_attribute_constraints.#:                    "1" =&gt; "0" (forces new resource)
    schema.xxx.string_attribute_constraints.0.max_length:         "" =&gt; ""
    schema.xxx.string_attribute_constraints.0.min_length:         "" =&gt; ""
  </code></pre>
  
  <p>I've not made changes to these, but every time I try to plan it says that there are changes and I need to destroy my user pool (which I don't want to do).  </p>
  
  <p>I've tried running terraform refresh, but it didn't seem to have an effect.</p>
  
  <p>I found the following, but the suggestions don't seem to fix my issue:  <a href="https://github.com/terraform-providers/terraform-provider-aws/issues/3891" rel="nofollow noreferrer">https://github.com/terraform-providers/terraform-provider-aws/issues/3891</a></p>
  
  <p>I don't think it's a bug really.  How do I avoid destroying my Cognito user pool?</p>
  
  <p>terraform version:  0.11.5
  aws version:  0.17 (also tried 0.15)</p>