aws / aws/containers-roadmap

[batch] [request]: support `linuxParameters.capabilities` on AWS Batch

Open
#1,916 0 comments 7 reactions 0 assignees View on GitHub
Proposed
Dominant language
Shell
Stars
5.4k
Forks
334
PR merge metrics
No merged PRs in 30d

Description

### Community Note

* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
* Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
* If you are interested in working on this issue or have submitted a pull request, please leave a comment

**Tell us about your request**

Add the ability to set `linuxParameters.capabilities` on AWS Batch Job Definitions. The equivalent option exists on ECS.

It's currently possible to use `inf1` instances on AWS Batch, however it's _not_ possible to set `linuxParameters.capabilities.add = ["IPC_LOCK"]`.

There's a workaround (setting `priviliged` to `true`), however this isn't ideal.

ECS documents and supports this: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-inference.html#ecs-inference-requirements

Batch
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-containerproperties-linuxparameters.html

ECS
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-linuxparameters.html

**Which service(s) is this request for?**

AWS Batch

**Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?**

Run inferentia workloads on AWS batch.

**Are you currently working around this issue?**

Setting `priviliged` to true

Contributor guide

Open the contributing guide

Research direction

The issue concerns AWS Batch Job Definitions and the linuxParameters.capabilities field, with the linked AWS Batch and ECS CloudFormation documentation as references. Start by comparing those documented properties; done means AWS Batch can configure capabilities.add, such as IPC_LOCK, without requiring privileged mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.