What happens when I assign multiple security groups to an instance? Is it permissive in the sense that the traffic is allowed in if any one of the security groups allows it. OR is it restrictive in the sense that every security group must allow the traffic in for it to be passed in?
For example, lets say I have a class of instances that will only ever talk to other instances in the same account. I also have a class of instances that will only accept traffic via http (port 80).
Is it possible to restrict access to internal instances and only via http by creating and applying two security groups: 1. An "internal" security group. Allow all traffic in from other members of that security group on all ports for all transports (TCP, UDP, ICMP) 2. Create an "http" security group. Allow all traffic into port 80 via TCP from any source.
OR am I forced to create a single security group that allows traffic from port 80 where the source is itself?