hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.61k stars 9k forks source link

[Enhancement]: `aws_batch_job_queue` jobStateTimeLimitActions parameter #36384

Open drewmullen opened 3 months ago

drewmullen commented 3 months ago

Description

AWS Batch now supports a Batch Job Queue Blocked CloudWatch Event for jobs stuck in RUNNABLE state. Customers can automate actions using EventBridge to be able to take an action on these stuck jobs. Additionally, customers can configure jobStateTimeLimitActions parameter from the CreateJobQueue and UpdateJobQueue APIs to terminate the stuck job unblocking the jobs behind it within the queue.

Affected Resource(s) and/or Data Source(s)

Potential Terraform Configuration

job_state_time_limit_actions {
   reason         = "string" 
   state          = "string"            
   maxTimeSeconds = number     
   action         = "string"            
}

References

Would you like to implement a fix?

Yes

github-actions[bot] commented 3 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

pwyliu commented 1 week ago

@drewmullen Hello - and sorry to pry - I was wondering if the above PR could be finished off to close this issue. It's so close to the finish line and it seems only a minor looking CI issue is blocking.

In my organization we're desperately needing this feature and would benefit greatly, for Batch users operating at large scale it is tremendously useful. I think this is probably true for lots of people, so it's a shame to not be able to manage this in TF. We programatically generate our queues and have very many, so it's really tedious to manage this out of band.

rito-sixt commented 3 days ago

Could we have this soon please? Much needed!