A security group acts as a firewall that controls the traffic for the instance, with rules that allow traffic to or from its associated instances.
To create a security group
From your Amazon Web Services account, sign in to the AWS Management Console (Open the My Account menu and select AWS Management Console).
Click EC2.
The EC2 dashboard opens.
Under NETWORK & SECURITY, click Security Groups.
The Security Groups page appears.
Click Create Security Group and create a new security group and add rules as necessary to open ports according to firewall requirements described in Requirements.