<commit_before>resource "aws_elasticsearch_domain" "elasticsearch_domain" {
  domain_name           = "${var.envPrefix}"
  elasticsearch_version = "5.1"
  cluster_config {
    instance_type = "m3.medium.elasticsearch"
    instance_count =2
    dedicated_master_enabled = false
    zone_awareness_enabled= false
  }
  ebs_options{
    ebs_enabled = true
    volume_type = "gp2"
    volume_size = 10
  }

  tags {
    Domain = "${var.envPrefix}_elasticsearch_domain"
    Application = "Jazz"
    JazzInstance = "${var.envPrefix}"
  }
  vpc_options {
    security_group_ids = ["${lookup(var.jenkinsservermap, "jenkins_security_group")}"],
    subnet_ids = ["${lookup(var.jenkinsservermap, "jenkins_subnet")}"]
  }
  access_policies = <<POLICIES

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Action": "es:*",
            "Principal": {
                "AWS": "*"
                },
            "Effect": "Allow"
        }
    ]
}
POLICIES

}
resource "null_resource" "updateSecurityGroup" {
  provisioner "local-exec" {
    command    = "aws ec2 authorize-security-group-ingress --group-id ${lookup(var.jenkinsservermap, "jenkins_security_group")} --protocol tcp --port 443 --source-group ${lookup(var.jenkinsservermap, "jenkins_security_group")} --region ${var.region}"
    on_failure = "continue"
  }
}

resource "null_resource" "updateSecurityGroup" {
   provisioner "local-exec" {
    command    = "aws ec2 authorize-security-group-ingress --group-id ${lookup(var.jenkinsservermap, "jenkins_security_group")} --protocol tcp --port 443 --source-group ${lookup(var.jenkinsservermap, "jenkins_security_group")} --region ${var.region}"
    on_failure = "continue"
  }
}<commit_msg>Remove duplicate updatesecuritygroup<commit_after>resource "aws_elasticsearch_domain" "elasticsearch_domain" {
  domain_name           = "${var.envPrefix}"
  elasticsearch_version = "5.1"
  cluster_config {
    instance_type = "m3.medium.elasticsearch"
    instance_count =2
    dedicated_master_enabled = false
    zone_awareness_enabled= false
  }
  ebs_options{
    ebs_enabled = true
    volume_type = "gp2"
    volume_size = 10
  }

  tags {
    Domain = "${var.envPrefix}_elasticsearch_domain"
    Application = "Jazz"
    JazzInstance = "${var.envPrefix}"
  }
  vpc_options {
    security_group_ids = ["${lookup(var.jenkinsservermap, "jenkins_security_group")}"],
    subnet_ids = ["${lookup(var.jenkinsservermap, "jenkins_subnet")}"]
  }
  access_policies = <<POLICIES

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Action": "es:*",
            "Principal": {
                "AWS": "*"
                },
            "Effect": "Allow"
        }
    ]
}
POLICIES

}

resource "null_resource" "updateSecurityGroup" {
   provisioner "local-exec" {
    command    = "aws ec2 authorize-security-group-ingress --group-id ${lookup(var.jenkinsservermap, "jenkins_security_group")} --protocol tcp --port 443 --source-group ${lookup(var.jenkinsservermap, "jenkins_security_group")} --region ${var.region}"
    on_failure = "continue"
  }
}
{'fraction_non_alphanumeric': 0.13876221498371336, 'fraction_numerical': 0.013680781758957655, 'mean_word_length': 3.1953551912568305, 'pattern_counts': {'":': 12, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '531567', 'n_tokens_mistral': 1025, 'n_tokens_neox': 1014, 'n_words': 169}