Problem scenario
You want to list the Security Group ID value in AWS.
Solution
Prerequisite
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.
Procedures
Run this command:
aws ec2 describe-security-groups | grep GroupId