We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cd90b8 commit 774b089Copy full SHA for 774b089
main.tf
@@ -359,7 +359,7 @@ resource "ibm_is_flow_log" "flow_logs" {
359
# ##############################################################################
360
361
resource "ibm_dns_zone" "dns_zone" {
362
- count = var.enable_hub && !var.skip_custom_resolver_hub_creation ? 1 : 0
+ count = var.enable_hub && !var.skip_custom_resolver_hub_creation && length(var.dns_zone_name) > 0 ? 1 : 0
363
name = var.dns_zone_name
364
instance_id = var.use_existing_dns_instance ? var.existing_dns_instance_id : ibm_resource_instance.dns_instance_hub[0].guid
365
description = var.dns_zone_description
0 commit comments