Skip to content

Commit 7ad7d18

Browse files
committed
Fixing protocol from output
1 parent 9770729 commit 7ad7d18

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

operations/deployment/terraform/aws/bitovi_main.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -812,15 +812,14 @@ locals {
812812
) :
813813
false
814814
)
815-
protocol = var.aws_r53_enable_cert ? try(module.aws_certificates[0].selected_arn, var.aws_r53_cert_arn, "") != "" ? "https://" : "http://" : "http://"
815+
protocol = var.aws_r53_enable_cert ? var.aws_r53_cert_arn != "" ? "https://" : try(module.aws_certificates[0].selected_arn, "") != "" ? "https://" : "http://" : "http://"
816816
create_efs = var.aws_efs_create == true ? true : (var.aws_efs_create_ha == true ? true : false)
817817
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
818818
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
819819
ec2_endpoint = var.aws_ec2_instance_create ? (local.ec2_public_endpoint != null ? "${local.protocol}${local.ec2_public_endpoint}" : "${local.protocol}${local.ec2_private_endpoint}") : null
820820
elb_url = try(module.aws_elb[0].aws_elb_dns_name, null) != null ? "${local.protocol}${module.aws_elb[0].aws_elb_dns_name}" : null
821821
alb_url = try(module.aws_lb[0].aws_alb_dns_name, null) != null ? "${local.protocol}${module.aws_lb[0].aws_alb_dns_name}" : null
822822
}
823-
824823
# VPC
825824
output "aws_vpc_id" {
826825
value = module.vpc.aws_selected_vpc_id

0 commit comments

Comments
 (0)