Skip to content

[aws-batch] missing launchTemplateId in LaunchTemplateSpecification #20163

@AlJohri

Description

@AlJohri

Describe the feature

Add support for launchTemplateId when attaching a launchTemplate to a Batch Compute environment. Currently it requires using a launchTemplateName.

new batch.ComputeEnvironment(this, 'ComputeEnv', {
  computeResources: {
    launchTemplate: {
      launchTemplateName: myLaunchTemplate.launchTemplateName as string, //or simply use an existing template name
    },
    vpc,
  }
});

This should be supported: https://docs.aws.amazon.com/batch/latest/APIReference/API_LaunchTemplateSpecification.html

Use Case

I would like to stop naming resources explicitly as per CDK best practice and let CDK handle naming the launch template.

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

CDK version used

1.153.1

Environment details (OS name and version, etc.)

Amazon Linux 2

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-batchRelated to AWS Batchfeature-requestA feature should be added or improved.in-progressThis issue is being actively worked on.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions