Skip to content

aws-batch: deprecated useOptimalInstanceClasses property is still needed #36291

@rjuengling-hf

Description

@rjuengling-hf

Describe the bug

Issue #35515 / release 2.220 deprecated property useOptimalInstanceClasses of managed compute environments. But this option is still needed if users want to avoid including optimal in a compute environment's instance types.

Please remove the deprecation warning for use of this property, or change its default to false.

Regression Issue

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

Last Known Working CDK Library Version

2.219

Expected Behavior

No deprecation warning.

Current Behavior

Deprecation warning when use useOptimalInstanceClasses.

Reproduction Steps

Synthesize a cdk stack with a Batch compute environment and setting useOptimalInstanceClasses.

Possible Solution

Revert the deprecation.

Additional Information/Context

No response

AWS CDK Library version (aws-cdk-lib)

2.220

AWS CDK CLI version

2.1033.0

Node.js Version

22.18.0

OS

AL2023

Language

Python

Language Version

3.11

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-batchRelated to AWS BatchbugThis issue is a bug.effort/mediumMedium work item – several days of effortp1

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions