Create EC2 Security Group

Creating a Security Group on AWS with Ports 80, 443, 5000, and 22

  1. Log in to the AWS Management Console.

  2. In the main menu, select Services, and then choose EC2 under Compute.

  3. On the left-hand side, you will see Network & Security. Select Security Groups.

  4. Click the Create Security Group button to begin the creation process.

Create a VPC

  1. Fill in basic information such as the name and description for your Security Group.

Create a VPC

  1. In the Inbound rules section, add the following rules to allow access to specific ports:
    • HTTP (80): Select HTTP from the list or enter port 80.
    • HTTPS (443): Select HTTPS from the list or enter port 443.
    • Custom TCP Rule (5000): Select Custom TCP Rule and enter port 5000.
    • SSH (22): Select SSH from the list or enter port 22.

Create a VPC

  1. After adding the rules, click the Create security group button.

Create a VPC

  1. Your Security Group is now created, and you can associate it with your EC2 resources to manage access to these ports.

Create a VPC