Skip to content

Network interface is currently in use and is of type "interface".

0

Hi, I am unable to delete the VPC after creating a Database Instance in RDS. It keeps prompting with the message Network interface is currently in use and is of type "interface". I have tried detaching also. Is it because my DB instance on RDS is publicly accessible?

Also, when I try to detach the Network Interface, it gives the below error - "Failed to detach the network interface. API error: "You do not have permission to access the specified resource."

1 Answer
1

Hello.

If an RDS instance is running in the VPC to be deleted, it cannot be deleted because an ENI will be created in the VPC.
Therefore, first delete resources such as RDS instances and RDS Proxy, and then delete the VPC.
https://repost.aws/knowledge-center/troubleshoot-dependency-error-delete-vpc

EXPERT
answered 2 years ago
EXPERT
reviewed 2 years ago
EXPERT
reviewed 2 years ago
  • I have a free-tier RDS running, I cannot delete that. VPC is recurring charges even though the DB instance is created in free-tier version. When I had a chat with billing support team, they told me to delete the VPC because it generating charges.

    I believe that if I have to keep my DB instance on RDS up and running, I will have to maintain a VPC. Could you please provide some help on this?

  • By any chance, have you enabled public access for RDS? In this case, a public IPv4 address is attached to RDS, which incurs costs. If public access is enabled, disabling it will remove RDS's public IPv4, which will reduce costs. https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html#USER_VPC.Hiding

  • By the way, to access RDS locally, you can use the SSM port forwarding function as described in the document below, which eliminates the need to enable public access. https://aws.amazon.com/jp/blogs/mt/use-port-forwarding-in-aws-systems-manager-session-manager-to-connect-to-remote-hosts/

  • Yes, I have enabled public access for RDS. I think disabling the public access will resolve the issue. Thank you for providing the resource on SSM.

    Will I be able to connect to the DB instance using SSMS using the above resource?

    Appreciate your help.

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.