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
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_key | str | |||
| aws_ca_bundle | path | |||
| aws_config | dict | |||
| bid_percentage | int | |||
| compute_environment_name | str | yes | ||
| compute_environment_state | str | ENABLED | ||
| compute_resource_type | str | yes | ||
| debug_botocore_endpoint_logs | bool | false | ||
| desiredv_cpus | int | |||
| ec2_key_pair | str | |||
| endpoint_url | str | |||
| image_id | str | |||
| instance_role | str | yes | ||
| instance_types | list | yes | ||
| maxv_cpus | int | yes | ||
| minv_cpus | int | yes | ||
| profile | str | |||
| region | str | |||
| secret_key | str | |||
| security_group_ids | list | yes | ||
| service_role | str | yes | ||
| session_token | str | |||
| spot_iam_fleet_role | str | |||
| state | str | present | ||
| subnets | list | yes | ||
| tags | dict | |||
| type | str | yes | ||
| validate_certs | bool | true |
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