Amazon ECS · Schema

ContainerDefinition

A container definition describes a container within a task definition.

AmazonAwsContainersDockerEcsOrchestration

Properties

Name Type Description
name string The name of a container. Up to 255 characters (uppercase and lowercase letters, numbers, underscores, and hyphens).
image string The image used to start a container. Images in the Docker Hub registry are available by default. You can also specify an ECR repository.
cpu integer The number of cpu units reserved for the container.
memory integer The amount (in MiB) of memory to present to the container. Corresponds to the hard limit.
memoryReservation integer The soft limit (in MiB) of memory to reserve for the container.
links array Allows containers to communicate without port mappings. Only supported for bridge network mode.
portMappings array The list of port mappings for the container.
essential boolean If the essential parameter of a container is marked as true and that container fails or stops, all other containers that are part of the task are stopped.
entryPoint array The entry point that is passed to the container.
command array The command that is passed to the container.
environment array The environment variables to pass to a container.
environmentFiles array A list of files containing the environment variables to pass to a container.
mountPoints array The mount points for data volumes in your container.
volumesFrom array Data volumes to mount from another container.
secrets array The secrets to pass to the container from AWS Secrets Manager or SSM Parameter Store.
dependsOn array The dependencies defined for container startup and shutdown.
startTimeout integer Time duration (in seconds) to wait before giving up on resolving dependencies for a container.
stopTimeout integer Time duration (in seconds) to wait before the container is forcefully killed if it does not exit normally on its own.
hostname string
user string The user to run as inside the container.
workingDirectory string The working directory to run commands inside the container in.
disableNetworking boolean
privileged boolean When this parameter is true, the container is given elevated privileges on the host container instance.
readonlyRootFilesystem boolean When this parameter is true, the container is given read-only access to its root file system.
dnsServers array
dnsSearchDomains array
extraHosts array
dockerSecurityOptions array
interactive boolean
pseudoTerminal boolean
dockerLabels object A key/value map of labels to add to the container.
ulimits array
systemControls array
resourceRequirements array
firelensConfiguration object
repositoryCredentials object
restartPolicy object
credentialSpecs array
View JSON Schema on GitHub