Created
November 29, 2021 20:07
-
-
Save ivica-k/5d0fcbfed951fee8f2a1818066b2f734 to your computer and use it in GitHub Desktop.
Lists ENIs used by Lambdas
This file contains 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
# be sure to export $AWS_DEFAULT_REGION and $VPC_ID | |
$ aws ec2 describe-network-interfaces --region $AWS_DEFAULT_REGION \ | |
--filters 'Name=vpc-id,Values=$VPC_ID' 'Name=status,Values=in-use' \ | |
--query 'NetworkInterfaces[?InterfaceType==`lambda`].NetworkInterfaceId' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment