Skip to main content

EcsTaskDefinition



Resource Icon

Resource Overview

Associated Resources

Parent Resources

Resource Setting Values

  • app_environment : Launch type required for the task - EC2, Fargate

  • os_architecture : Operating system family to use when registering the task definition

  • task_cpu : Number of CPU units used by the task

  • task_memory : Amount of memory used by the task (MiB)

  • network_mode : Networking mode to use for the task's container - awsvpc, none, bridge, host

  • container : Name of the container to run in the ECS Cluster

    • image_url : Image of the container to run in the ECS Cluster
    • essential_enabled : Whether other objects related to the container should stop or continue running if the container stops - false, true
    • port_mapping : Port mapping details
      • name : Name of the port mapping
      • container_port : Port number used by the container for traffic to and from the host container instance
      • protocol : Protocol used for port mapping - tcp, udp
      • app_protocol : Application protocol used for service connections - http, http2, grpc, none
    • cpu : CPU capacity of the container running in the ECS Cluster
    • memory : Memory capacity of the container running in the ECS Cluster
  • volume

    • name : Name of the volume to attach to the task definition
  • volume_mount

    • name : Name of the volume to attach to the task definition
    • container_name : Name of the container where the volume will be mounted
    • volume_name : Name of the volume to be mounted
    • container_path : Path in the container where the volume will be mounted
    • read_only : Whether the container has read-only access to the volume - false, true

Reference Materials