1回答
- 新しい順
- 投票が多い順
- コメントが多い順
0
Hello.
I think you need to delete the resource that is using the network interface.
For example, typical resources include ALB, Lambda connected to VPC, and EC2.
First you need to find the resource that uses ENI.
If you look at the ENI description column, there may be hints written there.
I think it will be easier to see if you run the following command with CloudShell etc.
SUBNETID=subnet-yyyyyyyyyy
aws ec2 describe-network-interfaces\
--filters Name=subnet-id,Values="$SUBNETID"\
--query 'NetworkInterfaces[].{
PrivateIpAddress:PrivateIpAddress,
PublicIp:Association.PublicIp
Name:TagSet[?Key==`Name`]|[0].Value,
Description:Description,
InstanceId:Attachment.InstanceId,
NetworkInterfaceId:NetworkInterfaceId,
Status:Status
}'\
--output json\
| jq -r '
.[] | [.PrivateIpAddress, .PublicIp, .Description, .Name, .InstanceId, .NetworkInterfaceId, .Status] | @csv'\
| sort -V -t "," -k 1
関連するコンテンツ
- AWS公式更新しました 2ヶ月前
I did check all the related resources and did try to delete them, as I mentioned in the post. Nothing helped.
By the way, which resource is the ENI linked to that cannot be deleted?