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 공식업데이트됨 8달 전
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?