WebSecurity groups are virtual firewall rules that control inbound and outbound traffic to your EC2 instances. You can create security groups and specify the protocols, ports, and IP ranges that are allowed to access your instances. Creating a Security Group: 1. Open the AWS Management Console and Navigate the EC2 dashboard. 2.