question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BUG: RegisterTaskDefinition operation no longer accepts task-definitions without an `image`

See original GitHub issue

When 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:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
paragbhingrecommented, Feb 15, 2021

@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”).

0reactions
thomasmostcommented, Feb 12, 2021

Correct, neither project is specifying an image tag and both are now working

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found