Skip to content

Commit

Permalink
fix a zone_id
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Aug 5, 2025
1 parent b755258 commit 419b357
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@

* 1.2.2 -- 2025-06-10
- host: fix entry.tf zone_id

* 1.2.3 -- 2025-08-05
- a: fix entry.tf zone_id
2 changes: 1 addition & 1 deletion a/entry.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
resource "aws_route53_record" "entry" {
count = length(local.ipv4_hosts) > 0 ? 1 : 0
zone_id = var.zone_id != null ? data.aws_route53_zone.zone[0].zone_id : var.zone_id
zone_id = var.zone_id == null ? data.aws_route53_zone.zone[0].zone_id : var.zone_id
name = var.name
type = local.rr_type
ttl = var.ttl
Expand Down
4 changes: 2 additions & 2 deletions a/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
locals {
record_type = "a"
# values = [local.default_values[0]]
ipv4_hosts = [for h in local.default_values : h if length(regexall("\\.", h)) == 3 && ! can(regex("/", h))]
ipv6_hosts = [for h in local.default_values : h if length(regexall(":", h)) != 0 && ! can(regex("/", h))]
ipv4_hosts = [for h in local.default_values : h if length(regexall("\\.", h)) == 3 && !can(regex("/", h))]
ipv6_hosts = [for h in local.default_values : h if length(regexall(":", h)) != 0 && !can(regex("/", h))]
values = local.ipv4_hosts
}
2 changes: 1 addition & 1 deletion common/ip_addresses.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ locals {
# Some ip ranges
ip_ranges = []

ipv4_subnets = [for cidr in local.ip_ranges : cidr if ! can(regex("::", cidr))]
ipv4_subnets = [for cidr in local.ip_ranges : cidr if !can(regex("::", cidr))]
ipv6_subnets = [for cidr in local.ip_ranges : cidr if can(regex("::", cidr))]
}
2 changes: 1 addition & 1 deletion common/version.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
locals {
_module_version = "1.2.2"
_module_version = "1.2.3"
}

0 comments on commit 419b357

Please sign in to comment.