elb.tf 992 B

1234567891011121314151617181920212223242526272829
  1. module "external_elb" {
  2. source = "../../../submodules/load_balancer/public_alb/"
  3. # required
  4. hostname = "jira"
  5. subnets = var.public_subnets
  6. target_count = 1 # Avoid using length(aws_instane.x[*]) or you'll need to apply with --target
  7. target_servers = [aws_instance.jira-server-instance.id]
  8. server_security_group = aws_security_group.jira_server.id
  9. # optional
  10. server_port = 8080 # default 443
  11. server_protocol = "HTTP" # default HTTPS
  12. # health_check_path = "/" # default /
  13. inbound_cidrs = var.environment == "test" ? local.trusted_ips : ["0.0.0.0/0"] # default 0.0.0.0/0
  14. # sticky_sessions = true # default true
  15. # inherited
  16. dns_info = var.dns_info
  17. environment = var.environment
  18. tags = merge(local.standard_tags, var.tags)
  19. vpc_id = var.vpc_id
  20. providers = {
  21. aws.mdr-common-services-commercial = aws.mdr-common-services-commercial
  22. }
  23. depends_on = [aws_instance.jira-server-instance]
  24. }