本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
資源:運算環境範本
下列範例顯示空的運算環境範本。您可以使用此範本來建立運算環境,然後將其儲存至 檔案,並與 AWS CLI --cli-input-json
選項搭配使用。如需這些參數的詳細資訊,請參閱 參考 CreateComputeEnvironment中的 。 AWS Batch API
注意
您可以使用下列 AWS CLI 命令產生運算環境範本。
$
aws batch create-compute-environment --generate-cli-skeleton
{ "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": "" } }