Skip to content

Container-instance is missing an attribute required by your task

0

Hi all.

I hope you are having a stellar day.

I urgently need some assistance with an issue I'm faced with.

I have come across a somewhat similar question on this platform, but it remains unanswered.

I'm trying to deploy both Redis and Lighthouse into our ECS cluster. This cluster is backed by EC2 instances inside of an Auto Scaling Group. I'm using public Docker images for these services that I've uploaded to ECR. The Lighthouse service does have a persistent volume attached, well that's the desired outcome in order to save reports at least. Side note: Redis is being deployed via Terraform.

When I try deploying the services I get this error:

Enter image description here Enter image description here

I've checked the attributes on the container instance as well as the required attributes on the task and I can't find an attribute missing.

Enter image description here Enter image description here Enter image description here Enter image description here Enter image description here Enter image description here Enter image description here

I've also tried running the ecs-cli tool per the AWS documentation, but it does not reveal anything to me.

Enter image description here

There is also not much else regarding this particular issue in the documentation.

I am also unable to check the ecs-agent logs on the container-instance via /var/log/ecs/ecs-init.log as the container does not even get spun up.

I am by no means an AWS expert yet, but I'm at my wits' end with this. I would GREATLY appreciate any advice from someone who has been faced with this issue before. Please.

Many many thanks in advance, Nic

1 Answer
0

Hello,

Please refer this article to trouble shoot the issue, https://repost.aws/knowledge-center/ecs-container-instance-requirement-error

EXPERT
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.