PARALLAX

batch_compute_environment

Manage AWS Batch Compute Environments

Collection: community.aws

Full Name: community.aws.batch_compute_environment

Synopsis

Manage AWS Batch Compute Environments

Parameters

NameTypeRequiredDefaultDescription
access_keystr
aws_ca_bundlepath
aws_configdict
bid_percentageint
compute_environment_namestryes
compute_environment_statestrENABLED
compute_resource_typestryes
debug_botocore_endpoint_logsboolfalse
desiredv_cpusint
ec2_key_pairstr
endpoint_urlstr
image_idstr
instance_rolestryes
instance_typeslistyes
maxv_cpusintyes
minv_cpusintyes
profilestr
regionstr
secret_keystr
security_group_idslistyes
service_rolestryes
session_tokenstr
spot_iam_fleet_rolestr
statestrpresent
subnetslistyes
tagsdict
typestryes
validate_certsbooltrue

Example

yaml
- name: My Batch Compute Environment
  community.aws.batch_compute_environment:
    compute_environment_name: computeEnvironmentName
    state: present
    region: us-east-1
    compute_environment_state: ENABLED
    type: MANAGED
    compute_resource_type: EC2
    minv_cpus: 0
    maxv_cpus: 2
    desiredv_cpus: 1
    instance_types:
        - optimal
    subnets:
        - my-subnet1
        - my-subnet2
    security_group_ids:
        - my-sg1
        - my-sg2
    instance_role: arn:aws:iam::<account>:instance-profile/<role>
    tags:
        tag1: value1
        tag2: value2
    service_role: arn:aws:iam::<account>:role/service-role/<role>
  register: aws_batch_compute_environment_action
Search
    ↑ ↓ move↵ openesc close