You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(ecs): support pseudo terminal allocation in container definition (#24790)
ECS supports the allocation of a pseudo-terminal in the container definition, but the ContainerDefinition construct does not expose any way to configure it.
A pseudoTerminal property has been added to ContainerDefinitionOptions and to the ContainerDefinition class and it is passed down the L1 construct.
Closes#16263.
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
You can allocate a pseudo-terminal (TTY) for a container passing `pseudoTerminal` option while adding the container
1367
+
to the task definition.
1368
+
This maps to Tty option in the ["Create a container section"](https://docs.docker.com/engine/api/v1.38/#operation/ContainerCreate)
1369
+
of the [Docker Remote API](https://docs.docker.com/engine/api/v1.38/) and the --tty option to [`docker run`](https://docs.docker.com/engine/reference/commandline/run/).
1370
+
1371
+
```ts
1372
+
const taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');
0 commit comments