DEV Community

Security Group Creation in AWS

This document outlines the steps for creating a security group in the Amazon Virtual Private Cloud (VPC) dashboard. You can find an article discussing the full significance of Security Groups here.

  1. Access the AWS Management Console
    Log in to the AWS Management Console using your valid AWS credentials.

  2. Navigate to the VPC Service
    In the AWS Management Console, locate and select the VPC service.

  3. Access Security Groups
    In the VPC navigation panel, select Security Groups.
    VPC navigation panel

  4. Create a Security Group
    Click the Create Security Group button.
    Create Security Group button

  5. Provide a name for your security group
    Name: Provide a descriptive name for your security group (e.g., "Web Server SG").
    Description: Enter a brief description of the security group's purpose.
    VPC: Select the VPC to which this security group will be associated.

security group description

  1. Configure Inbound Rules
    Click Add Rule to define inbound traffic rules.
    Type: Select the type of traffic (e.g., All traffic, TCP, UDP, ICMP, IP Permissions).
    Protocol: Specify the protocol (e.g., TCP, UDP, ICMP).
    Port Range: Define the port range for the traffic (e.g., 80 for HTTP, 443 for HTTPS).
    Source: Determine the source of the traffic:
    0.0.0.0/0: Allow traffic from anywhere.
    Specific IP addresses/CIDR blocks: Allow traffic from specific IP addresses or IP ranges.
    Security Groups: Allow traffic from other security groups within the same VPC.
    **Click Add Rule to add more inbound rules as needed.
    Inbound rule creation

  2. Configure Outbound Rules (Optional)
    Click Add Rule to define outbound traffic rules.
    Type: Select the type of traffic (e.g., All traffic, TCP, UDP, ICMP, IP Permissions).
    Protocol: Specify the protocol (e.g., TCP, UDP, ICMP).
    Port Range: Define the port range for the traffic (e.g., all ports).
    Destination: Determine the destination of the traffic:
    0.0.0.0/0: Allow traffic to anywhere.
    Specific IP addresses/CIDR blocks: Allow traffic to specific IP addresses or IP ranges.
    Security Groups: Allow traffic to other security groups within the same VPC.
    **Click Add Rule to add more outbound rules as needed.
    Outbound rule creation

Top comments (0)