aws-batch

AWS Python CDK – define the launch template for Batch Compute Environment

AWS Python CDK – define the launch template for Batch Compute Environment Question: In my Python CDK Stack, I’m trying to configure an AWS Batch Compute Environment to be able to use a Launch Template I’m creating in the same stack. Example: launch_template = ec2.CfnLaunchTemplate( scope=self, id=f"{stack_id}-EC2LaunchTemplate", launch_template_name=f"{stack_id}-EC2LaunchTemplate", launch_template_data=ec2.CfnLaunchTemplate.LaunchTemplateDataProperty( image_id="ami-xxxxxxxxxxx", instance_type="xxxxxxxxxx", ebs_optimized=True, user_data=Fn.base64(…) ) ) …

Total answers: 1