'aws: Networking issue

While running ecs fargate task aws automatically stopped my task with error

There was an error while describing network interfaces.
The networkInterface ID 'eni-0c21gdfgerg' does not exist

My task was running for more than a day but now it suddenly stopped.

I checked that eni- and that eni is not existing.

How can I troubleshoot it?



Solution 1:[1]

Seems like ecs fargate task have different stages and in Deprovisioning stage it deletes all the networking related stuff where network interface is also deleted.

Also I was viewing this task in Stopped stage that's why i was getting the error.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ALTAF HUSSAIN