When you look at terraform's docs for security group, you can see that there is an option to define a security_groups
argument inside the ingress/egress security rules.
It seems quite strange to me, but maybe I'm missing something here.
I saw this post but there are no real world use cases mentioned.
My question is: In which cases we'll want to use this kind of configuration?