internal
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
| Type | internal | Use Case |
|---|---|---|
| Internet-facing | false | Public APIs, websites |
| Internal | true | Microservices, 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 = "..."
}