Skip to main content

AwsEcsExecutionModuleDeploymentContainerPropertiesImageSchema

How one container of an ECS execution runs its deployment's image: its name, whether the task needs it, the command it starts with and the ports it listens on.

@group

Modules/Execution/AwsEcsExecution

Index

Properties

optionalcommand

command?: string[] | null = null

The command the container starts with, one argument per element, e.g. ['node', 'main.js']. Left out, the deployment's command applies; ECS needs one of them.

essential

essential: boolean

Whether the task needs this container: when an essential container stops, ECS stops the whole task and starts a new one.

name

name: string

The container's name in the task, which a load balancer's target names to reach it.

optionalports

ports?: { containerPort: number; protocol: tcp | udp }[] = []

The ports the container listens on, each a containerPort and its protocol, tcp or udp. Left out, the deployment's ports apply.

Page Options