Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

AWS::ECS::TaskDefinition Ulimit

Focus mode
AWS::ECS::TaskDefinition Ulimit - AWS CloudFormation
Filter View

The ulimit settings to pass to the container.

Amazon ECS tasks hosted on AWS Fargate use the default resource limit values set by the operating system with the exception of the nofile resource limit parameter which AWS Fargate overrides. The nofile resource limit sets a restriction on the number of open files that a container can use. The default nofile soft limit is 65535 and the default hard limit is 65535.

You can specify the ulimit settings for a container in a task definition.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "HardLimit" : Integer, "Name" : String, "SoftLimit" : Integer }

YAML

HardLimit: Integer Name: String SoftLimit: Integer

Properties

HardLimit

The hard limit for the ulimit type. The value can be specified in bytes, seconds, or as a count, depending on the type of the ulimit.

Required: Yes

Type: Integer

Update requires: Replacement

Name

The type of the ulimit.

Required: Yes

Type: String

Allowed values: core | cpu | data | fsize | locks | memlock | msgqueue | nice | nofile | nproc | rss | rtprio | rttime | sigpending | stack

Update requires: Replacement

SoftLimit

The soft limit for the ulimit type. The value can be specified in bytes, seconds, or as a count, depending on the type of the ulimit.

Required: Yes

Type: Integer

Update requires: Replacement

On this page

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.