[Enhancement]: Add taskRoleArn in an aws_batch_job_definition with ecsProperties #40747
Open
Description
Description
On Feb 2024, AWS added multi container support in AWS Batch (announcement.
It introduce a taskRoleArn Properties in ecsProperties json (doc here. This propertie is currently ignored by the AWS terraform module and the task role is not added in the AWS Batch task properties.
Affected Resource(s) and/or Data Source(s)
- aws_batch_job_definition
Potential Terraform Configuration
"taskProperties": [
{
"executionRoleArn": "${execution_role}",
"taskRoleArn ": "${task_role}",
[...]
}]
References
https://docs.aws.amazon.com/batch/latest/APIReference/API_EcsTaskProperties.html
Would you like to implement a fix?
None