Skip to content

Commit

Permalink
Update Command Formating
Browse files Browse the repository at this point in the history
  • Loading branch information
LanikSJ committed Jun 27, 2023
1 parent e1e2231 commit e77012b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion alias
Original file line number Diff line number Diff line change
Expand Up @@ -197,4 +197,5 @@ ebs-volumes = ec2 describe-volumes \
# List EC2 Security Groups
open-security-groups = ec2 describe-security-groups \
--filters "Name=ip-permission.to-port,Values=22" --output table \
--query 'SecurityGroups[?length(IpPermissions[?ToPort==`22` && contains(IpRanges[].CidrIp, `0.0.0.0/0`)]) > `0`].{GroupName: GroupName, TagName: Tags[?Key==`Name`].Value | [0]}'
--query 'SecurityGroups[?length(IpPermissions[?ToPort==`22` && \
contains(IpRanges[].CidrIp, `0.0.0.0/0`)]) > `0`].{GroupName: GroupName, TagName: Tags[?Key==`Name`].Value | [0]}'

0 comments on commit e77012b

Please sign in to comment.