Difference between Amazon Security group and firewall

No, there's no major difference. EC2 security groups are basically firewall configurations that are easier to keep track of and automatically apply and clear as machines are added and removed from your groups.