Amazon EC2 security groups for your EC2 instances - Amazon Elastic Compute Cloud
Use security groups and security group rules as a firewall to control traffic to and from your EC2 instances.