ECS Task Definition
Container task blueprint with CPU / memory / image specs.
Configuration
Section titled “Configuration”| Setting | Type | Required | Default |
|---|---|---|---|
| Family | Text | Yes | — |
| Launch type Options: Fargate, EC2 | Choice | — | FARGATE |
| CPU units | Number | — | 256 |
| Memory (MiB) | Number | — | 512 |
| Network mode Options: awsvpc (required for Fargate), bridge (EC2), host (EC2), none | Choice | — | awsvpc |
| IPC mode Options: host, task, none | Choice | — | — |
| PID mode Options: host, task | Choice | — | — |
| Execution role ARN | Text | — | — |
| Task role ARN | Text | — | — |
| CPU architecture Options: X86_64, ARM64 | Choice | — | X86_64 |
| Operating system family Options: Linux, Windows 2019 Full, Windows 2022 Full | Choice | — | LINUX |
| Container definitions (JSON) | Text | — | — |
| Ephemeral storage (GiB) | Number | — | — |
| Volume names | List | — | — |
| Tags | Key–value | — | — |
Connections
Section titled “Connections”| Socket | Direction | Accepts | Terraform arg |
|---|---|---|---|
| Image source | Input | aws.ecr-repository | — |
| Task IAM role | Input | aws.iam-role | task_role_arn |
| Execution IAM role | Input | aws.iam-role | execution_role_arn |
| Used by service | Output | aws.ecs-service | — |