aws-actions / amazon-ecs-deploy-task-definition

Registers an Amazon ECS task definition and deploys it to an ECS service.
MIT License
639 stars 238 forks source link

Failed to register task definition in ECS: Unrecognized collection type class com.amazonaws.madison.frontend.RegisterTaskDefinitionRequest #610

Closed RahulKumarTechahead closed 1 week ago

RahulKumarTechahead commented 1 month ago

Run aws-actions/amazon-ecs-deploy-task-definition@v2 with: task-definition: rendered-task-definition.json service: cluster: wait-for-service-stability: true codedeploy-appspec: rendered-service-definition.json env: AWS_ACCOUNT_ID: AWS_REGION: us-west-2 AWS_DEFAULT_REGION: us-west-2 AWS_ACCESS_KEY_ID: AWS_SECRET_ACCESS_KEY: AWS_SESSION_TOKEN: ARN: Error: Failed to register task definition in ECS: Unrecognized collection type class com.amazonaws.madison.frontend.RegisterTaskDefinitionRequest Error: Unrecognized collection type class com.amazonaws.madison.frontend.RegisterTaskDefinitionRequest

amazreech commented 1 month ago

Hi @RahulKumarTechahead, Thank you for reaching out with your question. For best assistance on this issue I recommend contacting AWS support as they should have the expertise needed to address this. You can reach AWS Support through here: https://docs.aws.amazon.com/awssupport/latest/user/getting-started.html

Please let me know if there is anything else I can help you with.

kg-aws commented 2 weeks ago

Hi @RahulKumarTechahead - I hope you were able to reach out to the AWS support. If you think the issue is related to this repository feel free to drop the logs or error messages that can help use debug the issue. If not, we plan to close the issue.

ryanshepps commented 2 weeks ago

I ran into this issue when I was only including the container definitions in my task-definition.json:

[
    {
        "name": "...",
        "image": "..."
    }
]

Defining the whole task definition fixed it:

{
    "containerDefinitions": [
        {
            "name": "...",
            "image": "..."
        }
    ],
    "memory": 2048,
    "cpu": 1024,
    "networkMode": "awsvpc",
    "family": "...",
    "executionRoleArn": "...",
    "requiresCompatibilities": ["FARGATE"]
}
amazreech commented 1 week ago

Thanks for your response @ryanshepps!

@RahulKumarTechahead I will close this issue for now please feel free to open a new issue if this persists. Thank you!