Skip to content

Set ulimit in container definition prop #24918

@peterwoodworth

Description

@peterwoodworth

Discussed in #23063

Ability to set ulimit as prop, instead of just through a method

Originally posted by ambethell November 23, 2022
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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.good first issueRelated to contributions. See CONTRIBUTING.mdp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions