Terraform module for alb on aws
module "alb" {
source = "registry.patterneddesigns.ca/patterneddesigns/alb/aws"
version = "0.1.0"
}name
requiredName of the ALB. Must be unique within your account and region. Maximum 32 characters.
vpc_id
requiredVPC ID for the ALB. The ALB must be created in the same VPC as your target resources.
subnets
requiredList of subnet IDs for the ALB. Requires at least 2 subnets in different AZs.
internalWhether the ALB is internal. Set to true for internal ALBs (microservices, internal APIs) or false for internet-facing ALBs (public APIs, websites).
alb_arnARN of the Application Load Balancer.
alb_dns_nameDNS name of the ALB. Use this for Route53 alias records.
alb_zone_idZone ID of the ALB for Route53 alias records.