issue in deleting VPC and network interface

后端 未结 8 1799
太阳男子
太阳男子 2020-12-29 19:54

I am trying to delete aws vpc (a non default one). I am getting error that \"We could not delete the following VPC (vpc-xxxxxxx (xx.xx.xx.x/16)) Network interface \'eni-xxxx

8条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-29 20:33

    You were right..It was ECS issue in my case. Not letting me delete my ENIs saying I dont have the permissions. I had already deregistered my ECS task definition but still It was not letting me delete resources like VPC, ENIs created by ECS.

    I had to update the version of task definition under ECS using same resources as previous definition version and then I deleted that new service and then deleted the clustere.

    With clustere, it deleted all resource like VPC, ENIs which it was not letting me delete earlier.

    I then dergistered second version of task definition. I had two inactive tasks definitions for a monent and then one task definitions disappeared..now only one is there in inactive state.

提交回复
热议问题