Patterned Designs HCL Module Registry
MODULE

alb

v0.1.0 latest View all versions

Terraform module for alb on aws

View Full Documentation Usage guides, examples & best practices
module "alb" {
  source  = "registry.patterneddesigns.ca/patterneddesigns/alb/aws"
  version = "0.1.0"
}
name required
string

Name of the ALB. Must be unique within your account and region. Maximum 32 characters.

Constraints
  • ALB name must be 32 characters or less.
vpc_id required
string

VPC ID for the ALB. The ALB must be created in the same VPC as your target resources.

subnets required
list(string)

List of subnet IDs for the ALB. Requires at least 2 subnets in different AZs.

Constraints
  • At least 2 subnets in different AZs are required.
internal
bool default: null

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

alb_arn

ARN of the Application Load Balancer.

alb_dns_name

DNS name of the ALB. Use this for Route53 alias records.

alb_zone_id

Zone ID of the ALB for Route53 alias records.