AWS CLI : security group ID

28 Views Asked by At

I want to access the security group id. This is the command I used to create it, can anyone provide a one line command to view this table again?

aws --profile awscli-user-1 \
    ec2 create-security-group \
    --group-name ssh-access \
    --description "Security group for SSH access" \
    --vpc-id vpc-xxxxxxxxxxxxxxxxx \
    --output table

This is what I got after creating it

-------------------------------------
| CreateSecurityGroup               |
+----------+------------------------+
| GroupId  | sg-XXXXXXXXXXXXXXXX    |
+----------+------------------------+

How can I view this again?

0

There are 0 best solutions below