Elasticsearch

you know, for search

Key features

  • Real-Time Data

  • Massively Distributed

  • High Availability

  • Multitenancy

  • Full-Text Search

  • Document-Oriented

  • Schema-Free

  • Friendly RESTful API

  • Per-Operation Persistence

  • Open Source License

  • Build on top of Apache Lucene™

on amazon

resource "aws_elasticsearch_domain" "es" {
    domain_name = "es-dev"

    access_policies = <<CONFIG
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Action": "es:*",
            "Principal": "*",
            "Effect": "Allow",
            "Condition": {
                "IpAddress": {"aws:SourceIp": ["0.0.0.0/0"]}
            }
        }
    ]
}
CONFIG

    snapshot_options {
        automated_snapshot_start_hour = 23
    }

    tags {
      Domain = "es-dev"
    }
}

let's insert data

resource "aws_elasticsearch_domain" "es" {
    domain_name = "es-dev"

    access_policies = <<CONFIG
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Action": "es:*",
            "Principal": "*",
            "Effect": "Allow",
            "Condition": {
                "IpAddress": {"aws:SourceIp": ["0.0.0.0/0"]}
            }
        }
    ]
}
CONFIG

    snapshot_options {
        automated_snapshot_start_hour = 23
    }

    tags {
      Domain = "es-dev"
    }
}

Elastic

By Mikhail Shirkov

Elastic

  • 661