Skip to content

Commit f004c7e

Browse files
authored
chore(ecs): mark TaskDefinition inferenceAccelerators as deprecated (#33248)
### Issue # (if applicable) N/A ### Reason for this change Elastic inference is in [EOL](https://docs.aws.amazon.com/cli/latest/reference/elastic-inference/), and is no longer available. As such, these properties are being deprecated, and will eventually be removed entirely. ### Description of changes Marked `TaskDefinitionProps.inferenceAccelerators` and `TaskDefinition.addInferenceAccelerator()` as deprecated to prevent their creation. ### Describe any new or updated permissions being added N/A ### Description of how you validated changes `yarn build` ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* BREAKING CHANGE: The `TaskDefinitionProps.inferenceAccelerators` attribute and `TaskDefinition.addInferenceAccelerator()` method will be marked as deprecated.
1 parent 80073c8 commit f004c7e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/aws-cdk-lib/aws-ecs/lib/base/task-definition.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ export interface TaskDefinitionProps extends CommonTaskDefinitionProps {
220220
* Not supported in Fargate.
221221
*
222222
* @default - No inference accelerators.
223+
* @deprecated ECS TaskDefinition's inferenceAccelerator is EOL since April 2024
223224
*/
224225
readonly inferenceAccelerators?: InferenceAccelerator[];
225226

@@ -724,6 +725,7 @@ export class TaskDefinition extends TaskDefinitionBase {
724725

725726
/**
726727
* Adds an inference accelerator to the task definition.
728+
* @deprecated ECS TaskDefinition's inferenceAccelerator is EOL since April 2024
727729
*/
728730
public addInferenceAccelerator(inferenceAccelerator: InferenceAccelerator) {
729731
if (isFargateCompatible(this.compatibility)) {

0 commit comments

Comments
 (0)