Skip to content

Commit

Permalink
fix: Update validation for aliases parent zone
Browse files Browse the repository at this point in the history
  • Loading branch information
alextrepa committed May 17, 2024
1 parent 411777e commit 09c1f36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ module "alb_dns_alias" {
resource "null_resource" "aliases_parent_zone_validation" {
lifecycle {
precondition {
condition = local.alb_alias_enabled && var.parent_zone_id == null && var.parent_zone_id == null
condition = local.alb_alias_enabled && !(var.parent_zone_id == null && var.parent_zone_name == null)
error_message = "When using `alb_dns_aliases` you should specify either `parent_zone_id` or `parent_zone_name`."
}
}
Expand Down

0 comments on commit 09c1f36

Please sign in to comment.