vpc_id

Required
Type string
Module alb

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

VPC Association

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

Best Practices

  • Reference from VPC module output
  • Ensure subnets are in the same VPC

Full Module Example

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

  # vpc_id
  vpc_id = "..."

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