This is a simple bash script that when given an ENI identifier and an AWS region will find if there are any Lambda functions currently using the specified ENI.
Requirements:
- The jq library
- The AWS CLI
- An IAM role configured with the AWS CLI that has permissions to query Lambda and EC2/VPC/ENIs
Arguements:
--eni
the id of the ENI to check, required--region
the region to search lambda for, required