enum PidMode
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ECS.PidMode |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#PidMode |
Java | software.amazon.awscdk.services.ecs.PidMode |
Python | aws_cdk.aws_ecs.PidMode |
TypeScript (source) | aws-cdk-lib » aws_ecs » PidMode |
The process namespace to use for the containers in the task.
Example
const fargateTaskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {
runtimePlatform: {
operatingSystemFamily: ecs.OperatingSystemFamily.LINUX,
cpuArchitecture: ecs.CpuArchitecture.ARM64,
},
memoryLimitMiB: 512,
cpu: 256,
pidMode: ecs.PidMode.TASK,
});
Members
| Name | Description |
|---|---|
| HOST | If host is specified, then all containers within the tasks that specified the host PID mode on the same container instance share the same process namespace with the host Amazon EC2 instance. |
| TASK | If task is specified, all containers within the specified task share the same process namespace. |
HOST
If host is specified, then all containers within the tasks that specified the host PID mode on the same container instance share the same process namespace with the host Amazon EC2 instance.
TASK
If task is specified, all containers within the specified task share the same process namespace.

.NET
Go
Java
Python
TypeScript (