Although my EC2 instance (with AIM optimized-for-ECS) has the ecs agent running but the container does not start in my EC2. To confirm that ecs-agent is running at my EC2 instance, I have checked:
- ecs logs at /var/log/ecs/ecs-xxx-abc --> ecs agent started OK
- 'default' cluster at ecs console also register my EC2 as ECS instance
Below are captured images for proving ECS-agents are OK with my EC2 instance.
Pic1: ecs-agent start successfully on my EC2 instance
Pic2: My EC2 instance registered successfully with cluster
Pic3: Service status is ACTIVE
Pic4: Task-definition status is ACTIVE
Anybody have any idea why ECS does not invoke container (nginx:latest with port mapping 80) at my EC2 instance ? (no activities observed at logs as well).
I have been scratching my head many days but the issue is still there :(