<commit_before>resource "aws_elb" "jenkins_elb" {
  name            = "${var.name}-ELB"
  subnets         = ["${aws_instance.jenkins.subnet_id}"]
  instances       = ["${aws_instance.jenkins.id}"]
  security_groups = ["${aws_security_group.jenkins_elb_security_group.id}"]

  listener {
    instance_port      = 80
    instance_protocol  = "http"
    lb_port            = 443
    lb_protocol        = "https"
    ssl_certificate_id = "${var.jenkins_wildcard_elb_cert_arn}"
  }

  listener {
    instance_port     = 22
    instance_protocol = "tcp"
    lb_port           = 22
    lb_protocol       = "tcp"
  }

  health_check {
    healthy_threshold   = 2
    unhealthy_threshold = 2
    timeout             = 5
    target              = "TCP:22"
    interval            = 30
  }

  tags {
    Name = "${var.name} ELB"
  }<commit_msg>Enable access logging on Jenkins instance ELB<commit_after>resource "aws_elb" "jenkins_elb" {
  name            = "${var.name}-ELB"
  subnets         = ["${aws_instance.jenkins.subnet_id}"]
  instances       = ["${aws_instance.jenkins.id}"]
  security_groups = ["${aws_security_group.jenkins_elb_security_group.id}"]

  access_logs {
    bucket   = "${aws_s3_bucket.jenkins_logs_bucket.bucket}"
    interval = 60
    enabled  = true
  }

  listener {
    instance_port      = 80
    instance_protocol  = "http"
    lb_port            = 443
    lb_protocol        = "https"
    ssl_certificate_id = "${var.jenkins_wildcard_elb_cert_arn}"
  }

  listener {
    instance_port     = 22
    instance_protocol = "tcp"
    lb_port           = 22
    lb_protocol       = "tcp"
  }

  health_check {
    healthy_threshold   = 2
    unhealthy_threshold = 2
    timeout             = 5
    target              = "TCP:22"
    interval            = 30
  }

  tags {
    Name = "${var.name} ELB"
  }
{'fraction_non_alphanumeric': 0.1078107810781078, 'fraction_numerical': 0.019251925192519254, 'mean_word_length': 2.046901172529313, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7638012', 'n_tokens_mistral': 654, 'n_tokens_neox': 604, 'n_words': 105}