Skip to main content

Security Group

A Security Group in AWS is a virtual firewall that controls the inbound and outbound traffic to your instances. Security Groups help protect your instances from unwanted and potentially harmful traffic by allowing you to specify rules based on protocol, port number, and source/destination IP address. For more detailed information, you can refer to the official AWS Security Groups documentation.

Terrafrom Mappings:

  • aws_security_group.id
  • aws_security_group_rule.security_group_id

Supported Methods​

  • GET: Get a security group by ID
  • LIST: List all security groups
  • SEARCH: Search for security groups by ARN

ec2-vpc​

A Security Group is associated with an Amazon Virtual Private Cloud (VPC), and it defines the rules for the traffic to and from the instances within the VPC. Each VPC can have multiple Security Groups associated with it, allowing for flexible control of network access based on application requirements.