Can't delete VPC due to block by non existing resource

0

I have created an ECS cluster via Terraform. Upon destroying the resource I ended up in a loop. The container was destroyed. Now I have a VPC left (vpc-0ba771dd4ca03f17d) that refused to be deleted due to two ENIs (eni-0a1398f0c08561d76, eni-07c4017e3cd07d10d) which are being blocked by this non existing container.

When I try forcefully detaching any of these ENI's I get: Failed to detach the network interface. API error: "You do not have permission to access the specified resource." although I am root.

What can I do to?

Any help is appreciated.

asked 8 months ago120 views
1 Answer
1

So these are AWS managed ENIs and thats the reason you are not able to detach it or use it.

Please make sure these ENIs are not part of other resources like autoscaling group or a loadbalancer that gets created with ECS, based on your configuration. If thats the case then please delete those and then try deleting VPC.

If these are already deleted and you still see these ENIs being part of ECS, then wait for sometime but then open a case with ECS support team to remove orphaned ENIs.

AWS
answered 8 months ago
profile picture
EXPERT
reviewed 8 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions