title: How to import AWS Aurora cluster including instances in to terraform
body: <p>I need to import the existing Aurora cluster in to terraform. I tried <code>terraform import aws_rds_cluster.sample_cluster cluster</code> statement.
  I got the state file ready also I could also do <code>Terraform show</code> However, When I try to destroy the cluster Terraform tries to delete the cluster without the instances under it -
  So the destroy command is failing.</p>
  <pre><code>`Error: error deleting RDS Cluster (test): InvalidDBClusterStateFault: Cluster cannot be deleted, it still contains DB instances in non-deleting state.status code: 400, request id: 15dfbae8-aa13-4838-bc42-8020a2c87fe9`
  </code></pre>
  <p>Is there a way I can import the entire cluster that includes instances as well? I need to have a single statefile that can be used to manage entire cluster(including underlying instances).
  Here is the main.tf that is getting used to call the import -</p>
  <pre><code>access_key = &quot;***&quot;
  secret_key = &quot;*****&quot;
  region = &quot;us-east-1&quot;
  }
  resource &quot;aws_rds_cluster&quot; &quot;test&quot; {
     engine               = &quot;aurora-postgresql&quot;
     engine_version       = &quot;11.9&quot;
     instance_class       = &quot;db.r5.2xlarge&quot;
     name                 = &quot;test&quot;
     username             = &quot;user&quot;
     password             = &quot;******&quot;
     parameter_group_name = &quot;test&quot;
  }```
  </code></pre>