vpc_id

Required
Type string

VPC ID where the security group will be created

VPC Association

Security groups are VPC-specific and cannot span multiple VPCs.

Best Practices

  • Reference from VPC module output
  • Ensure the VPC exists before creating security groups

Full Module Example

module "security_group" {
  source  = "registry.patterneddesigns.ca/patterneddesigns/security-group/aws"
  version = "0.1.0"

  # vpc_id
  vpc_id = "..."

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