Ad space (banner)
AD

Got the fundamentals? A structured AWS course is a fast way to level up.

Find AWS courses on Udemy

Affiliate link. Costs you nothing extra.

☁️AWS Lessons
Lesson 29 / 41

What Is a Security Group?

A security group is a virtual firewall attached to an instance. It decides which traffic may reach it and which may leave.

Inbound rules govern traffic coming in, outbound rules traffic going out. Each rule names a protocol, a port and a source or destination.

Running aws ec2 describe-security-groups lists the groups that exist and the rules each one carries.

A common stumble is opening SSH (port 22) to 0.0.0.0/0 — the entire internet. Automated scanners find such hosts within minutes.

In real work, groups are defined per tier — web, application, database — and each is opened only to the traffic it genuinely needs.

AWS
Try it (type this into the pseudo terminal)
aws ec2 describe-security-groups

🧑‍💻 You can type this command into the AWS pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)