locals { subnet_list = split(",", var.subnets) security_groups = var.security_group != null ? [var.security_group] : [] }