AWS won't let me delete it a VPC instance, keep charging for it

It’s a single VPC, created for an Aurora project some months back. The aurora project is gone, but the VPC remains. When I go to delete it through the UI, I get told I have 25 network interfaces dependencies, that must be deleted first.

When I go do delete those, I’m told those cannot be deleted as they are in use.

Network interface is currently in use and is of type vpc_endpoint . Possible owning resource is vpce-0ecd7b182548ed1c2 .

AND

eni-0e17338c1c714f386Network interface is currently in use and is of type “interface”.

Then when I go to the 3 endpoints, It will let me delete them, but then I get an error

"There was an error deleting your endpoints" and they’re still there.

Tried going through the CLI as well, and I get this error:

[cloudshell-user@ip-10-130-83-69 ~]$ aws ec2 delete-vpc-endpoints --vpc-endpoint-ids vpce-0ecd7b182548ed1c2

{

“Unsuccessful”: [

{

“Error”: {

“Code”: “InvalidParameter”,

“Message”: “Operation is not allowed for requester-managed VPC endpoints for the service com.amazonaws.vpce.us-east-1.vpce-svc-04e67635ad62cdc6d.”

},

“ResourceId”: “vpce-0ecd7b182548ed1c2”

}

]

}

[cloudshell-user@ip-10-130-83-69 ~]$

This is my personal account and I’m the only user on it. Any idea how I can get rid of this annoying $38 a month charge?

Delete the endpoint service?

This is a VPC Endpoint created by a service on your account, and it has to be deleted through that service.

Try this article and see if it helps: https://repost.aws/knowledge-center/vpc-delete-requester-managed-endpoint

The “Endpoint Service” menu says “No endpoint services found” even when I specify the VPC.

If you aren’t finding the vpc endpoints, try checking the region you are set under. Perhaps the missing endpoints are in a diff region

Yes, I found and tried that very article. I couldn’t get this command to run in the console:

dig test1.proxy-chnis5vssnuj.us-east-1.rds.amazonaws.com +short
vpce-0ce9fdcdd4aa4097e-1hbywnw6.vpce-svc-0b2f119acb23c050e.us-east-1.vpce.amazonaws.com.
172.31.4.218
172.31.21.82

Is the command all one line? It said “Dig” is not recognized. Do I need a “aws ec2” in front of it?

Where do I get the parameters, (the text.proxy.xxx part and the amazon.aws url from for my instance?

Do I need to include the IP addresses at the bottom?

  1. Perform a name lookup on the Aurora Serverless endpoint:
    dig test1.proxy-chnis5vssnuj.us-east-1.rds.amazonaws.com +short
    vpce-0ce9fdcdd4aa4097e-1hbywnw6.vpce-svc-0b2f119acb23c050e.us-east-1.vpce.amazonaws.com.
    172.31.4.218
    172.31.21.82
  2. Check the CNAME value of the record matching the DNS name of the endpoint that you’re trying to delete. This confirms that this endpoint was created by Aurora Serverless.
    Note: To verify the DNS name of the endpoint, do the following:
  3. Open the VPC console and then select Endpoints.
  4. Select the Details tab and view the listed DNS names.

I also went through all of the procedures at the bottom of that article, and it said I have

A. No Redshift instances

B. No Aurora Services

C. No Network Firewalls.

D. No Redshift-managed VPC endpoints.

I even created a new Redshift instance to see if that would help and I could delete it that way, all that did was add a bunch of new network interfaces.

I checked every region, I only have the 3 in US East. I can see the endpoints clearly, just cannot delete them.

Endpoints (1/3) Info
Actions
Create endpoint
1
Name

VPC endpoint ID

VPC ID

Service name

Endpoint type

Status

Creation time

Network interfaces

Subnets

Route tables
Displaying items 1 to 3 of 3Displaying items 1 to 3 of 3
Name

VPC endpoint ID

VPC ID

Service name

Endpoint type

Status

Creation time

Network interfaces

Subnets

Route tables
–
vpce-033bc65215deb422d vpc-3b00975c com.amazonaws.vpce.us-east-1.vpce-svc-095d88e82a079b709 Interface Available Wednesday, April 12, 2023 at 17:51:55 EDT 5 network interfaces 5 subnets –
–
vpce-0ecd7b182548ed1c2 vpc-3b00975c com.amazonaws.vpce.us-east-1.vpce-svc-04e67635ad62cdc6d Interface Available Wednesday, April 12, 2023 at 17:51:55 EDT 2 network interfaces 2 subnets –
–
vpce-028bec39d3f81c896 vpc-3b00975c com.amazonaws.vpce.us-east-1.vpce-svc-02714237756d91750 Interface Available Friday, February 2, 2024 at 12:00:55 EST eni-0e6162e2e619c580b subnet-06093d2c –

Nuke the account?

https://github.com/rebuy-de/aws-nuke

Get the network interface ID(s) - looks like you already have them - and look them up in cloudtrail and config timelime for more hints as to what they are.

Dig is a Linux command line tool that does similar to nslookup. But that command isn’t that useful, it just verifies that some Aurora Serverless endpoint you have (and know about) is associated with this particular VPC endpoint.

You’re on the right track checking all those services though. Some AWS service created those endpoints and you have to delete them from that service. Lots of various AWS services can do this, so if you can’t remember which one you created, I would try checking your CloudTrail logs for when the VPC endpoints were created in your account. The identity associated with that API call will be one of your Service-Linked Roles which should identify which service created it. Go find and delete the thing in that service.

Contact AWS and explain the situation.

I am on the basic tier so there is no option for tech support, just their forum, which I posted on.

In cases like this where money is involved I highly suggest opening a case with Support as soon as possible, meanwhile keep trying to solve it on your side until they answer.

Sorry for the trouble with this.

I’d recommend opening a case in our Support Center, for further help from our Account team. They’d be happy to look into this with you to assist with next steps.

- Ann D.

You can submit a ticket with basic support. It just may take longer for them to respond.

Basic doesn’t get technical tickets. Dev is required for technical tickets.

You get account/billing support. Being unable to delete something inexplicably like that is easy to write as an account ticket.

Fair enough, the billing people do a pretty good job forwarding questions to the technical people if it’s warranted

You mentioned you were testing RDS. Have you tried looking in the console if you still have an “RDS Proxy” present, as this has endpoints that will get deleted only when you delete the proxy.

Yes, checked RDS, Redshift, Aurora, Postgres, anything that could have been part of the original services. All were deleted. Yet this VPC that one of them spawned still lives on.