Skip to Content

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

ConceptDescription
IngressIncoming traffic to an instance
EgressOutgoing traffic from an instance
ProtocolTCP or UDP
PortA specific port number (e.g. 22, 80, 443)

Common use cases

  • Allow SSH access on port 22
  • Expose web apps on ports 80 and 443
  • 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.


Last updated on