Skip to content

Commit 34becc9

Browse files
committed
feat: Add support for job_state_time_limit_action for aws_batch_job_queue
1 parent c478369 commit 34becc9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

main.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,16 @@ resource "aws_batch_job_queue" "this" {
239239
scheduling_policy_arn = try(each.value.create_scheduling_policy, true) ? aws_batch_scheduling_policy.this[each.key].arn : try(each.value.scheduling_policy_arn, null)
240240
compute_environments = slice([for env in try(each.value.compute_environments, keys(var.compute_environments)) : aws_batch_compute_environment.this[env].arn], 0, min(length(try(each.value.compute_environments, keys(var.compute_environments))), 3))
241241

242+
dynamic "job_state_time_limit_action" {
243+
for_each = try([each.value.job_state_time_limit_action], [])
244+
content {
245+
action = each.value.action
246+
max_time_seconds = each.value.max_time_seconds
247+
reason = each.value.reason
248+
state = each.value.state
249+
}
250+
}
251+
242252
tags = merge(var.tags, lookup(each.value, "tags", {}))
243253
}
244254

0 commit comments

Comments
 (0)