1234567891011121314151617181920212223242526272829 |
- module "external_elb" {
- source = "../../../submodules/load_balancer/public_alb/"
- # required
- hostname = "jira"
- subnets = var.public_subnets
- target_count = 1 # Avoid using length(aws_instane.x[*]) or you'll need to apply with --target
- target_servers = [aws_instance.jira-server-instance.id]
- server_security_group = aws_security_group.jira_server.id
- # optional
- server_port = 8080 # default 443
- server_protocol = "HTTP" # default HTTPS
- # health_check_path = "/" # default /
- inbound_cidrs = var.environment == "test" ? local.trusted_ips : ["0.0.0.0/0"] # default 0.0.0.0/0
- # sticky_sessions = true # default true
- # inherited
- dns_info = var.dns_info
- environment = var.environment
- tags = merge(local.standard_tags, var.tags)
- vpc_id = var.vpc_id
- providers = {
- aws.mdr-common-services-commercial = aws.mdr-common-services-commercial
- }
- depends_on = [aws_instance.jira-server-instance]
- }
|