NEW: count ENI attached to SG
This commit is contained in:
parent
e210e9e783
commit
23b48999f2
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
aws ec2 describe-security-groups | jq -cr '.SecurityGroups[].GroupId' | while read s; do
|
||||
echo -n "$s: "
|
||||
aws ec2 describe-network-interfaces --filters Name=group-id,Values=$s | jq -cr '[.NetworkInterfaces[].NetworkInterfaceId] | length'
|
||||
done
|
Loading…
Reference in New Issue