Created
October 1, 2016 03:30
-
-
Save SkaTeMasTer/b27d101bc61fce65bc268e535b84b070 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