Set ulimit in container definition prop #23063
-
I need to set the ulimits on a fargate ECS task - (I'm using the Java CDK). From what I can tell I should be able to set this on the fargate task definition - but I cannot see how to do this using the CDK. Do I need to add an extension to the fargateTaskDefinition? I see 'ContainerDefinition' has a public method for setting uLimit - however the ContainerDefinitionOptions.builder() does not appear to provide methods to set this. Both v1 / v2 documentation dont provide this - https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.ContainerDefinitionOptions.html Any pointers? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I'd like to bump this. Right now it's not clear how to properly implement ulimits via the CDK. |
Beta Was this translation helpful? Give feedback.
-
As mentioned in the OP you can currently do this with That said, we should still be able to support it as a direct prop. I'm going to convert this to a feature request to track that 🙂 |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
As mentioned in the OP you can currently do this with
ContainerDefinition.addUlimits()
. You should be able to easily add this method on to where you add the container to your task definition.That said, we should still be able to support it as a direct prop. I'm going to convert this to a feature request to track that 🙂