<commit_before>resource "aws_route53_zone" "hashbang" {
    name = "hashbang.sh"
}

// A
resource "aws_route53_record" "mail-ipv4" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "mail.${aws_route53_zone.hashbang.name}"
    type = "A"
    ttl  = "1800"
    records = ["172.16.31.10"]
}

resource "aws_route53_record" "sfo1-irc-ipv4" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "sfo1.irc.${aws_route53_zone.hashbang.name}"
    type = "A"
    ttl  = "1800"
    records = ["172.16.31.10"]
}

resource "aws_route53_record" "lon1-irc-ipv4" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "lon1.irc.${aws_route53_zone.hashbang.name}"
    type = "A"
    ttl  = "1800"
    records = ["172.16.58.3"]
}

// GEO
resource "aws_route53_record" "irc-ipv4-default" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "irc.${aws_route53_zone.hashbang.name}"
    type = "A"
    ttl  = "1800"
    records = ["172.16.31.10"]

    set_identifier = "default"
    geolocation_routing_policy {
        country = "*"
    }
}

resource "aws_route53_record" "irc-ipv4-us" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "irc.${aws_route53_zone.hashbang.name}"
    type = "A"
    ttl  = "1800"
    records = ["172.16.31.10"]

    set_identifier = "us"
    geolocation_routing_policy {
    	continent = "NA"
    }
    health_check_id = "${aws_route53_health_check.irc-us.id}"
}

resource "aws_route53_record" "irc-ipv4-eu" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "irc.${aws_route53_zone.hashbang.name}"
    type = "A"
    ttl  = "1800"
    records = ["172.16.58.3"]

    set_identifier = "eu"
    geolocation_routing_policy {
    	continent = "EU"
    }
    health_check_id = "${aws_route53_health_check.irc-eu.id}"
}

// HEALTHCHECKS
resource "aws_route53_health_check" "irc-us" {
  ip_address        = "172.16.31.10"
  port              = 6697
  type              = "TCP"
  failure_threshold = "5"
  request_interval  = "30"

  tags = {
    Name = "tf-irc-us"
  }
}

resource "aws_route53_health_check" "irc-eu" {
  ip_address        = "172.16.58.3"
  port              = 6697
  type              = "TCP"
  failure_threshold = "5"
  request_interval  = "30"

  tags = {
    Name = "tf-irc-eu"
  }
}

// A + AAAA PAIRS
resource "aws_route53_record" "ldap-ipv6" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "ldap.${aws_route53_zone.hashbang.name}"
    type = "AAAA"
    ttl  = "1800"
    records = ["fc00:e968:6179::de52:7100"]
}
resource "aws_route53_record" "ldap-ipv4" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "ldap.${aws_route53_zone.hashbang.name}"
    type = "A"
    ttl  = "1800"
    records = ["192.168.127.12"]
}

resource "aws_route53_record" "sf1-ipv6" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "sf1.${aws_route53_zone.hashbang.name}"
    type = "AAAA"
    ttl  = "1800"
    records = ["2001:470:1f05:82e::"]
}
resource "aws_route53_record" "sf1-ipv4" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "sf1.${aws_route53_zone.hashbang.name}"
    type = "A"
    ttl  = "1800"
    records = ["172.16.58.3"]
}

resource "aws_route53_record" "da1-ipv6" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "da1.${aws_route53_zone.hashbang.name}"
    type = "AAAA"
    ttl  = "1800"
    records = ["2001:470:1f0f:645::"]
}
resource "aws_route53_record" "da1-ipv4" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "da1.${aws_route53_zone.hashbang.name}"
    type = "A"
    ttl  = "1800"
    records = ["192.168.3.11"]
}

resource "aws_route53_record" "ny1-ipv6" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "ny1.${aws_route53_zone.hashbang.name}"
    type = "AAAA"
    ttl  = "1800"
    records = ["2001:470:1f07:11f4::"]
}
resource "aws_route53_record" "ny1-ipv4" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "ny1.${aws_route53_zone.hashbang.name}"
    type = "A"
    ttl  = "1800"
    records = ["192.168.3.11"]
}

resource "aws_route53_record" "to1-ipv6" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "to1.${aws_route53_zone.hashbang.name}"
    type = "AAAA"
    ttl  = "1800"
    records = ["2001:470:1d:5fe::"]
}
resource "aws_route53_record" "to1-ipv4" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "to1.${aws_route53_zone.hashbang.name}"
    type = "A"
    ttl  = "1800"
    records = ["192.168.127.12"]
}

resource "aws_route53_record" "services-irc-ipv6" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "services.irc.${aws_route53_zone.hashbang.name}"
    type = "AAAA"
    ttl  = "1800"
    records = ["fc00:db20:35b:7399::5"]<commit_msg>terraform: Add A record for lo1 (new server in Maidstone, UK)<commit_after>resource "aws_route53_zone" "hashbang" {
    name = "hashbang.sh"
}

// A
resource "aws_route53_record" "mail-ipv4" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "mail.${aws_route53_zone.hashbang.name}"
    type = "A"
    ttl  = "1800"
    records = ["172.16.31.10"]
}

