What Can I Do If a Subnet Cannot Be Deleted Because It Is Used By Other Resources?

The VPC service allows you to create private, isolated virtual network environments. In a VPC, you can manage private IP address segments, subnets, and network gateways. ECSs, BMSs, databases, and some other applications use secure networks created in VPCs.

Subnets in a VPC cannot be deleted if the subnets are used by the following resources:

  • ECS

  • Elastic load balancer

  • VPN

  • Private IP address

Check whether the subnet is used by the preceding resources. If yes, delete all resources in the subnet and delete the subnet.

Scroll to top