Security Groups

Learn how to secure EC2 instances using security groups' inbound and outbound rules.

Security is an important aspect of the cloud; we must ensure that all our resources are secure and protected. AWS offers different services to protect different resources in the Cloud. One of the basic components of security is security groups. In this lesson, we will review security groups and learn about rules and best practices. Security groups are like firewalls to the associated resources; they control the inbound and outbound traffic for an associated resource.

Security groups are used to secure EC2 instances from unwanted requests. We need to specify a security group to secure our EC2 instance whenever we launch an instance. If no security group is selected, EC2 uses the default security group of the VPC. The default security group has no inbound rules and allows all outbound traffic. 

Get hands-on with 1200+ tech skills courses.