Create a Security Group for EC2
A security group acts as a virtual firewall that controls traffic to and from its associated AWS resources.
- Log into your AWS Console as a user with administrator privileges and go to the VPC console.
- Click the Security groups tab in the sidebar.
- Click the Create security group button.
- Entry a security group name.(e.g. velodb-server-sg)
- For VPC, select the VPC with which you want to associate the security group.
- Click Create security group.
- Add inbound and outbound rules for the security group.
- Add Inbound Rules
- Rule 1: Set Type to All TCP; For Source, select the security group you just created from the Source drop-down list.
- Rule 2: Set Type to Custom TCP; For Port range, enter 8000-10000; For Source, enter the CIDR block of the VPC that you want to allow access from.
- Add Outbound Rules
- By default, all outbound traffic is allowed. This is the standard configuration and usually requires no modification.
- Add Inbound Rules
- Click Save rules.
- In the security group summary, copy the Security group ID to add to VeloDB console.