Compute environment template - Amazon Batch
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Compute environment template

The following example shows an empty compute environment template. You can use this template to create your compute environment that can then be saved to a file and used with the Amazon CLI --cli-input-json option. For more information about these parameters, see CreateComputeEnvironment in the Amazon Batch API Reference.

{ "computeEnvironmentName": "", "type": "UNMANAGED", "state": "DISABLED", "unmanagedvCpus": 0, "computeResources": { "type": "EC2", "allocationStrategy": "BEST_FIT_PROGRESSIVE", "minvCpus": 0, "maxvCpus": 0, "desiredvCpus": 0, "instanceTypes": [ "" ], "imageId": "", "subnets": [ "" ], "securityGroupIds": [ "" ], "ec2KeyPair": "", "instanceRole": "", "tags": { "KeyName": "" }, "placementGroup": "", "bidPercentage": 0, "spotIamFleetRole": "", "launchTemplate": { "launchTemplateId": "", "launchTemplateName": "", "version": "" }, "ec2Configuration": [ { "imageType": "", "imageIdOverride": "", "imageKubernetesVersion": "" } ] }, "serviceRole": "", "tags": { "KeyName": "" }, "eksConfiguration": { "eksClusterArn": "", "kubernetesNamespace": "" } }
Note

You can generate the preceding compute environment template with the following Amazon CLI command.

$ aws batch create-compute-environment --generate-cli-skeleton