Skip to content

[Enhancement]: Add taskRoleArn in an aws_batch_job_definition with ecsProperties #40747

Open
@kivengh

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

Metadata

Assignees

No one assigned

    Labels

    enhancementRequests to existing resources that expand the functionality or scope.service/batchIssues and PRs that pertain to the batch service.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions