Skip to content

aws-ecs: aws-cdk-lib.aws_ecs.TaskDefinitionProps#inferenceAccelerators #33505

@rantoniuk

Description

@rantoniuk

Describe the bug

I started to see multiple instances of the same warning (for every ECS Service created):

[WARNING] aws-cdk-lib.aws_ecs.TaskDefinitionProps#inferenceAccelerators is deprecated.
  ECS TaskDefinition's inferenceAccelerator is EOL since April 2024
  This API will be removed in the next major release.
[WARNING] aws-cdk-lib.aws_ecs.TaskDefinitionProps#inferenceAccelerators is deprecated.
  ECS TaskDefinition's inferenceAccelerator is EOL since April 2024
  This API will be removed in the next major release.
[WARNING] aws-cdk-lib.aws_ecs.TaskDefinitionProps#inferenceAccelerators is deprecated.
  ECS TaskDefinition's inferenceAccelerator is EOL since April 2024
  This API will be removed in the next major release.
[WARNING] aws-cdk-lib.aws_ecs.TaskDefinitionProps#inferenceAccelerators is deprecated.
  ECS TaskDefinition's inferenceAccelerator is EOL since April 2024
  This API will be removed in the next major release.

even though I am not even using that inferenceAccelerators property. I'm happy that the warning is there, but it should not be displayed if I am not using this property (without adding any flag).

Regression Issue

  • Select this option if this issue appears to be a regression.

Last Known Working CDK Version

No response

Expected Behavior

No warning should be displayed if property is not used.

Current Behavior

As above.

Reproduction Steps

As above.

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.178.1 (build ae342cb)

Framework Version

No response

Node.js Version

v22.14.0

OS

MacOS

Language

TypeScript

Language Version

└── [email protected]

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-ecsRelated to Amazon Elastic ContainerbugThis issue is a bug.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions