I am trying to write a generic script in terraform to create ALB (in AWS). The security groups are created (sg_alb) but not in the same script. It is pre-created I want to extract the id of the security group and pass it security_groups = ["${aws_security_group.lb_sg.id}"]
I have seen examples where the above reference is made but that is assuming the security group is created along with ALB
How can I achieve this ?
Thank you Kumar