add support to security group in ec2.