Skip to content

(aws-batch): Switch to AL2023 in the default AMI for EC2 compute environments #37205

@tvoipio

Description

@tvoipio

Describe the feature

AWS has been sending notices about the pending EOL of Amazon Linux 2 in AWS Batch Compute Environments for a few times, see e.g. https://docs.aws.amazon.com/batch/latest/userguide/ecs-al2-ami-deprecation.html

The default is still AL2, though: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_batch.ManagedEc2EcsComputeEnvironment.html#images

Shouldn't the default be the non-deprecated image, especially for new environments?

Use Case

I'm frustrated when maintaining and creating Batch Compute Environments due to having to specify the machine image type manually.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS CDK Library version (aws-cdk-lib)

2.238.0

AWS CDK CLI version

2.1109.0 (build 3a415c7)

Environment details (OS name and version, etc.)

mac OS 26.3, Python 3.14.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-batchRelated to AWS Batcheffort/mediumMedium work item – several days of effortfeature-requestA feature should be added or improved.good first issueRelated to contributions. See CONTRIBUTING.mdp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions