I made a Django app on AWS ECS Fargate with Load Balancer. The flask app is simple server that returns 'this is an index page.' the ECS checks health every 5 minutes. And these health checks recorded on a log page of the service.
So I launched this app at 0:20, and the log page recorded the health check correctly. But the log page stop logging at 4:00. Nobody accessed the page, status of the service is healthy and I checked the setting of health check but there was nothing that could be a problem I think.
Here is the image of the logs. (when stopped)
After that, I entered the app, accessed correctly and load balancer left records of that request. But log page of the ECS log page still stopped.
Do you have any idea about this problem?
UPDATE: I checked CloudWatch's log and it was working well! (I didn't know that..) But when cluster > service > log stopped, there is an error. (I had this problem several times and I checked the error is all the same)
The error is Not Found: /latest/dynamic/instance-identity/document
I searched and I figure out that the document is related to instance identify. How I can fix this error?