를 사용하여 작업 정의 생성 ContainerProperties - AWS Batch

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

를 사용하여 작업 정의 생성 ContainerProperties

다음은 단일 컨테이너가 포함된 빈 작업 정의 템플릿입니다. 이 템플릿을 사용하여 작업 정의를 만든 다음 파일에 저장하여 AWS CLI --cli-input-json 옵션과 함께 사용할 수 있습니다. 이런 파라미터에 대한 자세한 내용은 에 대한 작업 정의 매개변수 ContainerProperties 섹션을 참조하세요.

{ "jobDefinitionName": "", "type": "container", "parameters": { "KeyName": "" }, "schedulingPriority": 0, "containerProperties": { "image": "", "vcpus": 0, "memory": 0, "command": [ "" ], "jobRoleArn": "", "executionRoleArn": "", "volumes": [ { "host": { "sourcePath": "" }, "name": "", "efsVolumeConfiguration": { "fileSystemId": "", "rootDirectory": "", "transitEncryption": "ENABLED", "transitEncryptionPort": 0, "authorizationConfig": { "accessPointId": "", "iam": "DISABLED" } } } ], "environment": [ { "name": "", "value": "" } ], "mountPoints": [ { "containerPath": "", "readOnly": true, "sourceVolume": "" } ], "readonlyRootFilesystem": true, "privileged": true, "ulimits": [ { "hardLimit": 0, "name": "", "softLimit": 0 } ], "user": "", "instanceType": "", "resourceRequirements": [ { "value": "", "type": "MEMORY" } ], "linuxParameters": { "devices": [ { "hostPath": "", "containerPath": "", "permissions": [ "WRITE" ] } ], "initProcessEnabled": true, "sharedMemorySize": 0, "tmpfs": [ { "containerPath": "", "size": 0, "mountOptions": [ "" ] } ], "maxSwap": 0, "swappiness": 0 }, "logConfiguration": { "logDriver": "syslog", "options": { "KeyName": "" }, "secretOptions": [ { "name": "", "valueFrom": "" } ] }, "secrets": [ { "name": "", "valueFrom": "" } ], "networkConfiguration": { "assignPublicIp": "DISABLED" }, "fargatePlatformConfiguration": { "platformVersion": "" } }, "nodeProperties": { "numNodes": 0, "mainNode": 0, "nodeRangeProperties": [ { "targetNodes": "", "container": { "image": "", "vcpus": 0, "memory": 0, "command": [ "" ], "jobRoleArn": "", "executionRoleArn": "", "volumes": [ { "host": { "sourcePath": "" }, "name": "", "efsVolumeConfiguration": { "fileSystemId": "", "rootDirectory": "", "transitEncryption": "DISABLED", "transitEncryptionPort": 0, "authorizationConfig": { "accessPointId": "", "iam": "ENABLED" } } } ], "environment": [ { "name": "", "value": "" } ], "mountPoints": [ { "containerPath": "", "readOnly": true, "sourceVolume": "" } ], "readonlyRootFilesystem": true, "privileged": true, "ulimits": [ { "hardLimit": 0, "name": "", "softLimit": 0 } ], "user": "", "instanceType": "", "resourceRequirements": [ { "value": "", "type": "MEMORY" } ], "linuxParameters": { "devices": [ { "hostPath": "", "containerPath": "", "permissions": [ "WRITE" ] } ], "initProcessEnabled": true, "sharedMemorySize": 0, "tmpfs": [ { "containerPath": "", "size": 0, "mountOptions": [ "" ] } ], "maxSwap": 0, "swappiness": 0 }, "logConfiguration": { "logDriver": "awslogs", "options": { "KeyName": "" }, "secretOptions": [ { "name": "", "valueFrom": "" } ] }, "secrets": [ { "name": "", "valueFrom": "" } ], "networkConfiguration": { "assignPublicIp": "DISABLED" }, "fargatePlatformConfiguration": { "platformVersion": "" } } } ] }, "retryStrategy": { "attempts": 0, "evaluateOnExit": [ { "onStatusReason": "", "onReason": "", "onExitCode": "", "action": "RETRY" } ] }, "propagateTags": true, "timeout": { "attemptDurationSeconds": 0 }, "tags": { "KeyName": "" }, "platformCapabilities": [ "EC2" ], "eksProperties": { "podProperties": { "serviceAccountName": "", "hostNetwork": true, "dnsPolicy": "", "containers": [ { "name": "", "image": "", "imagePullPolicy": "", "command": [ "" ], "args": [ "" ], "env": [ { "name": "", "value": "" } ], "resources": { "limits": { "KeyName": "" }, "requests": { "KeyName": "" } }, "volumeMounts": [ { "name": "", "mountPath": "", "readOnly": true } ], "securityContext": { "runAsUser": 0, "runAsGroup": 0, "privileged": true, "readOnlyRootFilesystem": true, "runAsNonRoot": true } } ], "volumes": [ { "name": "", "hostPath": { "path": "" }, "emptyDir": { "medium": "", "sizeLimit": "" }, "secret": { "secretName": "", "optional": true } } ] } } }
참고

다음 명령을 사용하여 단일 컨테이너 작업 정의 템플릿을 생성할 수 있습니다. AWS CLI

$ aws batch register-job-definition --generate-cli-skeleton