Task definition file not found for deploying to AWS ECS #26431
-
I am trying to push docker images from GitHub Actions to AWS ECR then to ECS with a task to deploy the latest container in AWS ECS. I am using the default aws.config file that AWS provides on GitHub Marketplace to push docker images to AWS ECR, which could then to deployed as containers to AWS ECS by defining tasks. And I got an error message with defining tasks to deploy to ECS(in the section “Fill in the new image ID in the Amazon ECS task definition” in aws.yml) and it is:
Some information to prove everything is in place(presumably): And here’s the part of my “.github/workflows/aws.yml” in my repo for task definition (full file can be found here in my repository):
Images are being pushed to my ECR repository without any problems, but the problem comes during executing tasks to deploy and start containers. So, as you can see task-definition file does exist, but GitHub doesn’t recongise it. What has caused this error and how do I fix this? I couldn’t post more screenshots. So, for all the information: aws-actions/amazon-ecs-render-task-definition#68 (comment) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can try to check with the steps below:
|
Beta Was this translation helpful? Give feedback.
-
Thank you very much for trying to help me. I fixed it. It had happened because, there was no file named ‘ecs-task-definition.json’ in github repo. I haven’t uploaded it with the thought that github will pull it from AWS. |
Beta Was this translation helpful? Give feedback.
Thank you very much for trying to help me.
I fixed it. It had happened because, there was no file named ‘ecs-task-definition.json’ in github repo. I haven’t uploaded it with the thought that github will pull it from AWS.