How to see the description of a Security group using AWS CLI

0 votes
I am trying to find the description of my security group using aws cli how can i do that?
Nov 21, 2018 in AWS by Jino
• 5,820 points
2,196 views

1 answer to this question.

0 votes

You can use the following command to see the description of your security group.

aws ec2 describe-security-groups --group-ids sg-0587e1bghy67bb5d43
{
    "SecurityGroups": [
        {
            "Description": "My security group",
            "GroupName": "my-sg",
            "IpPermissions": [],
            "OwnerId": "24537890989895",
            "GroupId": "sg-0587e1bghy67bb5d43",
            "IpPermissionsEgress": [
                {
                    "IpProtocol": "-1",
                    "IpRanges": [
                        {
                            "CidrIp": "0.0.0.0/0"
                        }
                    ],
                    "Ipv6Ranges": [],
                    "PrefixListIds": [],
                    "UserIdGroupPairs": []
                }
            ],
            "VpcId": "vpc-0f137be1456thyda16"
        }
    ]
}

This is the way you will get your description. This will give a brief idea about what is the VPC-Id and Owner Id etc.

answered Nov 21, 2018 by Anoop

Related Questions In AWS

0 votes
1 answer

How to download the latest file in a S3 bucket using AWS CLI?

You can use the below command $ aws ...READ MORE

answered Sep 6, 2018 in AWS by Archana
• 4,170 points
19,882 views
0 votes
1 answer

How to remove a rule from a security group from AWS CLI?

Hi@akhtar, You can remove the ingress rule from ...READ MORE

answered Jul 7, 2020 in AWS by MD
• 95,460 points
5,649 views
0 votes
1 answer

AWS S3 uploading hidden files by default

versioning is enabled in your bucket. docs.aws.amazon.com/AmazonS3/latest/user-guide/….... the ...READ MORE

answered Oct 4, 2018 in AWS by Priyaj
• 58,020 points
6,004 views
0 votes
2 answers
0 votes
1 answer
0 votes
1 answer
–1 vote
1 answer

How to decrypt the encrypted S3 file using aws-encryption-cli --decrypt

Use command : aws s3 presign s3://mybucket/abc_count.png you get ...READ MORE

answered Oct 22, 2018 in AWS by Priyaj
• 58,020 points
5,231 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP