You want to list the Security Group ID value in AWS.
Install and configure the AWS CLI; if you need assistance, see this posting if you can you the pip command and you are using Ubuntu. If you cannot use the pip command or you are not using Ubuntu, see this posting.
Run this command:
aws ec2 describe-security-groups | grep GroupId