Skip to content
v2.273.0

PidMode Enum ​

The process namespace to use for the containers in the task.

Example ​

ts
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 ​

MemberDescription
HOSTIf 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.
TASKIf task is specified, all containers within the specified task share the same process namespace.

Referenced by ​