Module library

Batch

Terraform module to create AWS Batch resources

Version

Inputs

31
compute_environmentsoptionalmap(object({ name = optional(string) name_prefix = optional(string) compute_reso…

Map of compute environment definitions to create

Defaultnull
createoptionalbool

Controls if resources should be created (affects nearly all resources)

Defaulttrue
create_instance_iam_roleoptionalbool

Determines whether a an IAM role is created or to use an existing IAM role

Defaulttrue
create_job_queuesoptionalbool

Determines whether to create job queues

Defaulttrue
create_service_iam_roleoptionalbool

Determines whether a an IAM role is created or to use an existing IAM role

Defaulttrue
create_spot_fleet_iam_roleoptionalbool

Determines whether a an IAM role is created or to use an existing IAM role

Defaultfalse
instance_iam_role_additional_policiesoptionalmap(string)

Additional policies to be added to the IAM role

Default{}
instance_iam_role_descriptionoptionalstring

Cluster instance IAM role description

Defaultnull
instance_iam_role_nameoptionalstring

Cluster instance IAM role name

Defaultnull
instance_iam_role_pathoptionalstring

Cluster instance IAM role path

Defaultnull
instance_iam_role_permissions_boundaryoptionalstring

ARN of the policy that is used to set the permissions boundary for the IAM role

Defaultnull
instance_iam_role_tagsoptionalmap(string)

A map of additional tags to add to the IAM role created

Default{}
instance_iam_role_use_name_prefixoptionalstring

Determines whether the IAM role name (`instance_iam_role_name`) is used as a prefix

Defaulttrue
job_definitionsoptionalmap(object({ container_properties = optional(string) deregister_on_new_revision …

Map of job definitions to create

Defaultnull
job_queuesoptionalmap(object({ compute_environment_order = map(object({ compute_environment_key = …

Map of job queue and scheduling policy defintions to create

Defaultnull
regionoptionalstring

Region where the resource(s) will be managed. Defaults to the Region set in the provider configuration

Defaultnull
service_iam_role_additional_policiesoptionalmap(string)

Additional policies to be added to the IAM role

Default{}
service_iam_role_descriptionoptionalstring

Batch service IAM role description

Defaultnull
service_iam_role_nameoptionalstring

Batch service IAM role name

Defaultnull
service_iam_role_pathoptionalstring

Batch service IAM role path

Defaultnull
service_iam_role_permissions_boundaryoptionalstring

ARN of the policy that is used to set the permissions boundary for the IAM role

Defaultnull
service_iam_role_tagsoptionalmap(string)

A map of additional tags to add to the IAM role created

Default{}
service_iam_role_use_name_prefixoptionalbool

Determines whether the IAM role name (`service_iam_role_name`) is used as a prefix

Defaulttrue
spot_fleet_iam_role_additional_policiesoptionalmap(string)

Additional policies to be added to the IAM role

Default{}
spot_fleet_iam_role_descriptionoptionalstring

Spot fleet IAM role description

Defaultnull
spot_fleet_iam_role_nameoptionalstring

Spot fleet IAM role name

Defaultnull
spot_fleet_iam_role_pathoptionalstring

Spot fleet IAM role path

Defaultnull
spot_fleet_iam_role_permissions_boundaryoptionalstring

ARN of the policy that is used to set the permissions boundary for the IAM role

Defaultnull
spot_fleet_iam_role_tagsoptionalmap(string)

A map of additional tags to add to the IAM role created

Default{}
spot_fleet_iam_role_use_name_prefixoptionalstring

Determines whether the IAM role name (`spot_fleet_iam_role_name`) is used as a prefix

Defaulttrue
tagsoptionalmap(string)

A map of tags to add to all resources

Default{}

All 31 are optional — the module deploys with none of them set.

Outputs

16
compute_environments

Map of compute environments created and their associated attributes

instance_iam_instance_profile_arn

ARN assigned by AWS to the instance profile

instance_iam_instance_profile_id

Instance profile's ID

instance_iam_instance_profile_unique

Stable and unique string identifying the IAM instance profile

instance_iam_role_arn

The Amazon Resource Name (ARN) specifying the IAM role

instance_iam_role_name

The name of the IAM role

instance_iam_role_unique_id

Stable and unique string identifying the IAM role

job_definitions

Map of job defintions created and their associated attributes

job_queues

Map of job queues created and their associated attributes

scheduling_policies

Map of scheduling policies created and their associated attributes

service_iam_role_arn

The Amazon Resource Name (ARN) specifying the IAM role

service_iam_role_name

The name of the IAM role

service_iam_role_unique_id

Stable and unique string identifying the IAM role

spot_fleet_iam_role_arn

The Amazon Resource Name (ARN) specifying the IAM role

spot_fleet_iam_role_name

The name of the IAM role

spot_fleet_iam_role_unique_id

Stable and unique string identifying the IAM role

What the agent wires into the next module. An edge on the architecture diagram is one of these consumed by something else.