Create Security Group

Create Security Group

Create Security Group for servers located in Public subnet

  1. In the VPC interface

    • Select Security Group
    • Select Cretae security group

Create VPC

  1. Configure Security group

    • Security Group name, enter Public subnet - SG
    • Description, enter Allow SSH and Ping for servers in public subnet.
    • Select ASG VPC

Create VPC

  1. Configure Inbound rules

    • In Inbound rules, click Add rule.

    • Select Type: SSH and Source: My IP. My IP represents 1 public IPv4 address you are using (will change when you change network)

    • Select Add rule to add a new rule.

    • Select Type: All ICMP - IPv4 and Source: Anywhere. Allow ping from any IP address.

Create VPC

  1. Check Outbound rules and select Cretae security group

Create VPC

  1. Complete the creation of security group for the server located in the Public subnet

Create VPC

Create a Security Group for a server located in a Private subnet

  1. In the VPC interface

    • Select Security Groups
    • Select Create security group

Create VPC

  1. Configure Security group

    • In the Security group name field enter Private subnet - SG

    • In the Description section enter Allow SSH and Ping for servers in private subnet.

    • select VPC, select VPC named ASG.

Create VPC

  1. Configure Inbound rules

    • In Inbound rules, select Add rule.

    • Select Type: SSH and leave Source: Custom. Check the search box and select Public subnet SG. This option allows all servers assigned Public subnet SG to be SSH to the servers assigned to Private subnet SG. **.

Create VPC

  1. Select Add rule to add a new rule.

    • Select Type: All ICMP IPv4 and Source: Anywhere. Allow ping from any IP address.
      Create VPC
  2. Select Create security group

Create VPC

  1. So we have created 2 Security Group for servers located in public subnet and private subnet.
  • Next we will proceed to create 2 EC2 servers.

Create VPC