Skip to main content

Security Group Rule

Security group rules in Amazon EC2 are fundamental components for controlling inbound and outbound traffic to EC2 instances. They act as virtual firewalls that manage network access to resources running in the cloud, specifying allowed protocols, ports, and source/destination IPs. For more detailed information, please visit the official AWS documentation on Security Group Rules.

Terraform Mappings:

  • aws_security_group_rule.security_group_rule_id
  • aws_vpc_security_group_ingress_rule.security_group_rule_id
  • aws_vpc_security_group_egress_rule.security_group_rule_id

Supported Methods​

  • GET: Get a security group rule by ID
  • LIST: List all security group rules
  • SEARCH: Search security group rules by ARN

ec2-security-group​

Security group rules are integral to EC2 security groups, which define the overall rules and parameters that control the traffic flow to and from EC2 instances. Each security group rule is a crucial part of the security configuration dictating how the security group operates within a VPC.