Security Groups Deep Dive¶
- Security Groups are acting as a
firewall
on EC2 instances. -
They regulate
- Access to Ports
- Authorised IP ranges - IPv4 and IPv6
- Control of inbound network (from other to the instance)
- Control of outbound network (from the instance to other)
-
Can be attached to multiple instances
- Locked down to a AWS Region / VPC Summary combination
- Does live "outside" the AWS EC2 - if traffic is blocked the EC2 instance won't see it.
- It's a good to maintain one separate security group for ssh access
- If your application is not accessible (timeout) then it's a security group issue
- If your application gives a "[[connection refused]]"'error, then it's an application error or it's not launched
- All [[inbound traffic]] is blocked by default
- All [[outbound traffic]] is authorised by default
Referencing other security groups¶
When we have multiple instances on the same security groups, they can communicate.