Security Groups
Control which traffic can reach your instances.
What you can do
What are security groups?
Security groups are firewall rules applied to instances.
They define:
- what traffic is allowed
- which ports are open
- how instances communicate
Key concepts
| Concept | Description |
|---|---|
| Ingress | Incoming traffic to an instance |
| Egress | Outgoing traffic from an instance |
| Protocol | TCP or UDP |
| Port | A specific port number (e.g. 22, 80, 443) |
Common use cases
- Allow SSH access on port
22 - Expose web apps on ports
80and443 - Restrict internal services to private access only
How it works
Security groups are attached to instances.
Rules take effect immediately and can be updated at any time.
Related
Last updated on