Added support for ec2 and rds security groups.