(module name): (short issue description) #26716
Labels
@aws-cdk/aws-ec2
Related to Amazon Elastic Compute Cloud
@aws-cdk/aws-eks
Related to Amazon Elastic Kubernetes Service
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
Describe the bug
cluster destroy fail due to dependent resources.
Expected Behavior
when cdk destroy is run all resources destroyed.
Current Behavior
get deletion errors:
1:00:12 pm | DELETE_FAILED | AWS::EC2::Subnet | testvpcPublicSubnet1Subnet01CF7554
Resource handler returned message: "The subnet 'subnet-01609017cd3231660' has dependencies and cannot be deleted. (Service: Ec2, Status Code: 400, Request ID: 68635619-e61d-4c35-9074-958e4ee3d432)" (RequestToken: ef2884ea-38c1-dc07-d101-1f4bdaee
30fd, HandlerErrorCode: InvalidRequest)
1:01:38 pm | DELETE_FAILED | AWS::EC2::VPCGatewayAttachment | testvpcVPCGW7060AA15
Network vpc-054f99c6f5b77b893 has some mapped public address(es). Please unmap those public address(es) before detaching the gateway. (Service: AmazonEC2; Status Code: 400; Error Code: DependencyViolation; Request ID: 9b0e88c2-420e-4ccf-9ac9-a0b
3fe115acc; Proxy: null)
❌ TestStack: destroy failed Error: The stack named TestStack is in a failed state. You may need to delete it from the AWS console : DELETE_FAILED (The following resource(s) failed to delete: [testvpcPublicSubnet3Subnet667BDE9B, testvpcPublicSubnet2Subnet4E9D9728, testvpcVPCGW7060AA15, testvpcPublicSubnet1Subnet01CF7554]. ): Resource handler returned message: "The subnet 'subnet-07fbb2f08261768cc' has dependencies and cannot be deleted. (Service: Ec2, Status Code: 400, Request ID: f38fac04-5710-465b-a585-9d311e1b9371)" (RequestToken: 01c1cffd-e215-81b4-29cf-4735f390121b, HandlerErrorCode: InvalidRequest), Resource handler returned message: "The subnet 'subnet-0145d671f97ea3b67' has dependencies and cannot be deleted. (Service: Ec2, Status Code: 400, Request ID: 04c0c875-130a-4d6b-9ae7-e78109e52efc)" (RequestToken: 7843a559-44e0-041e-929e-762861d3bbd1, HandlerErrorCode: InvalidRequest), Resource handler returned message: "The subnet 'subnet-01609017cd3231660' has dependencies and cannot be deleted. (Service: Ec2, Status Code: 400, Request ID: 68635619-e61d-4c35-9074-958e4ee3d432)" (RequestToken: ef2884ea-38c1-dc07-d101-1f4bdaee30fd, HandlerErrorCode: InvalidRequest), Network vpc-054f99c6f5b77b893 has some mapped public address(es). Please unmap those public address(es) before detaching the gateway. (Service: AmazonEC2; Status Code: 400; Error Code: DependencyViolation; Request ID: 9b0e88c2-420e-4ccf-9ac9-a0b3fe115acc; Proxy: null)
at destroyStack (/usr/local/lib/node_modules/aws-cdk/lib/index.js:412:1796)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async CdkToolkit.destroy (/usr/local/lib/node_modules/aws-cdk/lib/index.js:415:161158)
at async exec4 (/usr/local/lib/node_modules/aws-cdk/lib/index.js:470:52002)
Reproduction Steps
create cluster with the following resources:
Possible Solution
create cluster with these resources:
Additional Information/Context
No response
CDK CLI Version
2.85.0
Framework Version
No response
Node.js Version
v18.13.0
OS
Mac 11.7.9
Language
Go
Language Version
1.20.4 darwin/amd64
Other information
No response
The text was updated successfully, but these errors were encountered: