diff --git a/docs/content/en/docs-dev/user-guide/configuration-reference.md b/docs/content/en/docs-dev/user-guide/configuration-reference.md index f2fa64d848..ae2d76ce20 100644 --- a/docs/content/en/docs-dev/user-guide/configuration-reference.md +++ b/docs/content/en/docs-dev/user-guide/configuration-reference.md @@ -538,8 +538,6 @@ There are some restrictions in configuring a service definition file. There are some restrictions in configuring a task definition file. -- `placementConstraints` is not supported. -- `proxyConfiguration` is not supported. - `tags` is not supported. ### ECSTargetGroupInput diff --git a/pkg/app/piped/platformprovider/ecs/client.go b/pkg/app/piped/platformprovider/ecs/client.go index 8b61d1bcca..cddd284584 100644 --- a/pkg/app/piped/platformprovider/ecs/client.go +++ b/pkg/app/piped/platformprovider/ecs/client.go @@ -188,9 +188,15 @@ func (c *client) RegisterTaskDefinition(ctx context.Context, taskDefinition type Volumes: taskDefinition.Volumes, RuntimePlatform: taskDefinition.RuntimePlatform, EphemeralStorage: taskDefinition.EphemeralStorage, - // Requires defined at task level in case Fargate is used. + // Cpu and Memory must be defined if Fargate is used. Cpu: taskDefinition.Cpu, Memory: taskDefinition.Memory, + + InferenceAccelerators: taskDefinition.InferenceAccelerators, + IpcMode: taskDefinition.IpcMode, + PidMode: taskDefinition.PidMode, + PlacementConstraints: taskDefinition.PlacementConstraints, + ProxyConfiguration: taskDefinition.ProxyConfiguration, // TODO: Support tags for registering task definition. } output, err := c.ecsClient.RegisterTaskDefinition(ctx, input)