Skip to main content

Security Group



Resource Icon

Resource Overview

A security group controls the traffic that can reach and leave the associated resources. For instance, when a security group is attached to an EC2 instance, it manages the inbound and outbound traffic to and from that instance. Security groups can only be associated with resources within the VPC where the security group was created. When a VPC is created, it comes with a default security group. Additional security groups can be created for each VPC. There is no additional charge for using security groups.

Associated Resources

Parent Resources

Connected Resources

Resource Setting Values

  • description: Description of Security Group
  • included_vpc_name: The name of the VPC with the Security Group
  • ingress: Ingress rule name in Security Group
    • rule_name: Ingress rule name in Security Group
    • description: Description of Ingress rules
    • from_port: Port number coming into the Ingress rule
    • to_port: Outgoing port number through the Ingress rule
    • protocol: Protocol in Ingress Rule - tcp, udp, icmp, all
    • cidr_block: CIDR to apply the Ingress rule to
  • egress: Egress rule name in Security Group
    • rule_name: Egress rule name in Security Group
    • description: Description of Egress rules
    • from_port: Port number coming into the Egress rule
    • to_port: Outgoing port number through the Egress rule
    • protocol: Protocol in Egress Rule - tcp, udp, icmp, all
    • cidr_block: CIDR to apply the Egress rule to

Reference Materials