<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.17.32"]
}

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.58.3"]
}

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 = ["192.168.127.12"]

    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 = ["192.168.127.12"]

    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        = "192.168.127.12"
  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<commit_msg>finish updating us irc dns<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.17.32"]
}

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.58.3"]
}

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.58.3"]

    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.58.3"]

    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.58.3"
  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
{'fraction_non_alphanumeric': 0.15606407322654461, 'fraction_numerical': 0.0734553775743707, 'mean_word_length': 2.8375768217734856, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 16, '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': '6318989', 'n_tokens_mistral': 2002, 'n_tokens_neox': 1806, 'n_words': 257}