Batch
Terraform module to create AWS Batch resources
Inputs
31
compute_environmentsoptionalmap(object({ name = optional(string) name_prefix = optional(string) compute_reso…Map of compute environment definitions to create
nullcreateoptionalboolControls if resources should be created (affects nearly all resources)
truecreate_instance_iam_roleoptionalboolDetermines whether a an IAM role is created or to use an existing IAM role
truecreate_job_queuesoptionalboolDetermines whether to create job queues
truecreate_service_iam_roleoptionalboolDetermines whether a an IAM role is created or to use an existing IAM role
truecreate_spot_fleet_iam_roleoptionalboolDetermines whether a an IAM role is created or to use an existing IAM role
falseinstance_iam_role_additional_policiesoptionalmap(string)Additional policies to be added to the IAM role
{}instance_iam_role_descriptionoptionalstringCluster instance IAM role description
nullinstance_iam_role_nameoptionalstringCluster instance IAM role name
nullinstance_iam_role_pathoptionalstringCluster instance IAM role path
nullinstance_iam_role_permissions_boundaryoptionalstringARN of the policy that is used to set the permissions boundary for the IAM role
nullinstance_iam_role_tagsoptionalmap(string)A map of additional tags to add to the IAM role created
{}instance_iam_role_use_name_prefixoptionalstringDetermines whether the IAM role name (`instance_iam_role_name`) is used as a prefix
truejob_definitionsoptionalmap(object({ container_properties = optional(string) deregister_on_new_revision …Map of job definitions to create
nulljob_queuesoptionalmap(object({ compute_environment_order = map(object({ compute_environment_key = …Map of job queue and scheduling policy defintions to create
nullregionoptionalstringRegion where the resource(s) will be managed. Defaults to the Region set in the provider configuration
nullservice_iam_role_additional_policiesoptionalmap(string)Additional policies to be added to the IAM role
{}service_iam_role_descriptionoptionalstringBatch service IAM role description
nullservice_iam_role_nameoptionalstringBatch service IAM role name
nullservice_iam_role_pathoptionalstringBatch service IAM role path
nullservice_iam_role_permissions_boundaryoptionalstringARN of the policy that is used to set the permissions boundary for the IAM role
nullservice_iam_role_tagsoptionalmap(string)A map of additional tags to add to the IAM role created
{}service_iam_role_use_name_prefixoptionalboolDetermines whether the IAM role name (`service_iam_role_name`) is used as a prefix
truespot_fleet_iam_role_additional_policiesoptionalmap(string)Additional policies to be added to the IAM role
{}spot_fleet_iam_role_descriptionoptionalstringSpot fleet IAM role description
nullspot_fleet_iam_role_nameoptionalstringSpot fleet IAM role name
nullspot_fleet_iam_role_pathoptionalstringSpot fleet IAM role path
nullspot_fleet_iam_role_permissions_boundaryoptionalstringARN of the policy that is used to set the permissions boundary for the IAM role
nullspot_fleet_iam_role_tagsoptionalmap(string)A map of additional tags to add to the IAM role created
{}spot_fleet_iam_role_use_name_prefixoptionalstringDetermines whether the IAM role name (`spot_fleet_iam_role_name`) is used as a prefix
truetagsoptionalmap(string)A map of tags to add to all resources
{}All 31 are optional — the module deploys with none of them set.
Outputs
16
compute_environmentsMap of compute environments created and their associated attributes
instance_iam_instance_profile_arnARN assigned by AWS to the instance profile
instance_iam_instance_profile_idInstance profile's ID
instance_iam_instance_profile_uniqueStable and unique string identifying the IAM instance profile
instance_iam_role_arnThe Amazon Resource Name (ARN) specifying the IAM role
instance_iam_role_nameThe name of the IAM role
instance_iam_role_unique_idStable and unique string identifying the IAM role
job_definitionsMap of job defintions created and their associated attributes
job_queuesMap of job queues created and their associated attributes
scheduling_policiesMap of scheduling policies created and their associated attributes
service_iam_role_arnThe Amazon Resource Name (ARN) specifying the IAM role
service_iam_role_nameThe name of the IAM role
service_iam_role_unique_idStable and unique string identifying the IAM role
spot_fleet_iam_role_arnThe Amazon Resource Name (ARN) specifying the IAM role
spot_fleet_iam_role_nameThe name of the IAM role
spot_fleet_iam_role_unique_idStable 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.