Create Security Group

Create Security Group

Information: This step will provide detailed instructions on how to create My VPC SG using CloudFormation Template. You can repeat this step to create additional HG VPC SG.

Security Note: To determine the required Inbound rules, list the requirements as follows:

  • You can SSH into the EC2 instance with source as your IP
  • Two EC2 instances in two VPCs can ping each other via ICMP - IPv4 protocol with source as Anywhere
  • Two EC2 instances in two VPCs can ping each other using ICMP - IPv4 protocol with source as the CIDR of the other VPC
  1. Access AWS Management Console. Select Services in the navigation bar and search for the VPC service.

Create Security Group

  1. In the VPC interface
    • On the left navigation pane, select Security Groups
    • On the Security Groups page, select Create Security Group

Create Security Group

  1. On the Create security group page, configure the following settings:
    • Basic details section:
      • Security group name: Enter the security group name (e.g., MY VPC SG)
      • Description: Enter the description of the security group
      • VPC: Select My VPC

Create Security Group

  1. Inbound rules section: Add the Inbound rules as mentioned above. Click Add rule to add a rule
    • Type: SSH | Source: My IP
    • Type: All ICMP - IPv4 | Source: Anywhere-IPv4
    • Type: All ICMP - IPv4 | Source: Custom 10.10.0.0/16 (CIDR of HG VPC)
    • Review configuration
    • Click Create security group

Create Security Group

  1. Security Group created successfully

Create Security Group

  1. Repeat the steps to create HG VPC SG as follows:
    • Basic details section:
      • Security group name: Enter the security group name (e.g., HG VPC SG)
      • Description: Enter the description of the security group
      • VPC: Select HG VPC

Create Security Group

  1. Inbound rules section: Add the Inbound rules as mentioned above. Click Add rule to add a rule
    • Type: SSH | Source: My IP
    • Type: All ICMP - IPv4 | Source: Anywhere-IPv4
    • Type: All ICMP - IPv4 | Source: Custom 172.31.0.0/16 (CIDR of My VPC)
    • Review configuration
    • Click Create security group

Create Security Group

  1. Security group created successfully

Create Security Group