Created
October 1, 2016 03:30
-
-
Save SkaTeMasTer/2624a9f51e1f8fe464b2923c9b96e401 to your computer and use it in GitHub Desktop.
List security groups for ec2 instances
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# list security groups for ec2 instances | |
aws ec2 describe-security-groups --query "SecurityGroups[].GroupId | [0]" --output text | |
output: | |
si-22642348 sg-11662348 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment