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
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_key | str | |||
| attempts | int | |||
| aws_ca_bundle | path | |||
| aws_config | dict | |||
| command | list | [] | ||
| debug_botocore_endpoint_logs | bool | false | ||
| endpoint_url | str | |||
| environment | list | [] | ||
| image | str | yes | ||
| job_definition_arn | str | |||
| job_definition_name | str | yes | ||
| job_role_arn | str | |||
| memory | int | yes | ||
| mount_points | list | [] | ||
| parameters | dict | |||
| privileged | str | |||
| profile | str | |||
| readonly_root_filesystem | str | |||
| region | str | |||
| secret_key | str | |||
| session_token | str | |||
| state | str | present | ||
| type | str | yes | ||
| ulimits | list | [] | ||
| user | str | |||
| validate_certs | bool | true | ||
| vcpus | int | yes | ||
| volumes | list | [] |
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