SourceCode
Report an Issue

Simple ElasticSearch example

Configuration in this directory creates an ElasticSearch Domain with a simple configuration in a single availability zone.

You can choose to create an ElasticSearch Domain with the following options:

  • Create an ES domain in an existing VPC.
        create_vpc = false
        zone_awareness_enabled = false
        es_subnets_ids = ["subnet-xxxxxxx"]     # pass a single subnet-id
    
  • Create an ES domain in a new VPC.
        create_vpc = true
        zone_awareness_enabled = false
    

Usage

To run this example you need to execute:

$ terraform init
$ terraform plan
$ terraform apply

Note that this example may create resources which cost money. Run terraform destroy when you don’t need these resources.