batch

clowdhaus/batch/aws

Terraform Module HCL AWS

Terraform module to create AWS Batch resources πŸ‡ΊπŸ‡¦

Install
module "batch" {
source = "clowdhaus/batch/aws"
version = "3.0.0"
}
⭐ Source on GitHub πŸ“¦ Registry page
README

AWS Batch Terraform module Terraform module which creates AWS Batch resources. Usage See examples directory for working examples to reference: ```hcl module "batch" { source = "terraform-aws-modules/batch/aws" compute_environments = { a_ec2 = { name_prefix = "ec2" compute_resources = { type = "EC2" min_vcpus = 4 max_vcpus = 16 desired_vcpus = 4 instance_types = ["m5.large", "r5.large"] security_group_ids = ["sg-f1d03a88"] subnets = ["subnet-30ef7b3c", "subnet-1ecda77b", "subnet-ca09ddbc"] tags = { # This will set the name on the Ec2 instances launched by this compute environment Name = "example" Type = "Ec2" } } } b_ec2_spot = { name_prefix = "ec2_spot" compute_resources = { type = "SPOT" allocation_strategy = "SPOT_CAPACITY_OPTIMIZED" bid_percentage = 20 min_vcpus = 4 max_vcpus = 16 desir

Inputs (31)
NameTypeDescriptionDefault
create_instance_iam_roleboolDetermines whether a an IAM role is created or to use an existing IAM roletrue
instance_iam_role_permissions_boundarystringARN of the policy that is used to set the permissions boundary for the IAM rolenull
spot_fleet_iam_role_descriptionstringSpot fleet IAM role descriptionnull
spot_fleet_iam_role_additional_policiesmap(string)Additional policies to be added to the IAM role{}
instance_iam_role_additional_policiesmap(string)Additional policies to be added to the IAM role{}
create_spot_fleet_iam_roleboolDetermines whether a an IAM role is created or to use an existing IAM rolefalse
spot_fleet_iam_role_namestringSpot fleet IAM role namenull
spot_fleet_iam_role_pathstringSpot fleet IAM role pathnull
create_service_iam_roleboolDetermines whether a an IAM role is created or to use an existing IAM roletrue
service_iam_role_namestringBatch service IAM role namenull
regionstringRegion where the resource(s) will be managed. Defaults to the Region set in the null
instance_iam_role_use_name_prefixstringDetermines whether the IAM role name (`instance_iam_role_name`) is used as a pretrue
instance_iam_role_pathstringCluster instance IAM role pathnull
service_iam_role_descriptionstringBatch service IAM role descriptionnull
job_queuesmap(object({ compute_envirMap of job queue and scheduling policy defintions to createnull
job_definitionsmap(object({ container_proMap of job definitions to createnull
service_iam_role_use_name_prefixboolDetermines whether the IAM role name (`service_iam_role_name`) is used as a preftrue
service_iam_role_pathstringBatch service IAM role pathnull
create_job_queuesboolDetermines whether to create job queuestrue
instance_iam_role_namestringCluster instance IAM role namenull
Outputs (16)
instance_iam_instance_profile_unique β€” Stable and unique string identifying the IAM instance profile
service_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
instance_iam_role_arn β€” The Amazon Resource Name (ARN) specifying the IAM role
instance_iam_role_unique_id β€” Stable and unique string identifying the IAM role
instance_iam_instance_profile_arn β€” ARN assigned by AWS to the instance profile
job_queues β€” Map of job queues created and their associated attributes
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
job_definitions β€” Map of job defintions created and their associated attributes
instance_iam_instance_profile_id β€” Instance profile's ID
scheduling_policies β€” Map of scheduling policies created and their associated attributes
compute_environments β€” Map of compute environments created and their associated attributes
instance_iam_role_name β€” The name of the IAM role
Resources (7)
aws_batch_compute_environmentaws_batch_job_definitionaws_batch_job_queueaws_batch_scheduling_policyaws_iam_instance_profileaws_iam_roleaws_iam_role_policy_attachment
Details
FrameworkTerraform Module
LanguageHCL
Version3.0.0
Cloud AWS
β˜… Stars39
Forks46
Total downloads5.2k
Inputs31
Outputs16
Resources7
Examples2
LicenseApache-2.0
Namespaceclowdhaus
Updated