internal

Type bool
Default null
Module alb

Whether the ALB is internal. Set to true for internal ALBs (microservices, internal APIs) or false for internet-facing ALBs (public APIs, websites).

ALB Types

TypeinternalUse Case
Internet-facingfalsePublic APIs, websites
InternaltrueMicroservices, internal APIs

Best Practices

  • Use internal ALBs for service-to-service communication
  • Internet-facing requires public subnets

Full Module Example

module "alb" {
  source  = "registry.patterneddesigns.ca/patterneddesigns/alb/aws"
  version = "0.1.0"

  # internal
  internal = "..."

  # Other required inputs
  name = "..."
  vpc_id = "..."
  subnets = "..."
}