Question posted in Amazon Web Sevices The official Amazon Web Services documentation can be found here.
Amazon web services – I keep getting the error "The AWS ECS container todo-ecr-container does not exist" even though the container exists in my task definitions
I am learning about AWS codepipelne for the first time so I am a bit sloppy, but I am trying to build and deploy an artifact to I guess ECS? But I keep getting this error "The AWS ECS container todo-ecr-container does not exist" Even though it exists.
Check your task definition’s container name, it should be "todo-ecr-container" as on your first screenshot. Take your attention for extra spaces and capitalization, it matters as well.
There is a difference between task definition and container. Your screenshot is showing the Task Definition.
Inspect the Task Definition, on the first tab there will be Containers section that will give you the Container name and its image.
To double check, validate the JSON tab, look for something like
2
Answers
Check your task definition’s container name, it should be "todo-ecr-container" as on your first screenshot. Take your attention for extra spaces and capitalization, it matters as well.
There is a difference between task definition and container. Your screenshot is showing the Task Definition.
Inspect the Task Definition, on the first tab there will be Containers section that will give you the Container name and its image.
To double check, validate the JSON tab, look for something like