You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A bit of context, I want to create an Ubuntu AMI with the AWS ECS Agent installed so that I can use https://github.com/nestybox/sysbox as the default container runtime. Related open issue is here: aws/containers-roadmap#673. For this reason, I am looking to use the following instructions to manually set up the ECS agent using a docker run command so that I can also use the --runtime flag to specify the ECS Agent to use runc while I set the default container runtime for the other containers to be sysbox-runc:
Using the above setup instructions, I can get the agent to connect to the ECS cluster; however, I cannot get my tasks to run and get the following error:
The closest matching container-instance <container-arn> is missing an attribute required by your task. For more information, see the [Troubleshooting section](http://docs.aws.amazon.com/AmazonECS/latest/developerguide/troubleshooting.html).
I've already cross-referenced the required task definition attributes vs. the container instance attributes and they are matching:
Any thoughts? I've been stuck on this for a while :(
Expected Behavior
The ECS Agent should be able to connect to the ECS cluster and pick up tasks.
Observed Behavior
The ECS Agent connects to my ECS cluster but fails to pick up tasks due to an error that my container instance is missing an attribute required by your task
The text was updated successfully, but these errors were encountered:
Andrew5194
changed the title
Instructions for Setting up ECS Agent Container (i.e. Other Linux AMIs when awsvpc networking mode is enabled) Does Not Work
Instructions for Setting up ECS Agent Container (i.e. Other Linux AMIs when awsvpc networking mode is enabled) Do Not Work
Aug 12, 2022
Hi, thank you for reaching with this issue. I am trying to repro this behavior, so far I am able to launch a simple awsvpc task on a ubuntu VM with agent installed this way. Some questions for further investigation -
Could you share a simple, sample task definition which gets blocked?
Summary
I am unable to set up the ECS Agent container using the instruction set forth in https://github.com/aws/amazon-ecs-agent#on-other-linux-amis-when-awsvpc-networking-mode-is-enabled.
Description
A bit of context, I want to create an Ubuntu AMI with the AWS ECS Agent installed so that I can use https://github.com/nestybox/sysbox as the default container runtime. Related open issue is here: aws/containers-roadmap#673. For this reason, I am looking to use the following instructions to manually set up the ECS agent using a
docker run
command so that I can also use the--runtime
flag to specify the ECS Agent to userunc
while I set the default container runtime for the other containers to besysbox-runc
:Using the above setup instructions, I can get the agent to connect to the ECS cluster; however, I cannot get my tasks to run and get the following error:
I've already cross-referenced the required task definition attributes vs. the container instance attributes and they are matching:
Required Task Definition Attributes
Container Instance Attributes
Even running the following commands shows that there are no missing attributes:
Looking into the docs further (https://aws.amazon.com/premiumsupport/knowledge-center/ecs-container-instance-requirement-error/), it seems that it could be that my ecs cluster and container instance may not be on the same subnet (as I'm using the
awsvpc
networking mode for my ECS cluster), but after confirming that they are on the same subnet, I still get the same issue.What's strange is when I use the ECS-optimized image https://us-east-1.console.aws.amazon.com/systems-manager/parameters/aws/service/ecs/optimized-ami/amazon-linux-2/recommended/image_id/description?region=us-east-1# and use
systemctl start ecs
, my ECS agent works fine and tasks are picked up successfully, but when I try to manually invokedocker run
to start the ECS agent using the instructions above (on the same ECS-optimized AMI), I get the same required attributes error.Any thoughts? I've been stuck on this for a while :(
Expected Behavior
The ECS Agent should be able to connect to the ECS cluster and pick up tasks.
Observed Behavior
The ECS Agent connects to my ECS cluster but fails to pick up tasks due to an error that my container instance
is missing an attribute required by your task
Environment Details
I'm attempting to set up an Ubuntu ECS AMI using the AMI https://aws.amazon.com/marketplace/pp/prodview-iftkyuwv2sjxi?sr=0-2&ref_=beagle&applicationId=AWSMPContessa
Ran a cross-test on the ECS-optimized AMI for https://us-east-1.console.aws.amazon.com/systems-manager/parameters/aws/service/ecs/optimized-ami/amazon-linux-2/recommended/image_id/description?region=us-east-1#
Supporting Log Snippets
The text was updated successfully, but these errors were encountered: