-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deleting EC2 Subnet (subnet-xxxxxxx): DependencyViolation: The subnet 'subnet-xxxxxxx' has dependencies and cannot be deleted. #1081
Comments
This issue has been automatically marked as stale because it has been open 30 days |
Any update on this? |
This issue has been automatically marked as stale because it has been open 30 days |
Any update on this? |
It's not a module issue so there's nothing we can do here |
This issue has been automatically marked as stale because it has been open 30 days |
This issue was automatically closed because of stale in 10 days |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
I have used terraform VPC module to create the VPC through Terragrunt. When i try to delete the VPC, it got hanged and throw EC2 Subnet (subnet-xxxxx): DependencyViolation error.
Versions
Module version [Required]:
Terragrunt version:
v0.55.20
Provider version(s):
registry.terraform.io/hashicorp/aws v5.42.0
Reproduction Code [Required]
When i apply destroy command to delete the vpc, i got below.
It got hanged in deleting the subnet. Above two subnets are private subnets.
Expected behavior
The plan is applied, deleting the VPC and associated subnets.
Actual behavior
It will say "Still destroying" for about 20 minutes, before it gives up saying the subnet has dependencies:
module.vpc.aws_subnet.private[2]: Destroying... [id=subnet-xxxxxx]
module.vpc.aws_subnet.private[1]: Still destroying... [id=subnet-xxxxx, 19m20s elapsed]
...
Error: deleting EC2 Subnet (subnet-xxxxx): DependencyViolation: The subnet 'subnet-xxxxx' has dependencies and cannot be deleted.
│ status code: 400, request id: 76947801-c590-4a79-bfdb-6468693133b8
The text was updated successfully, but these errors were encountered: