Cannot delete ENI after delete the stack via Terraform
0
Hello. via terraform I've created a stack with EKS. On EKS I did setup aws-load-balancer-ingress-conotroller and traefik.
Before to destroy everything via terraform I didn't delete the 2 pods for my alb and traefik service.
Doing so I'm not able to delete the eni created by these process.
I'm root in my account and I run also the following command
aws ec2 detach-network-interface --attachment-id eni-attach-xxxxxxxx --force
An error occurred (AuthFailure) when calling the DetachNetworkInterface operation: You do not have permission to access the specified resource.
Also I've a basic account, so I cannot contact the support in order to ask them to delete for me.
Can please someone shed some light ?
Thanks
1 Answers
0
Maybe you need to check where you're execute the command?
Use below command to check your iam user/role. And check the IAM user/role's permission.
aws sts get-caller-identity
And you may need to check those pod had terminated first.
answered 3 months ago
Relevant questions
Failing to terminate instance via CLI and console
asked 2 years agoOrphaned nodegroup keeps creating EC2 instance
asked a year agoEKS NodeGroup - The aws-auth ConfigMap in your cluster is invalid
asked a year agoCannot delete because cluster <cluster name> currently has an update in progress
Accepted Answerasked 3 months agoAWS EKS - CloudFormation Script fails (just the documented tutorial with no changes)
asked 2 months agoNetwork interfaces cannot be deleted
asked a year agoCannot stop a serive
asked 5 months agoCannot delete ENI after delete the stack via Terraform
asked 4 months agoCannot delete ENI attached to destroyed EKS
asked 4 months agoDeleting CloudFormation Stacks using a shell script
Accepted Answerasked 2 years ago
What is the description of the ENI? If its connected to a managed resource like the load balancer then you can't delete the ENI directly, and instead need to delete the resource its connected to