_This issue was originally opened by @SubhakarKotta as hashicorp/terraform#21850. It was migrated here as a result of the provider split. The original body of the issue is below._
0.12
My application uses the below load balancer creates through HELM Release which was an dependent application
https://github.com/kubernetes-sigs/aws-alb-ingress-controller
So when we deploy the application through helm it internally creates an loadbalancer.
When I destroy the application it was not able to cleanup the newly created loadbalancer and hence the internet gateway was not able to destroy and hence the VPC also was not able to destroy
Error: Error waiting for internet gateway (igw-0c37628c5687d2d50) to detach: timeout while waiting for state to become 'detached' (last state: 'detaching', timeout: 15m0s)
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 4m20s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 10s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 4m30s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 20s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 4m40s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 30s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 4m50s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 40s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 5m0s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 50s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 5m10s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 1m0s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 5m20s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 1m10s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 5m30s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 1m20s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 5m40s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 1m30s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 5m50s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 1m40s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 6m0s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 1m50s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 6m10s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 2m0s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 6m20s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 2m10s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 6m30s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 2m20s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 6m40s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 2m30s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 6m50s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 2m40s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 7m0s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 2m50s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 7m10s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 3m0s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 7m20s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 3m10s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 7m30s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 3m20s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 7m40s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 3m30s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 7m50s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 3m40s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 8m0s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 3m50s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 8m10s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 4m0s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 8m20s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 4m10s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 8m30s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 4m20s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 8m40s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 4m30s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 8m50s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 4m40s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 9m0s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 4m50s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 9m10s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 5m0s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 9m20s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 5m10s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 9m30s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 5m20s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 9m40s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 5m30s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 9m50s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 5m40s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 10m0s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 5m50s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 10m10s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 6m0s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 10m20s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 6m10s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 10m30s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 6m20s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 10m40s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 6m30s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 10m50s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 6m40s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 11m0s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 6m50s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 11m10s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 7m0s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 11m20s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 7m10s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 11m30s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 7m20s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 11m40s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 7m30s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 11m50s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 7m40s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 12m0s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 7m50s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 12m10s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 8m0s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 12m20s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 8m10s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 12m30s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 8m20s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 12m40s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 8m30s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 12m50s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 8m40s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 13m0s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 8m50s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 13m10s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 9m0s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 13m20s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 9m10s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 13m30s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 9m20s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 13m40s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 9m30s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 13m50s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 9m40s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 14m0s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 9m50s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 14m10s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 10m0s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 14m20s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 10m10s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 14m30s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 10m20s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 14m40s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 10m30s elapsed]
module.vpc.aws_internet_gateway.this[0]: Still destroying... [id=igw-0c37628c5687d2d50, 14m50s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 10m40s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 10m50s elapsed]
module.cluster.aws_eks_cluster.this: Still destroying... [id=subhakar-demo-cluster, 11m0s elapsed]
We are also struggling with this at my org.
I have had same problem. Is there anyone fix it?
Most helpful comment
We are also struggling with this at my org.