BUG: RegisterTaskDefinition operation no longer accepts task-definitions without an `image`
See original GitHub issueWhen following the instructions for using this action here: https://aws.amazon.com/blogs/opensource/github-actions-aws-fargate/
…I can no longer register the task definition because the image
is filled in during the GitHub workflow after the image is built.
This must have changed recently because I implemented this workflow for a different project as recently as November.
task-definition.json
{
"family": "web-task-staging",
"networkMode": "awsvpc",
"containerDefinitions": [
{
"name": "web-container-staging",
"memory": 200,
"cpu": 10,
"essential": true,
"portMappings": [
{
"containerPort": 80,
"hostPort": 80
}
],
...
And the error:
An error occurred (ClientException) when calling the RegisterTaskDefinition operation: Container.image should not be null or empty.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
RegisterTaskDefinition operation no longer accepts task ...
An error occurred (ClientException) when calling the RegisterTaskDefinition operation: Container.image should not be null or empty. SDK version ...
Read more >RegisterTaskDefinition - Amazon Elastic Container Service
Registers a new task definition from the supplied family and containerDefinitions . Optionally, you can add data volumes to your containers with the...
Read more >ECS Deploy - task-definitions.json - Atlassian Community
Solved: Hi, I keep getting the error " Not able to find task-definition.json in your repository." Any ideas? This is my file structure,...
Read more >Failed to register task definition in ECS with GitHub Actions
Issue found, I had not correctly updated the task definition json to declare the correct ARN.
Read more >When I don't set an image in the ECS task definition, I'm getting
An error occurred (ClientException) when calling the RegisterTaskDefinition operation: Container.image should not be null or empty. Kevin_Kho @ ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@thomasmost great to know that both the projects are working fine. I closing this issue for now, if you have any more concerns then please feel free to reopen this issue.
P.S. In order to avoid getting the error mentioned in the issue above, we need to mention the image tag in task def JSON with the string filled in (could be anything, could be “TBD”).
Correct, neither project is specifying an image tag and both are now working