title: Terraform Import - finding the resource id
body: <p>I am trying to import an <code>aws_db_subnet_group</code>. The <a href="https://www.terraform.io/docs/providers/aws/r/db_subnet_group.html" rel="nofollow noreferrer">terraform docs</a> are very limited in explaining how you are supposed to go about doing this other than providing the one line to execute</p>
  
  <pre><code>terraform import aws_db_subnet_group.default &lt;subnet-group-id&gt;
  </code></pre>
  
  <p>I am searching the AWS console and I cannot find this <code>&lt;subnet-group-id&gt;</code> anywhere. I've ran into this issue a few times now, hunting through the AWS console for a specific resource's ID so that I can import it. Does anyone know where/how to go about doing this in general? And for my current problem, how to find it for an ElastiCache Subnet Group ID?</p>
  
  <p>I referred to the <a href="https://docs.aws.amazon.com/cli/latest/reference/elasticache/index.html" rel="nofollow noreferrer">aws elasticache</a> documentation and tried running <code>describe-cache-subnet-groups</code></p>
  
  <pre><code>aws elasticache describe-cache-subnet-groups --cache-subnet-group-name &lt;name&gt;
  </code></pre>
  
  <p>But this did not give me any ID related to the cache subnet group that I could use for the import</p>