PARALLAX

batch_job_definition

Manage AWS Batch Job Definitions

Collection: community.aws

Full Name: community.aws.batch_job_definition

Synopsis

Manage AWS Batch Job Definitions

Parameters

NameTypeRequiredDefaultDescription
access_keystr
attemptsint
aws_ca_bundlepath
aws_configdict
commandlist[]
debug_botocore_endpoint_logsboolfalse
endpoint_urlstr
environmentlist[]
imagestryes
job_definition_arnstr
job_definition_namestryes
job_role_arnstr
memoryintyes
mount_pointslist[]
parametersdict
privilegedstr
profilestr
readonly_root_filesystemstr
regionstr
secret_keystr
session_tokenstr
statestrpresent
typestryes
ulimitslist[]
userstr
validate_certsbooltrue
vcpusintyes
volumeslist[]

Example

yaml
- name: My Batch Job Definition
  community.aws.batch_job_definition:
    job_definition_name: My Batch Job Definition
    state: present
    type: container
    parameters:
        Param1: Val1
        Param2: Val2
    image: <Docker Image URL>
    vcpus: 1
    memory: 512
    command:
        - python
        - run_my_script.py
        - arg1
    job_role_arn: <Job Role ARN>
    attempts: 3
  register: job_definition_create_result
Search
    ↑ ↓ move↵ openesc close