Terraform can be used to deploy and maintain AWS Elasticsearch infrastructure in AWS. It works like using cloud formation template,