resource "aws_route53_record" "sfo1-irc-ipv4" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "sfo1.irc.${aws_route53_zone.hashbang.name}"
    type = "A"
    ttl  = "1800"
    records = ["172.16.31.10"]
}

resource "aws_route53_record" "lon1-irc-ipv4" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "lon1.irc.${aws_route53_zone.hashbang.name}"
    type = "A"
    ttl  = "1800"
    records = ["172.16.58.3"]
}

// GEO
resource "aws_route53_record" "irc-ipv4-default" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "irc.${aws_route53_zone.hashbang.name}"
    type = "A"
    ttl  = "1800"
    records = ["172.16.31.10"]

    set_identifier = "default"
    geolocation_routing_policy {
        country = "*"
    }
}

resource "aws_route53_record" "irc-ipv4-us" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "irc.${aws_route53_zone.hashbang.name}"
    type = "A"
    ttl  = "1800"
    records = ["172.16.31.10"]

    set_identifier = "us"
    geolocation_routing_policy {
    	continent = "NA"
    }
    health_check_id = "${aws_route53_health_check.irc-us.id}"
}

resource "aws_route53_record" "irc-ipv4-eu" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "irc.${aws_route53_zone.hashbang.name}"
    type = "A"
    ttl  = "1800"
    records = ["172.16.58.3"]

    set_identifier = "eu"
    geolocation_routing_policy {
    	continent = "EU"
    }
    health_check_id = "${aws_route53_health_check.irc-eu.id}"
}

// HEALTHCHECKS
resource "aws_route53_health_check" "irc-us" {
  ip_address        = "172.16.31.10"
  port              = 6697
  type              = "TCP"
  failure_threshold = "5"
  request_interval  = "30"

  tags = {
    Name = "tf-irc-us"
  }
}

resource "aws_route53_health_check" "irc-eu" {
  ip_address        = "172.16.58.3"
  port              = 6697
  type              = "TCP"
  failure_threshold = "5"
  request_interval  = "30"

  tags = {
    Name = "tf-irc-eu"
  }
}

// A + AAAA PAIRS
resource "aws_route53_record" "ldap-ipv6" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "ldap.${aws_route53_zone.hashbang.name}"
    type = "AAAA"
    ttl  = "1800"
    records = ["fc00:db20:35b:7399::5:f001"]
}
resource "aws_route53_record" "ldap-ipv4" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "ldap.${aws_route53_zone.hashbang.name}"
    type = "A"
    ttl  = "1800"
    records = ["192.168.127.12"]
}

resource "aws_route53_record" "sf1-ipv6" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "sf1.${aws_route53_zone.hashbang.name}"
    type = "AAAA"
    ttl  = "1800"
    records = ["2001:470:1f05:82e::"]
}
resource "aws_route53_record" "sf1-ipv4" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "sf1.${aws_route53_zone.hashbang.name}"
    type = "A"
    ttl  = "1800"
    records = ["172.16.58.3"]
}

resource "aws_route53_record" "da1-ipv6" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "da1.${aws_route53_zone.hashbang.name}"
    type = "AAAA"
    ttl  = "1800"
    records = ["2001:470:1f0f:645::"]
}
resource "aws_route53_record" "da1-ipv4" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "da1.${aws_route53_zone.hashbang.name}"
    type = "A"
    ttl  = "1800"
    records = ["192.168.3.11"]
}

resource "aws_route53_record" "ny1-ipv6" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "ny1.${aws_route53_zone.hashbang.name}"
    type = "AAAA"
    ttl  = "1800"
    records = ["2001:470:1f07:11f4::"]
}
resource "aws_route53_record" "ny1-ipv4" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "ny1.${aws_route53_zone.hashbang.name}"
    type = "A"
    ttl  = "1800"
    records = ["192.168.3.11"]
}

resource "aws_route53_record" "to1-ipv6" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "to1.${aws_route53_zone.hashbang.name}"
    type = "AAAA"
    ttl  = "1800"
    records = ["2001:470:1d:5fe::"]
}
resource "aws_route53_record" "to1-ipv4" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "to1.${aws_route53_zone.hashbang.name}"
    type = "A"
    ttl  = "1800"
    records = ["192.168.127.12"]
}

resource "aws_route53_record" "lo1-ipv4" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "lo1.${aws_route53_zone.hashbang.name}"
    type = "A"
    ttl  = "1800"
    records = ["172.16.58.3"]
}

resource "aws_route53_record" "services-irc-ipv6" {
    zone_id = "${aws_route53_zone.hashbang.zone_id}"
    name = "services.irc.${aws_route53_zone.hashbang.name}"
    type = "AAAA"
    ttl  = "1800"
    records = ["fd00:a516:7c1b:17cd:6d81:2137:bd2a:2c5b:7001"]
{'fraction_non_alphanumeric': 0.16654760689866313, 'fraction_numerical': 0.08909072354321869, 'mean_word_length': 3.110738255033557, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 27, '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': '4126189', 'n_tokens_mistral': 4649, 'n_tokens_neox': 4185, 'n_words': 586}