title: Terraform localstack for aws elasticsearch not creating
body: <p>I am using Terraform <a href="https://docs.localstack.cloud/aws/elasticsearch/#custom-endpoints" rel="nofollow noreferrer">localstack</a> for Terraform unit(modules) testing instead of testing in actual AWS infra.</p>
  <p><strong>Terraform Configuration</strong>:</p>
  <p><code>main.tf file</code>: <a href="https://gist.github.com/sudhir6199/b59294e7b8c9bcc33426addcd980078e" rel="nofollow noreferrer">https://gist.github.com/sudhir6199/b59294e7b8c9bcc33426addcd980078e</a></p>
  <p><code>terraform.tfvars file</code>: <a href="https://gist.github.com/sudhir6199/ae538d3a96ea6c10030e6263be60e2a1" rel="nofollow noreferrer">https://gist.github.com/sudhir6199/ae538d3a96ea6c10030e6263be60e2a1</a></p>
  <p><code>provider_override.tf file</code>: <a href="https://gist.github.com/sudhir6199/a760260c3ed3d10ebc3dbccb965ef558" rel="nofollow noreferrer">https://gist.github.com/sudhir6199/a760260c3ed3d10ebc3dbccb965ef558</a></p>
  <p><code>Problem</code>:
  Usually, on AWS infra, it takes less than 15min to create with the above terraform configuration but <strong>localstack</strong> is not creating even after 40min</p>
  <p><a href="https://i.stack.imgur.com/26cSd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/26cSd.png" alt="enter image description here" /></a></p>
  <p>But using aws cli same <a href="https://docs.localstack.cloud/aws/elasticsearch/" rel="nofollow noreferrer">localstack</a> able to create elasticsearch in 10min</p>
  <p><code>aws --endpoint-url=http://localhost:4566 es create-elasticsearch-domain --domain-name my-domain</code></p>
  <p>Please share if you know any fix or working example.</p>
  <p><code>Terraform Version</code>: v0.14.11</p>
  <p><code>Terraform AWS Provider Version</code>: 3.45.0</p>
  <p><code>Localstack Version</code>: 0.13.3</p>
  <p><code>Localstack Logs</code>: <a href="https://gist.github.com/sudhir6199/2d71dc72ee16db346ece620a46d22ace" rel="nofollow noreferrer">https://gist.github.com/sudhir6199/2d71dc72ee16db346ece620a46d22ace</a></p>
  <p><code>Terraform Logs</code>:
  <a href="https://gist.github.com/sudhir6199/770c0ba4ab72a1f3c0ce2a25f41d372e" rel="nofollow noreferrer">https://gist.github.com/sudhir6199/770c0ba4ab72a1f3c0ce2a25f41d372e</a></p>