While trying to create vpc endpoint , i have to dynamically create the security groups within the vpc and then attach it to the vpc endpoints in the same terraform plan . Is there a way I can put all the security group ids of a VPC in a list using terraform?