You must be logged in to view saved presets
Sets the update policy for an AWS Batch compute environment to manage job execution and updates.
resource "aws_batch_compute_environment" "sample" {
compute_environment_name = "sample"
compute_resources {
allocation_strategy = "BEST_FIT_PROGRESSIVE"
instance_role = "aws_iam_instance_profile.ecs_instance.arn"
instance_type = ["optimal"]
max_vcpus = 4
min_vcpus = 0
security_group_ids = ["aws_security_group.sample.id"]
subnets = ["aws_subnet.sample.id"]
type = "EC2"
}
type = "MANAGED"
update_policy {
job_execution_timeout_minutes = 30
terminate_jobs_on_update = false
}
}