File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ module "security_group" {
4040}
4141
4242data "aws_route53_zone" "domain" {
43- count = module. this . enabled && var. zone_id != " " ? 1 : 0
43+ count = module. this . enabled && try ( length ( var. zone_id ), 0 ) > 0 ? 1 : 0
4444 zone_id = var. zone_id
4545}
4646
@@ -106,7 +106,7 @@ resource "aws_eip" "default" {
106106module "dns" {
107107 source = " cloudposse/route53-cluster-hostname/aws"
108108 version = " 0.12.0"
109- enabled = module. this . enabled && var. zone_id != " " ? true : false
109+ enabled = module. this . enabled && try ( length ( var. zone_id ), 0 ) > 0 ? true : false
110110 zone_id = var. zone_id
111111 ttl = 60
112112 records = var. associate_public_ip_address ? tolist ([local . public_dns ]) : tolist ([join (" " , aws_instance. default . * . private_dns )])
You can’t perform that action at this time.
0 commit comments