From the course: Amazon EC2 Essential Training

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Security groups

Security groups

- [Shyam] Now let's talk about an important feature of EC2 instances known as security groups. A security group is like a virtual firewall that controls inbound and outbound traffic for your EC2 instance. Think of it as a wrapper that sits around your EC2 instance and monitors all inbound and outbound traffic. It then allows or denies the traffic based on the configured rules. Security groups allow you to filter traffic based on protocols and port numbers. Security groups have separate rules to control both inbound and outbound traffic. With security groups, you can only configure allow rules. Deny rules cannot be configured. This might seem a bit different if you work with different firewalls that allow you to configure both allow and deny rules, but with security groups, you can only configure allow rules. By default, security groups block all inbound traffic and allow all outbound traffic. So when you create a new…

Contents