Skip to content

Commit 22e2849

Browse files
committed
Try arn
1 parent 5470e4f commit 22e2849

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

operations/deployment/terraform/aws/bitovi_main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ locals {
786786
) :
787787
false
788788
)
789-
protocol = var.aws_r53_enable_cert ? module.aws_certificates[0].selected_arn != "" ? "https://" : "http://" : "http://"
789+
protocol = var.aws_r53_enable_cert ? try(module.aws_certificates[0].selected_arn,"") != "" ? "https://" : "http://" : "http://"
790790
create_efs = var.aws_efs_create == true ? true : (var.aws_efs_create_ha == true ? true : false)
791791
ec2_public_endpoint = var.aws_ec2_instance_create ? (module.ec2[0].instance_public_dns != null ? module.ec2[0].instance_public_dns : module.ec2[0].instance_public_ip) : null
792792
ec2_private_endpoint = var.aws_ec2_instance_create ? (module.ec2[0].instance_private_dns != null ? module.ec2[0].instance_private_dns : module.ec2[0].instance_private_ip) : null

0 commit comments

Comments
 (0)