Skip to content

[BUG] AttributeError: AWS::ECS::TaskDefinition object does not support attribute InferenceAccelerators #805

@raffidahmad

Description

@raffidahmad

Describe the bug
Existing pipeline has stopped working as of 30th August, last successful run was on 29th August.
Could it be linked to this: aws/aws-cdk#33505 ?

Logs

Traceback (most recent call last):

  File "/opt/atlassian/pipelines/agent/build/ecs_composex/compose-x-venv/bin/ecs-compose-x", line 8, in <module>

    sys.exit(main())

             ^^^^^^

  File "/opt/atlassian/pipelines/agent/build/ecs_composex/compose-x-venv/lib/python3.12/site-packages/ecs_composex/cli.py", line 227, in main

    root_stack = generate_full_template(settings)

                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/atlassian/pipelines/agent/build/ecs_composex/compose-x-venv/lib/python3.12/site-packages/ecs_composex/ecs_composex.py", line 261, in generate_full_template

    add_compose_families(settings, families_sg_stack)

  File "/opt/atlassian/pipelines/agent/build/ecs_composex/compose-x-venv/lib/python3.12/site-packages/ecs_composex/ecs/ecs_stack.py", line 107, in add_compose_families

    initialize_family_services(settings, family)

  File "/opt/atlassian/pipelines/agent/build/ecs_composex/compose-x-venv/lib/python3.12/site-packages/ecs_composex/ecs/ecs_stack.py", line 53, in initialize_family_services

    family.init_task_definition()

  File "/opt/atlassian/pipelines/agent/build/ecs_composex/compose-x-venv/lib/python3.12/site-packages/ecs_composex/ecs/ecs_family/__init__.py", line 173, in init_task_definition

    self.set_task_definition()

  File "/opt/atlassian/pipelines/agent/build/ecs_composex/compose-x-venv/lib/python3.12/site-packages/ecs_composex/ecs/ecs_family/__init__.py", line 181, in set_task_definition

    self.task_definition = TaskDefinition(

                           ^^^^^^^^^^^^^^^

  File "/opt/atlassian/pipelines/agent/build/ecs_composex/compose-x-venv/lib/python3.12/site-packages/troposphere/__init__.py", line 206, in __init__

    self.__setattr__(k, v)

  File "/opt/atlassian/pipelines/agent/build/ecs_composex/compose-x-venv/lib/python3.12/site-packages/troposphere/__init__.py", line 317, in __setattr__

    raise AttributeError(

AttributeError: AWS::ECS::TaskDefinition object does not support attribute InferenceAccelerators

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions