# Unable to create AWS Batch Job-Definition of Fargate type

**URL:** <https://forum.ansible.com/t/unable-to-create-aws-batch-job-definition-of-fargate-type/6331>\
**Category:** Get Help\
**Tags:** aws\
**Created:** [June 13, 2024, 5:49am UTC](https://forum.ansible.com/t/unable-to-create-aws-batch-job-definition-of-fargate-type/6331 "2024-06-13T05:49:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinodceg](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/vinodceg/32/3727_2.png) [@vinodceg](https://forum.ansible.com/u/vinodceg)\
**Post date:** [June 13, 2024, 5:49am UTC](https://forum.ansible.com/t/unable-to-create-aws-batch-job-definition-of-fargate-type/6331/1 "2024-06-13T05:49:21Z")

</div>

**Unable to create aws batch job-definition of Fargate type**.

I am referring to [aws\_batch\_job\_definition – Manage AWS Batch Job Definitions — Ansible Documentation](https://docs.ansible.com/ansible/2.9/modules/aws_batch_job_definition_module.html) page in-order to create aws job-definition.  
As mentioned, we can create a container type of job-definition. But my requirement is to create a job-definition of type Fargate

```auto
- name: My Batch Job Definition
  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

```

- AWS Batch, Job-Definition, Fargate
