Docker Task nodes create a task definition for running Docker containers on ephemeral, non-dedicated server instances using AWS Fargate. This is in contrast to Docker Server nodes that run Docker Containers on a pool of compute resources provided by a Docker Cluster.
Warning: AWS Fargate, which Docker Task nodes use, is currently only available in the US-East-1 (N. Virginia) region. Stacks with Docker Task nodes will deploy successfully in other regions, but attempts to use the AWS API to run tasks will fail with an error.
Tasks are executed by invoking the ECS RunTask action using a taskDefinitionArn value. For example, a Docker task could transcode a video file from one Object Store into multiple different formats that are then uploaded to another Object Store. The taskDefinitionArn value can be specified in either the
STACKERY_PORTS environment variable when a Function node output port is connected to a Docker Task input port, or by referencing the taskDefinitionArn property value in a Function’s environment variables.
Docker images can be pulled from either public registries or private registries hosted in AWS Elastic Container Registry.
A label used for the node in the canvas.
The repository and optional tag of the Docker image to run. Examples:
The number of compute units to needed to run each instance of the task. One CPU is equivalent to 1,024 compute units.
The amount of memory, in MB, needed to run each instance of the task.
A list of environment variable values provided to the Docker Task instances.
Stackery Port Data
When connecting a wire between the output of a Function node to the input of a Docker Task node, the
STACKERY_PORTS environment variable for the Function node will contain the following information in JSON form:
|type||string||The type of the connected resource. Always set to
|id||string||The Stackery Docker Task node’s ID. Example:
|name||string||The Stackery Docker Task node’s name. Example:
|taskDefinitionArn||string||The AWS ARN of the Docker Task Definition. Example:
|vpcSubnets||string||Comma-separated list of AWS VPC subnets to run the Docker task within. Example:
See Function Output Port Connections for more details on the
STACKERY_PORTS environment variable.
|taskDefinitionArn||Docker Task Definition Cloud Service Identifier||