Security should be of great importance in maintaining your workloads in the cloud in your aws environment.Whatsoever you deploy you got be covered and not worried right?This could be made possible by AWS as you are assured this by providing you with AWS security groups.
AWS security groups act as firewalls for your virtual servers and determine the accessibility of your instances .The security groups basically is an instance level firewall that allows and restricts both traffic inflow and outflow .
They do this, by specifying which traffic should interact with them through . The traffic can be restricted by using the source of the traffic is coming out or in from or the port or by protocols.
An allow and deny system which determines the traffic flow as the default condition.This control the inflow and outflow of traffic
called ingress and egress.
The security groups also control access to your instance,they have rules that enable this action.
A security group can be used in an instance within different subnets that is,one security group can be used in different subnets.
All this occur in the VPCs who is created by default with security groups.