ansible-collections / community.aws

Ansible Collection for Community AWS
GNU General Public License v3.0
187 stars 396 forks source link

batch_job_definition - Provide Secrets as a part of the container properties #745

Open prathik457 opened 2 years ago

prathik457 commented 2 years ago

Summary

I am trying to send secrets as a part of the container properties JSON object in AWS Batch Job Definition. I do not see an option to provide secrets. Am I missing something here? If not, can this be added?

Issue Type

Feature Idea

Component Name

aws_batch_job_definition

Additional Information


- hosts: localhost
  gather_facts: no
  vars:
    state: present
  tasks:
- name: My Batch Job Definition
  community.aws.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
    secrets:
      - name: secret1
        value: secret1
      - name: secret2
        value: secret2
    command:
      - python
      - run_my_script.py
      - arg1
    job_role_arn: <Job Role ARN>
    attempts: 3
  register: job_definition_create_result
- name: show results
  ansible.builtin.debug: var=job_definition_create_result

Code of Conduct

ansibullbot commented 2 years ago

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibullbot commented 2 years ago

cc @jillr @jonmer85 @markuman @matt-telstra @s-hertel @stefanhorning @tremble @wimnat click here for bot help